Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86FixupLEAs.cpp134 MachineInstr *NewMI = in INITIALIZE_PASS() local
144 return NewMI; in INITIALIZE_PASS()
383 MachineInstr *NewMI = nullptr; in optTwoAddrLEA() local
395 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
400 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
416 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
419 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
426 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
430 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
438 I = NewMI; in optTwoAddrLEA()
[all …]
DX86FixupBWInsts.cpp446 if (MachineInstr *NewMI = tryReplaceInstr(MI, MBB)) in processBasicBlock() local
447 MIReplacements.push_back(std::make_pair(MI, NewMI)); in processBasicBlock()
455 MachineInstr *NewMI = MIReplacements.back().second; in processBasicBlock() local
457 MBB.insert(MI, NewMI); in processBasicBlock()
DX86InstrInfo.cpp667 MachineInstr &NewMI = *std::prev(I); in reMaterialize() local
668 NewMI.substituteRegister(Orig.getOperand(0).getReg(), DestReg, SubIdx, TRI); in reMaterialize()
862 MachineInstr *NewMI = MIB; in convertToThreeAddressWithLEA() local
870 LV->getVarInfo(InRegLEA).Kills.push_back(NewMI); in convertToThreeAddressWithLEA()
915 MachineInstr *NewMI = nullptr; in convertToThreeAddress() local
933 NewMI = BuildMI(MF, MI.getDebugLoc(), get(X86::LEA64r)) in convertToThreeAddress()
967 NewMI = MIB; in convertToThreeAddress()
1000 NewMI = addOffset(MIB, 1); in convertToThreeAddress()
1022 NewMI = addOffset(MIB, -1); in convertToThreeAddress()
1065 NewMI = addRegReg(MIB, SrcReg, isKill, SrcReg2, isKill2); in convertToThreeAddress()
[all …]
DX86CmovConversion.cpp779 for (auto *NewMI : NewMIs) { in convertCmovInstsToBranches() local
780 LLVM_DEBUG(dbgs() << "\tRewritten load instr: "; NewMI->dump()); in convertCmovInstsToBranches()
781 FalseMBB->insert(FalseInsertionPoint, NewMI); in convertCmovInstsToBranches()
783 for (auto &MOp : NewMI->uses()) { in convertCmovInstsToBranches()
DX86ExpandPseudo.cpp276 MachineInstr &NewMI = *std::prev(MBBI); in ExpandMI() local
277 NewMI.copyImplicitOps(*MBBI->getParent()->getParent(), *MBBI); in ExpandMI()
278 MBB.getParent()->moveCallSiteInfo(&*MBBI, &NewMI); in ExpandMI()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DR600ExpandSpecialInstrs.cpp43 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI,
73 void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI, in SetFlagInNewMI() argument
78 TII->setImmOperand(*NewMI, Op, Val); in SetFlagInNewMI()
263 MachineInstr *NewMI = in runOnMachineFunction() local
267 NewMI->bundleWithPred(); in runOnMachineFunction()
269 TII->addFlag(*NewMI, 0, MO_FLAG_MASK); in runOnMachineFunction()
272 TII->addFlag(*NewMI, 0, MO_FLAG_NOT_LAST); in runOnMachineFunction()
274 SetFlagInNewMI(NewMI, &MI, R600::OpName::clamp); in runOnMachineFunction()
275 SetFlagInNewMI(NewMI, &MI, R600::OpName::literal); in runOnMachineFunction()
276 SetFlagInNewMI(NewMI, &MI, R600::OpName::src0_abs); in runOnMachineFunction()
[all …]
DGCNDPPCombine.cpp519 auto *NewMI = BB->getParent()->CloneMachineInstr(&OrigMI); in combineDPPMov() local
520 BB->insert(OrigMI, NewMI); in combineDPPMov()
521 if (TII->commuteInstruction(*NewMI)) { in combineDPPMov()
522 LLVM_DEBUG(dbgs() << " commuted: " << *NewMI); in combineDPPMov()
523 if (auto *DPPInst = createDPPInst(*NewMI, MovMI, CombOldVGPR, in combineDPPMov()
530 NewMI->eraseFromParent(); in combineDPPMov()
DSILoadStoreOptimizer.cpp1998 MachineBasicBlock::iterator NewMI = mergeRead2Pair(CI, Paired); in optimizeInstsWithSameBaseAddr() local
1999 CI.setMI(NewMI, *TII, *STM); in optimizeInstsWithSameBaseAddr()
2003 MachineBasicBlock::iterator NewMI = mergeWrite2Pair(CI, Paired); in optimizeInstsWithSameBaseAddr() local
2004 CI.setMI(NewMI, *TII, *STM); in optimizeInstsWithSameBaseAddr()
2008 MachineBasicBlock::iterator NewMI = mergeSBufferLoadImmPair(CI, Paired); in optimizeInstsWithSameBaseAddr() local
2009 CI.setMI(NewMI, *TII, *STM); in optimizeInstsWithSameBaseAddr()
2014 MachineBasicBlock::iterator NewMI = mergeBufferLoadPair(CI, Paired); in optimizeInstsWithSameBaseAddr() local
2015 CI.setMI(NewMI, *TII, *STM); in optimizeInstsWithSameBaseAddr()
2020 MachineBasicBlock::iterator NewMI = mergeBufferStorePair(CI, Paired); in optimizeInstsWithSameBaseAddr() local
2021 CI.setMI(NewMI, *TII, *STM); in optimizeInstsWithSameBaseAddr()
[all …]
DR600OptimizeVectorRegisters.cpp230 MachineInstr *NewMI = in RebuildVector() local
232 LLVM_DEBUG(dbgs() << " ->"; NewMI->dump();); in RebuildVector()
244 RSI->Instr = NewMI; in RebuildVector()
248 return NewMI; in RebuildVector()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonHazardRecognizer.cpp56 MachineInstr *NewMI = in getHazardType() local
59 if (Resources->canReserveResources(*NewMI)) in getHazardType()
63 MF->DeleteMachineInstr(NewMI); in getHazardType()
127 MachineInstr *NewMI = in EmitInstruction() local
130 assert(Resources->canReserveResources(*NewMI)); in EmitInstruction()
131 Resources->reserveResources(*NewMI); in EmitInstruction()
132 MF->DeleteMachineInstr(NewMI); in EmitInstruction()
DHexagonNewValueJump.cpp682 MachineInstr *NewMI; in runOnMachineFunction() local
693 NewMI = BuildMI(*MBB, jmpPos, dl, QII->get(opc)) in runOnMachineFunction()
699 NewMI = BuildMI(*MBB, jmpPos, dl, QII->get(opc)) in runOnMachineFunction()
704 assert(NewMI && "New Value Jump Instruction Not created!"); in runOnMachineFunction()
705 (void)NewMI; in runOnMachineFunction()
DHexagonConstPropagation.cpp2907 const MachineInstr *NewMI; in rewriteHexConstDefs() local
2911 NewMI = BuildMI(B, At, DL, *NewD, NewR) in rewriteHexConstDefs()
2916 NewMI = BuildMI(B, At, DL, *NewD, NewR) in rewriteHexConstDefs()
2923 NewMI = BuildMI(B, At, DL, *NewD, NewR) in rewriteHexConstDefs()
2928 NewMI = BuildMI(B, At, DL, *NewD, NewR) in rewriteHexConstDefs()
2933 (void)NewMI; in rewriteHexConstDefs()
2935 NewInstrs.push_back(NewMI); in rewriteHexConstDefs()
2963 MachineInstr *NewMI = nullptr; in rewriteHexConstUses() local
2994 NewMI = BuildMI(B, At, DL, HII.get(TargetOpcode::COPY), NewR) in rewriteHexConstUses()
3024 NewMI = BuildMI(B, At, DL, D, NewR) in rewriteHexConstUses()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTargetInstrInfo.cpp158 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
209 if (NewMI) { in commuteInstructionImpl()
240 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument
252 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
501 MachineInstr *NewMI = in foldPatchpoint() local
503 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
529 return NewMI; in foldPatchpoint()
570 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
576 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand()
577 if (NewMI) in foldMemoryOperand()
[all …]
DModuloSchedule.cpp137 MachineInstr *NewMI = cloneInstr(CI, MaxStageCount, StageNum); in generatePipelinedLoop() local
138 updateInstruction(NewMI, false, MaxStageCount, StageNum, VRMap); in generatePipelinedLoop()
139 KernelBB->push_back(NewMI); in generatePipelinedLoop()
140 InstrMap[NewMI] = CI; in generatePipelinedLoop()
148 MachineInstr *NewMI = MF.CloneMachineInstr(&*I); in generatePipelinedLoop() local
149 updateInstruction(NewMI, false, MaxStageCount, 0, VRMap); in generatePipelinedLoop()
150 KernelBB->push_back(NewMI); in generatePipelinedLoop()
151 InstrMap[NewMI] = &*I; in generatePipelinedLoop()
220 MachineInstr *NewMI = in generateProlog() local
222 updateInstruction(NewMI, false, i, (unsigned)StageNum, VRMap); in generateProlog()
[all …]
DTwoAddressInstructionPass.cpp687 MachineInstr *NewMI = TII->commuteInstruction(*MI, false, RegBIdx, RegCIdx); in commuteInstruction() local
689 if (NewMI == nullptr) { in commuteInstruction()
694 LLVM_DEBUG(dbgs() << "2addr: COMMUTED TO: " << *NewMI); in commuteInstruction()
695 assert(NewMI == MI && in commuteInstruction()
735 MachineInstr *NewMI = TII->convertToThreeAddress(MFI, *mi, LV); in convertInstTo3Addr() local
738 if (!NewMI) in convertInstTo3Addr()
742 LLVM_DEBUG(dbgs() << "2addr: TO 3-ADDR: " << *NewMI); in convertInstTo3Addr()
746 LIS->ReplaceMachineInstrInMaps(*mi, *NewMI); in convertInstTo3Addr()
748 if (NewMI->findRegisterUseOperand(RegB, false, TRI)) in convertInstTo3Addr()
752 Sunk = sink3AddrInstruction(NewMI, RegB, mi); in convertInstTo3Addr()
[all …]
DMachineLoopUtils.cpp49 MachineInstr *NewMI = MF.CloneMachineInstr(&MI); in PeelSingleBlockLoop() local
50 NewBB->insert(InsertPt, NewMI); in PeelSingleBlockLoop()
51 for (MachineOperand &MO : NewMI->defs()) { in PeelSingleBlockLoop()
DRegisterCoalescer.cpp863 MachineInstr *NewMI = in removeCopyByCommutingDef() local
865 if (!NewMI) in removeCopyByCommutingDef()
871 if (NewMI != DefMI) { in removeCopyByCommutingDef()
872 LIS->ReplaceMachineInstrInMaps(*DefMI, *NewMI); in removeCopyByCommutingDef()
874 MBB->insert(Pos, NewMI); in removeCopyByCommutingDef()
1311 MachineInstr &NewMI = *std::prev(MII); in reMaterializeTrivialDef() local
1312 NewMI.setDebugLoc(DL); in reMaterializeTrivialDef()
1321 MachineOperand &DefMO = NewMI.getOperand(0); in reMaterializeTrivialDef()
1354 LIS->ReplaceMachineInstrInMaps(*CopyMI, NewMI); in reMaterializeTrivialDef()
1362 for (unsigned i = NewMI.getDesc().getNumOperands(), in reMaterializeTrivialDef()
[all …]
DMachineCSE.cpp542 if (MachineInstr *NewMI = TII->commuteInstruction(*MI)) { in ProcessBlockCSE() local
544 FoundCSE = VNT.count(NewMI); in ProcessBlockCSE()
545 if (NewMI != MI) { in ProcessBlockCSE()
547 NewMI->eraseFromParent(); in ProcessBlockCSE()
832 MachineInstr &NewMI = in ProcessBlockPRE() local
834 NewMI.getOperand(0).setReg(NewReg); in ProcessBlockPRE()
DMachinePipeliner.cpp2133 MachineInstr *NewMI = MF.CloneMachineInstr(MI); in canUseLastOffsetValue() local
2134 NewMI->getOperand(OffsetPosLd).setImm(LoadOffset + StoreOffset); in canUseLastOffsetValue()
2135 bool Disjoint = TII->areMemAccessesTriviallyDisjoint(*NewMI, *PrevDef); in canUseLastOffsetValue()
2136 MF.DeleteMachineInstr(NewMI); in canUseLastOffsetValue()
2167 MachineInstr *NewMI = MF.CloneMachineInstr(MI); in applyInstrChange() local
2170 NewMI->getOperand(BasePos).setReg(RegAndOffset.first); in applyInstrChange()
2176 NewMI->getOperand(OffsetPos).setImm(NewOffset); in applyInstrChange()
2177 SU->setInstr(NewMI); in applyInstrChange()
2178 MISUnitMap[NewMI] = SU; in applyInstrChange()
2179 NewMIs[MI] = NewMI; in applyInstrChange()
[all …]
DTailDuplicator.cpp388 MachineInstr &NewMI = TII->duplicate(*PredBB, PredBB->end(), *MI); in duplicateInstruction() local
390 for (unsigned i = 0, e = NewMI.getNumOperands(); i != e; ++i) { in duplicateInstruction()
391 MachineOperand &MO = NewMI.getOperand(i); in duplicateInstruction()
444 BuildMI(*PredBB, NewMI, NewMI.getDebugLoc(), in duplicateInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/MCTargetDesc/
DRISCVInstPrinter.cpp70 const MCInst *NewMI = MI; in printInst() local
75 NewMI = const_cast<MCInst *>(&UncompressedMI); in printInst()
76 if (NoAliases || !printAliasInstr(NewMI, STI, O)) in printInst()
77 printInstruction(NewMI, Address, STI, O); in printInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp513 MachineInstrBuilder NewMI = in optimizeSelect() local
520 NewMI.add(DefMI->getOperand(i)); in optimizeSelect()
524 NewMI.addImm(getOppositeCondition(LPCC::CondCode(CondCode))); in optimizeSelect()
526 NewMI.addImm(CondCode); in optimizeSelect()
527 NewMI.copyImplicitOps(MI); in optimizeSelect()
533 NewMI.add(FalseReg); in optimizeSelect()
534 NewMI->tieOperands(0, NewMI->getNumOperands() - 1); in optimizeSelect()
537 SeenMIs.insert(NewMI); in optimizeSelect()
545 NewMI->clearKillInfo(); in optimizeSelect()
549 return NewMI; in optimizeSelect()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DA15SDOptimizer.cpp375 MachineInstr *NewMI = MRI->getVRegDef(Reg); in elideCopiesAndPHIs() local
376 if (!NewMI) in elideCopiesAndPHIs()
378 Front.push_back(NewMI); in elideCopiesAndPHIs()
383 MachineInstr *NewMI = MRI->getVRegDef(MI->getOperand(1).getReg()); in elideCopiesAndPHIs() local
384 if (!NewMI) in elideCopiesAndPHIs()
386 Front.push_back(NewMI); in elideCopiesAndPHIs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsRegisterBankInfo.cpp686 MachineInstr *NewMI = NewInstrs.pop_back_val(); in applyMappingImpl() local
690 if (NewMI->getOpcode() == TargetOpcode::G_UNMERGE_VALUES) in applyMappingImpl()
691 combineAwayG_UNMERGE_VALUES(ArtCombiner, *NewMI); in applyMappingImpl()
694 else if (NewMI->getOpcode() == TargetOpcode::G_MERGE_VALUES) in applyMappingImpl()
698 setRegBank(*NewMI, MRI); in applyMappingImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrInfo.cpp89 MachineInstr &MI, bool NewMI, unsigned OpIdx1, unsigned OpIdx2) const { in commuteInstructionImpl() argument
98 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()

123