Lines Matching refs:MIB
207 MachineInstrBuilder &MIB,
240 MIB.addReg(VRBase, RegState::Define);
253 MIB.addReg(VRBase, RegState::Define);
265 MIB.addReg(VRBase, RegState::Define);
307 InstrEmitter::AddRegisterOperand(MachineInstrBuilder &MIB,
320 const MCInstrDesc &MCID = MIB->getDesc();
352 unsigned Idx = MIB->getNumOperands();
354 MIB->getOperand(Idx-1).isReg() &&
355 MIB->getOperand(Idx-1).isImplicit())
362 MIB.addReg(VReg, getDefRegState(isOptDef) | getKillRegState(isKill) |
369 void InstrEmitter::AddOperand(MachineInstrBuilder &MIB,
376 AddRegisterOperand(MIB, Op, IIOpNum, II, VRBaseMap,
379 MIB.addImm(C->getSExtValue());
381 MIB.addFPImm(F->getConstantFPValue());
387 MIB.addReg(R->getReg(), getImplRegState(Imp));
389 MIB.addRegMask(RM->getRegMask());
391 MIB.addGlobalAddress(TGA->getGlobal(), TGA->getOffset(),
394 MIB.addMBB(BBNode->getBasicBlock());
396 MIB.addFrameIndex(FI->getIndex());
398 MIB.addJumpTableIndex(JT->getIndex(), JT->getTargetFlags());
418 MIB.addConstantPoolIndex(Idx, Offset, CP->getTargetFlags());
420 MIB.addExternalSymbol(ES->getSymbol(), ES->getTargetFlags());
422 MIB.addBlockAddress(BA->getBlockAddress(),
426 MIB.addTargetIndex(TI->getIndex(), TI->getOffset(), TI->getTargetFlags());
431 AddRegisterOperand(MIB, Op, IIOpNum, II, VRBaseMap,
550 MachineInstrBuilder MIB =
557 MIB.addImm(SD->getZExtValue());
559 AddOperand(MIB, N0, 0, nullptr, VRBaseMap, /*IsDebug=*/false,
562 AddOperand(MIB, N1, 0, nullptr, VRBaseMap, /*IsDebug=*/false,
564 MIB.addImm(SubIdx);
565 MBB->insert(InsertPos, MIB);
607 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), II, NewVReg);
629 AddOperand(MIB, Op, i+1, &II, VRBaseMap, /*IsDebug=*/false,
633 MBB->insert(InsertPos, MIB);
657 MachineInstrBuilder MIB = BuildMI(*MF, DL, II);
668 MIB.addReg(0U); // undef
670 AddOperand(MIB, Op, (*MIB).getNumOperands(), &II, VRBaseMap,
676 MIB.addCImm(CI);
678 MIB.addImm(CI->getSExtValue());
680 MIB.addFPImm(CF);
684 MIB.addReg(0U);
688 MIB.addReg(0U);
693 MIB.addImm(Offset);
696 MIB.addReg(0U, RegState::Debug);
699 MIB.addMetadata(MDPtr);
701 return &*MIB;
771 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), II);
776 CreateVirtualRegisters(Node, MIB, II, IsClone, IsCloned, VRBaseMap);
785 AddOperand(MIB, Node->getOperand(i), i-NumSkip+NumDefs, &II,
791 MIB.addReg(ScratchRegs[i], RegState::ImplicitDefine |
795 MIB.setMemRefs(cast<MachineSDNode>(Node)->memoperands_begin(),
801 MBB->insert(InsertPos, MIB);
859 MIB->setPhysRegsDeadExcept(UsedRegs, *TRI);
865 TLI->AdjustInstrPostInstrSelection(MIB, Node);
929 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(),
935 MIB.addExternalSymbol(AsmStr);
942 MIB.addImm(ExtraInfo);
953 GroupIdx.push_back(MIB->getNumOperands());
954 MIB.addImm(Flags);
965 MIB.addReg(Reg, RegState::Define |
973 MIB.addReg(Reg, RegState::Define | RegState::EarlyClobber |
983 AddOperand(MIB, Node->getOperand(i), 0, nullptr, VRBaseMap,
993 MIB->tieOperands(DefIdx + j, UseIdx + j);
1004 MIB.addMetadata(MD);
1006 MBB->insert(InsertPos, MIB);