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