Home
last modified time | relevance | path

Searched refs:NewMI (Results 1 – 25 of 86) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupLEAs.cpp167 MachineInstr *NewMI = in INITIALIZE_PASS() local
177 return NewMI; in INITIALIZE_PASS()
581 MachineInstr *NewMI = nullptr; in optTwoAddrLEA()
594 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
599 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
616 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
619 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
626 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
630 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
643 MBB.getParent()->substituteDebugValuesForInst(*I, *NewMI, in optTwoAddrLEA()
580 MachineInstr *NewMI = nullptr; optTwoAddrLEA() local
672 MachineInstr *NewMI = postRAConvertToLEA(MBB, MBI); seekLEAFixup() local
712 MachineInstr *NewMI = nullptr; processInstructionForSlowLEA() local
780 MachineInstr *NewMI = nullptr; processInstrForSlow3OpLEA() local
[all...]
H A DX86TileConfig.cpp144 MachineInstr *NewMI = nullptr; in INITIALIZE_PASS_DEPENDENCY() local
175 NewMI = addFrameReference( in INITIALIZE_PASS_DEPENDENCY()
180 ConstMI = NewMI; in INITIALIZE_PASS_DEPENDENCY()
181 LIS.InsertMachineInstrInMaps(*NewMI); in INITIALIZE_PASS_DEPENDENCY()
191 NewMI = addFrameReference( in INITIALIZE_PASS_DEPENDENCY()
196 SlotIndex SIdx = LIS.InsertMachineInstrInMaps(*NewMI); in INITIALIZE_PASS_DEPENDENCY()
H A DX86LowerTileCopy.cpp140 MachineInstr *NewMI = in runOnMachineFunction() local
143 MachineOperand &MO = NewMI->getOperand(2); in runOnMachineFunction()
149 NewMI = addFrameReference(BuildMI(MBB, MI, DL, TII->get(Opc), DstReg), in runOnMachineFunction()
H A DX86FixupBWInsts.cpp450 if (MachineInstr *NewMI = tryReplaceInstr(&MI, MBB)) in processBasicBlock() local
451 MIReplacements.push_back(std::make_pair(&MI, NewMI)); in processBasicBlock()
459 MachineInstr *NewMI = MIReplacements.back().second; in processBasicBlock() local
461 MBB.insert(MI, NewMI); in processBasicBlock()
H A DX86ExpandPseudo.cpp360 MachineInstr &NewMI = *std::prev(MBBI); in expandMI() local
361 NewMI.copyImplicitOps(*MBBI->getParent()->getParent(), *MBBI); in expandMI()
362 NewMI.setCFIType(*MBB.getParent(), MI.getCFIType()); in expandMI()
366 MBB.getParent()->moveCallSiteInfo(&*MBBI, &NewMI); in expandMI()
767 auto NewMI = BuildMI(GuardedRegsBlk, DL, TII->get(MOVOpc)); in expandVastartSaveXmmRegs() local
770 NewMI.addImm(FrameOffset + VarArgsRegsOffset + RegIdx * 16); in expandVastartSaveXmmRegs()
772 NewMI.add(VAStartPseudoInstr->getOperand(i + 1)); in expandVastartSaveXmmRegs()
774 NewMI.addReg(VAStartPseudoInstr->getOperand(OpndIdx).getReg()); in expandVastartSaveXmmRegs()
H A DX86InstrInfo.cpp1006 MachineInstr &NewMI = *std::prev(I); in reMaterialize() local
1007 NewMI.substituteRegister(Orig.getOperand(0).getReg(), DestReg, SubIdx, TRI); in reMaterialize()
1336 MachineInstr *NewMI = MIB; in convertToThreeAddressWithLEA() local
1344 LV->getVarInfo(InRegLEA).Kills.push_back(NewMI); in convertToThreeAddressWithLEA()
1346 LV->getVarInfo(InRegLEA2).Kills.push_back(NewMI); in convertToThreeAddressWithLEA()
1362 SlotIndex NewIdx = LIS->ReplaceMachineInstrInMaps(MI, *NewMI); in convertToThreeAddressWithLEA()
1430 MachineInstr *NewMI = nullptr; in convertToThreeAddress() local
1451 NewMI = BuildMI(MF, MI.getDebugLoc(), get(X86::LEA64r)) in convertToThreeAddress()
1484 NewMI = MIB; in convertToThreeAddress()
1488 LV->getVarInfo(SrcReg).Kills.push_back(NewMI); in convertToThreeAddress()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600ExpandSpecialInstrs.cpp33 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI,
63 void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI, in SetFlagInNewMI() argument
68 TII->setImmOperand(*NewMI, Op, Val); in SetFlagInNewMI()
251 MachineInstr *NewMI = in runOnMachineFunction() local
255 NewMI->bundleWithPred(); in runOnMachineFunction()
257 TII->addFlag(*NewMI, 0, MO_FLAG_MASK); in runOnMachineFunction()
260 TII->addFlag(*NewMI, 0, MO_FLAG_NOT_LAST); in runOnMachineFunction()
262 SetFlagInNewMI(NewMI, &MI, R600::OpName::clamp); in runOnMachineFunction()
263 SetFlagInNewMI(NewMI, &MI, R600::OpName::literal); in runOnMachineFunction()
264 SetFlagInNewMI(NewMI, &MI, R600::OpName::src0_abs); in runOnMachineFunction()
[all …]
H A DR600OptimizeVectorRegisters.cpp211 MachineInstr *NewMI = in RebuildVector() local
213 LLVM_DEBUG(dbgs() << " ->"; NewMI->dump();); in RebuildVector()
225 RSI->Instr = NewMI; in RebuildVector()
229 return NewMI; in RebuildVector()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWindowScheduler.cpp305 auto *NewMI = MF->CloneMachineInstr(MI); in generateTripleMBB() local
306 MBB->push_back(NewMI); in generateTripleMBB()
307 TriMIs.push_back(NewMI); in generateTripleMBB()
308 TriToOri[NewMI] = MI; in generateTripleMBB()
318 auto *NewMI = MF->CloneMachineInstr(MI); in generateTripleMBB() local
321 for (auto MO : NewMI->all_defs()) in generateTripleMBB()
325 NewMI->substituteRegister(MO.getReg(), NewDef, 0, *TRI); in generateTripleMBB()
330 if (NewMI->readsRegister(DefRegPair.first, TRI)) { in generateTripleMBB()
361 NewMI->substituteRegister(DefRegPair.first, NewUse, 0, *TRI); in generateTripleMBB()
366 MBB->push_back(NewMI); in generateTripleMBB()
[all …]
H A DTargetInstrInfo.cpp169 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
218 if (NewMI) { in commuteInstructionImpl()
249 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument
261 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
526 MachineInstr *NewMI = in foldPatchpoint() local
528 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
561 NewMI->tieOperands(TiedTo, NewMI->getNumOperands() - 1); in foldPatchpoint()
565 return NewMI; in foldPatchpoint()
607 MachineInstr &NewMI = TII.duplicate(*MI.getParent(), MI.getIterator(), MI); in foldInlineAsmMemOperand() local
609 foldInlineAsmMemOperand(&NewMI, Op, FI, TII); in foldInlineAsmMemOperand()
[all …]
H A DModuloSchedule.cpp141 MachineInstr *NewMI = cloneInstr(CI, MaxStageCount, StageNum); in generatePipelinedLoop() local
142 updateInstruction(NewMI, false, MaxStageCount, StageNum, VRMap); in generatePipelinedLoop()
143 KernelBB->push_back(NewMI); in generatePipelinedLoop()
144 InstrMap[NewMI] = CI; in generatePipelinedLoop()
150 MachineInstr *NewMI = MF.CloneMachineInstr(&MI); in generatePipelinedLoop() local
151 updateInstruction(NewMI, false, MaxStageCount, 0, VRMap); in generatePipelinedLoop()
152 KernelBB->push_back(NewMI); in generatePipelinedLoop()
153 InstrMap[NewMI] = &MI; in generatePipelinedLoop()
225 MachineInstr *NewMI = in generateProlog() local
227 updateInstruction(NewMI, false, i, (unsigned)StageNum, VRMap); in generateProlog()
[all …]
H A DFixupStatepointCallerSaved.cpp476 MachineInstr *NewMI = in rewriteStatepoint() local
478 MachineInstrBuilder MIB(MF, NewMI); in rewriteStatepoint()
494 NewIndices.push_back(NewMI->getNumOperands()); in rewriteStatepoint()
504 NewIndices.push_back(NewMI->getNumOperands()); in rewriteStatepoint()
540 NewMI->setMemRefs(MF, MI.memoperands()); in rewriteStatepoint()
551 NewMI->addMemOperand(MF, MMO); in rewriteStatepoint()
555 MI.getParent()->insert(MI, NewMI); in rewriteStatepoint()
557 LLVM_DEBUG(dbgs() << "rewritten statepoint to : " << *NewMI << "\n"); in rewriteStatepoint()
559 return NewMI; in rewriteStatepoint()
H A DMachineLoopUtils.cpp47 MachineInstr *NewMI = MF.CloneMachineInstr(&MI); in PeelSingleBlockLoop() local
48 NewBB->insert(InsertPt, NewMI); in PeelSingleBlockLoop()
49 for (MachineOperand &MO : NewMI->defs()) { in PeelSingleBlockLoop()
H A DRegisterCoalescer.cpp901 MachineInstr *NewMI = in removeCopyByCommutingDef() local
903 if (!NewMI) in removeCopyByCommutingDef()
908 if (NewMI != DefMI) { in removeCopyByCommutingDef()
909 LIS->ReplaceMachineInstrInMaps(*DefMI, *NewMI); in removeCopyByCommutingDef()
911 MBB->insert(Pos, NewMI); in removeCopyByCommutingDef()
1374 MachineInstr &NewMI = *std::prev(MII); in reMaterializeTrivialDef() local
1375 NewMI.setDebugLoc(DL); in reMaterializeTrivialDef()
1384 MachineOperand &DefMO = NewMI.getOperand(0); in reMaterializeTrivialDef()
1398 for (MachineOperand &MO : NewMI.operands()) { in reMaterializeTrivialDef()
1446 for (unsigned i = NewMI.getDesc().getNumOperands(), in reMaterializeTrivialDef()
[all …]
H A DMachineCSE.cpp561 if (MachineInstr *NewMI = TII->commuteInstruction(MI)) { in ProcessBlockCSE() local
563 FoundCSE = VNT.count(NewMI); in ProcessBlockCSE()
564 if (NewMI != &MI) { in ProcessBlockCSE()
566 NewMI->eraseFromParent(); in ProcessBlockCSE()
883 MachineInstr &NewMI = in ProcessBlockPRE() local
890 NewMI.setDebugLoc(EmptyDL); in ProcessBlockPRE()
892 NewMI.getOperand(0).setReg(NewReg); in ProcessBlockPRE()
H A DTwoAddressInstructionPass.cpp745 MachineInstr *NewMI = TII->commuteInstruction(*MI, false, RegBIdx, RegCIdx); in commuteInstruction() local
747 if (NewMI == nullptr) { in commuteInstruction()
752 LLVM_DEBUG(dbgs() << "2addr: COMMUTED TO: " << *NewMI); in commuteInstruction()
753 assert(NewMI == MI && in commuteInstruction()
790 MachineInstr *NewMI = TII->convertToThreeAddress(*mi, LV, LIS); in convertInstTo3Addr() local
791 if (!NewMI) in convertInstTo3Addr()
795 LLVM_DEBUG(dbgs() << "2addr: TO 3-ADDR: " << *NewMI); in convertInstTo3Addr()
800 assert(NewMI->getNumExplicitDefs() == 1); in convertInstTo3Addr()
804 unsigned NewIdx = NewMI->defs().begin()->getOperandNo(); in convertInstTo3Addr()
807 unsigned NewInstrNum = NewMI->getDebugInstrNum(); in convertInstTo3Addr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHazardRecognizer.cpp51 MachineInstr *NewMI = in getHazardType() local
54 if (Resources->canReserveResources(*NewMI)) in getHazardType()
58 MF->deleteMachineInstr(NewMI); in getHazardType()
131 MachineInstr *NewMI = in EmitInstruction() local
134 if (Resources->canReserveResources(*NewMI)) in EmitInstruction()
135 Resources->reserveResources(*NewMI); in EmitInstruction()
138 MF->deleteMachineInstr(NewMI); in EmitInstruction()
H A DHexagonTfrCleanup.cpp218 MachineInstr *NewMI; in rewriteIfImm() local
220 NewMI = BuildMI(B, MI, DL, HII->get(A2_tfrsi), DstR).addImm(SVal); in rewriteIfImm()
222 NewMI = BuildMI(B, MI, DL, HII->get(A2_tfrpi), DstR).addImm(SVal); in rewriteIfImm()
224 NewMI = BuildMI(B, MI, DL, HII->get(A2_combineii), DstR) in rewriteIfImm()
231 NewMI = BuildMI(B, MI, DL, HII->get(CONST64), DstR).addImm(Val); in rewriteIfImm()
235 Indexes->replaceMachineInstrInMaps(*MI, *NewMI); in rewriteIfImm()
H A DHexagonNewValueJump.cpp677 MachineInstr *NewMI; in runOnMachineFunction() local
688 NewMI = BuildMI(*MBB, jmpPos, dl, QII->get(opc)) in runOnMachineFunction()
694 NewMI = BuildMI(*MBB, jmpPos, dl, QII->get(opc)) in runOnMachineFunction()
699 assert(NewMI && "New Value Jump Instruction Not created!"); in runOnMachineFunction()
700 (void)NewMI; in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiInstrInfo.cpp512 MachineInstrBuilder NewMI = in optimizeSelect() local
519 NewMI.add(DefMI->getOperand(i)); in optimizeSelect()
523 NewMI.addImm(getOppositeCondition(LPCC::CondCode(CondCode))); in optimizeSelect()
525 NewMI.addImm(CondCode); in optimizeSelect()
526 NewMI.copyImplicitOps(MI); in optimizeSelect()
532 NewMI.add(FalseReg); in optimizeSelect()
533 NewMI->tieOperands(0, NewMI->getNumOperands() - 1); in optimizeSelect()
536 SeenMIs.insert(NewMI); in optimizeSelect()
544 NewMI->clearKillInfo(); in optimizeSelect()
548 return NewMI; in optimizeSelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVInstPrinter.cpp67 const MCInst *NewMI = MI; in printInst() local
72 NewMI = const_cast<MCInst *>(&UncompressedMI); in printInst()
73 if (!PrintAliases || NoAliases || !printAliasInstr(NewMI, Address, STI, O)) in printInst()
74 printInstruction(NewMI, Address, STI, O); in printInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DWindowScheduler.h161 int getOriCycle(MachineInstr *NewMI);
163 MachineInstr *getOriMI(MachineInstr *NewMI);
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DA15SDOptimizer.cpp372 MachineInstr *NewMI = MRI->getVRegDef(Reg); in elideCopiesAndPHIs() local
373 if (!NewMI) in elideCopiesAndPHIs()
375 Front.push_back(NewMI); in elideCopiesAndPHIs()
380 MachineInstr *NewMI = MRI->getVRegDef(MI->getOperand(1).getReg()); in elideCopiesAndPHIs() local
381 if (!NewMI) in elideCopiesAndPHIs()
383 Front.push_back(NewMI); in elideCopiesAndPHIs()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYInstPrinter.cpp78 const MCInst *NewMI = MI; in printInst() local
80 if (NoAliases || !printAliasInstr(NewMI, Address, STI, O)) in printInst()
81 printInstruction(NewMI, Address, STI, O); in printInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrInfo.cpp76 MachineInstr &MI, bool NewMI, unsigned OpIdx1, unsigned OpIdx2) const { in commuteInstructionImpl() argument
85 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()

1234