Lines Matching refs:MIB

208                                        MachineInstrBuilder &MIB,  in CreateVirtualRegisters()  argument
241 MIB.addReg(VRBase, RegState::Define); in CreateVirtualRegisters()
254 MIB.addReg(VRBase, RegState::Define); in CreateVirtualRegisters()
266 MIB.addReg(VRBase, RegState::Define); in CreateVirtualRegisters()
312 InstrEmitter::AddRegisterOperand(MachineInstrBuilder &MIB, in AddRegisterOperand() argument
324 const MCInstrDesc &MCID = MIB->getDesc(); in AddRegisterOperand()
358 unsigned Idx = MIB->getNumOperands(); in AddRegisterOperand()
360 MIB->getOperand(Idx-1).isReg() && in AddRegisterOperand()
361 MIB->getOperand(Idx-1).isImplicit()) in AddRegisterOperand()
368 MIB.addReg(VReg, getDefRegState(isOptDef) | getKillRegState(isKill) | in AddRegisterOperand()
375 void InstrEmitter::AddOperand(MachineInstrBuilder &MIB, in AddOperand() argument
382 AddRegisterOperand(MIB, Op, IIOpNum, II, VRBaseMap, in AddOperand()
385 MIB.addImm(C->getSExtValue()); in AddOperand()
387 MIB.addFPImm(F->getConstantFPValue()); in AddOperand()
393 MIB.addReg(R->getReg(), getImplRegState(Imp)); in AddOperand()
395 MIB.addRegMask(RM->getRegMask()); in AddOperand()
397 MIB.addGlobalAddress(TGA->getGlobal(), TGA->getOffset(), in AddOperand()
400 MIB.addMBB(BBNode->getBasicBlock()); in AddOperand()
402 MIB.addFrameIndex(FI->getIndex()); in AddOperand()
404 MIB.addJumpTableIndex(JT->getIndex(), JT->getTargetFlags()); in AddOperand()
424 MIB.addConstantPoolIndex(Idx, Offset, CP->getTargetFlags()); in AddOperand()
426 MIB.addExternalSymbol(ES->getSymbol(), ES->getTargetFlags()); in AddOperand()
428 MIB.addSym(SymNode->getMCSymbol()); in AddOperand()
430 MIB.addBlockAddress(BA->getBlockAddress(), in AddOperand()
434 MIB.addTargetIndex(TI->getIndex(), TI->getOffset(), TI->getTargetFlags()); in AddOperand()
439 AddRegisterOperand(MIB, Op, IIOpNum, II, VRBaseMap, in AddOperand()
558 MachineInstrBuilder MIB = in EmitSubregNode() local
565 MIB.addImm(SD->getZExtValue()); in EmitSubregNode()
567 AddOperand(MIB, N0, 0, nullptr, VRBaseMap, /*IsDebug=*/false, in EmitSubregNode()
570 AddOperand(MIB, N1, 0, nullptr, VRBaseMap, /*IsDebug=*/false, in EmitSubregNode()
572 MIB.addImm(SubIdx); in EmitSubregNode()
573 MBB->insert(InsertPos, MIB); in EmitSubregNode()
615 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), II, NewVReg); in EmitRegSequence() local
637 AddOperand(MIB, Op, i+1, &II, VRBaseMap, /*IsDebug=*/false, in EmitRegSequence()
641 MBB->insert(InsertPos, MIB); in EmitRegSequence()
671 MachineInstrBuilder MIB = BuildMI(*MF, DL, II); in EmitDbgValue() local
682 MIB.addReg(0U); // undef in EmitDbgValue()
684 AddOperand(MIB, Op, (*MIB).getNumOperands(), &II, VRBaseMap, in EmitDbgValue()
690 MIB.addCImm(CI); in EmitDbgValue()
692 MIB.addImm(CI->getSExtValue()); in EmitDbgValue()
694 MIB.addFPImm(CF); in EmitDbgValue()
698 MIB.addReg(0U); in EmitDbgValue()
702 MIB.addReg(0U); in EmitDbgValue()
707 MIB.addImm(Offset); in EmitDbgValue()
710 MIB.addReg(0U, RegState::Debug); in EmitDbgValue()
713 MIB.addMetadata(Var); in EmitDbgValue()
714 MIB.addMetadata(Expr); in EmitDbgValue()
716 return &*MIB; in EmitDbgValue()
786 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), II); in EmitMachineNode() local
791 CreateVirtualRegisters(Node, MIB, II, IsClone, IsCloned, VRBaseMap); in EmitMachineNode()
800 AddOperand(MIB, Node->getOperand(i), i-NumSkip+NumDefs, &II, in EmitMachineNode()
806 MIB.addReg(ScratchRegs[i], RegState::ImplicitDefine | in EmitMachineNode()
810 MIB.setMemRefs(cast<MachineSDNode>(Node)->memoperands_begin(), in EmitMachineNode()
816 MBB->insert(InsertPos, MIB); in EmitMachineNode()
874 MIB->setPhysRegsDeadExcept(UsedRegs, *TRI); in EmitMachineNode()
878 TLI->AdjustInstrPostInstrSelection(*MIB, Node); in EmitMachineNode()
942 MachineInstrBuilder MIB = BuildMI(*MF, Node->getDebugLoc(), in EmitSpecialNode() local
948 MIB.addExternalSymbol(AsmStr); in EmitSpecialNode()
955 MIB.addImm(ExtraInfo); in EmitSpecialNode()
969 GroupIdx.push_back(MIB->getNumOperands()); in EmitSpecialNode()
970 MIB.addImm(Flags); in EmitSpecialNode()
981 MIB.addReg(Reg, RegState::Define | in EmitSpecialNode()
989 MIB.addReg(Reg, RegState::Define | RegState::EarlyClobber | in EmitSpecialNode()
1000 AddOperand(MIB, Node->getOperand(i), 0, nullptr, VRBaseMap, in EmitSpecialNode()
1010 MIB->tieOperands(DefIdx + j, UseIdx + j); in EmitSpecialNode()
1023 if (MIB->readsRegister(Reg, TRI)) { in EmitSpecialNode()
1024 MachineOperand *MO = MIB->findRegisterDefOperand(Reg, false, TRI); in EmitSpecialNode()
1034 MIB.addMetadata(MD); in EmitSpecialNode()
1036 MBB->insert(InsertPos, MIB); in EmitSpecialNode()