Lines Matching refs:MIB
207 MachineInstrBuilder &MIB,
226 MIB.addReg(VRBase, RegState::Define);
241 MIB.addReg(VRBase, RegState::Define);
253 MIB.addReg(VRBase, RegState::Define);
295 InstrEmitter::AddRegisterOperand(MachineInstrBuilder &MIB,
308 const MCInstrDesc &MCID = MIB->getDesc();
340 unsigned Idx = MIB->getNumOperands();
342 MIB->getOperand(Idx-1).isReg() &&
343 MIB->getOperand(Idx-1).isImplicit())
350 MIB.addReg(VReg, getDefRegState(isOptDef) | getKillRegState(isKill) |
357 void InstrEmitter::AddOperand(MachineInstrBuilder &MIB,
364 AddRegisterOperand(MIB, Op, IIOpNum, II, VRBaseMap,
367 MIB.addImm(C->getSExtValue());
369 MIB.addFPImm(F->getConstantFPValue());
375 MIB.addReg(R->getReg(), getImplRegState(Imp));
377 MIB.addRegMask(RM->getRegMask());
379 MIB.addGlobalAddress(TGA->getGlobal(), TGA->getOffset(),
382 MIB.addMBB(BBNode->getBasicBlock());
384 MIB.addFrameIndex(FI->getIndex());
386 MIB.addJumpTableIndex(JT->getIndex(), JT->getTargetFlags());
406 MIB.addConstantPoolIndex(Idx, Offset, CP->getTargetFlags());
408 MIB.addExternalSymbol(ES->getSymbol(), ES->getTargetFlags());
410 MIB.addBlockAddress(BA->getBlockAddress(),
414 MIB.addTargetIndex(TI->getIndex(), TI->getOffset(), TI->getTargetFlags());
419 AddRegisterOperand(MIB, Op, IIOpNum, II, VRBaseMap,
540 MachineInstrBuilder MIB =
547 MIB.addImm(SD->getZExtValue());
549 AddOperand(MIB, N0, 0, 0, VRBaseMap, /*IsDebug=*/false,
552 AddOperand(MIB, N1, 0, 0, VRBaseMap, /*IsDebug=*/false,
554 MIB.addImm(SubIdx);
555 MBB->insert(InsertPos, MIB);
597 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), II, NewVReg);
619 AddOperand(MIB, Op, i+1, &II, VRBaseMap, /*IsDebug=*/false,
623 MBB->insert(InsertPos, MIB);
647 MachineInstrBuilder MIB = BuildMI(*MF, DL, II);
658 MIB.addReg(0U); // undef
660 AddOperand(MIB, Op, (*MIB).getNumOperands(), &II, VRBaseMap,
666 MIB.addCImm(CI);
668 MIB.addImm(CI->getSExtValue());
670 MIB.addFPImm(CF);
674 MIB.addReg(0U);
678 MIB.addReg(0U);
682 MIB.addImm(Offset);
684 MIB.addReg(0U, RegState::Debug);
686 MIB.addMetadata(MDPtr);
688 return &*MIB;
742 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), II);
747 CreateVirtualRegisters(Node, MIB, II, IsClone, IsCloned, VRBaseMap);
756 AddOperand(MIB, Node->getOperand(i), i-NumSkip+II.getNumDefs(), &II,
760 MIB.setMemRefs(cast<MachineSDNode>(Node)->memoperands_begin(),
766 MBB->insert(InsertPos, MIB);
824 MIB->setPhysRegsDeadExcept(UsedRegs, *TRI);
830 TLI->AdjustInstrPostInstrSelection(MIB, Node);
894 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(),
900 MIB.addExternalSymbol(AsmStr);
907 MIB.addImm(ExtraInfo);
918 GroupIdx.push_back(MIB->getNumOperands());
919 MIB.addImm(Flags);
930 MIB.addReg(Reg, RegState::Define |
938 MIB.addReg(Reg, RegState::Define | RegState::EarlyClobber |
948 AddOperand(MIB, Node->getOperand(i), 0, 0, VRBaseMap,
958 MIB->tieOperands(DefIdx + j, UseIdx + j);
969 MIB.addMetadata(MD);
971 MBB->insert(InsertPos, MIB);