Home
last modified time | relevance | path

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

/external/llvm/lib/CodeGen/
DTargetInstrInfoImpl.cpp61 bool NewMI) const { in commuteInstruction()
90 if (NewMI) { in commuteInstruction()
250 if (MachineInstr *NewMI = foldMemoryOperandImpl(MF, MI, Ops, FI)) { in foldMemoryOperand() local
253 NewMI->getDesc().mayStore()) && in foldMemoryOperand()
256 NewMI->getDesc().mayLoad()) && in foldMemoryOperand()
265 NewMI->addMemOperand(MF, MMO); in foldMemoryOperand()
268 return MBB->insert(MI, NewMI); in foldMemoryOperand()
306 MachineInstr *NewMI = foldMemoryOperandImpl(MF, MI, Ops, LoadMI); in foldMemoryOperand() local
307 if (!NewMI) return 0; in foldMemoryOperand()
309 NewMI = MBB.insert(MI, NewMI); in foldMemoryOperand()
[all …]
DTwoAddressInstructionPass.cpp590 MachineInstr *NewMI = TII->commuteInstruction(MI); in CommuteInstruction() local
592 if (NewMI == 0) { in CommuteInstruction()
597 DEBUG(dbgs() << "2addr: COMMUTED TO: " << *NewMI); in CommuteInstruction()
599 if (NewMI != MI) { in CommuteInstruction()
602 LV->replaceKillInstruction(RegC, MI, NewMI); in CommuteInstruction()
604 mbbi->insert(mi, NewMI); // Insert the new inst in CommuteInstruction()
606 mi = NewMI; in CommuteInstruction()
607 DistanceMap.insert(std::make_pair(NewMI, Dist)); in CommuteInstruction()
645 MachineInstr *NewMI = TII->convertToThreeAddress(mbbi, mi, LV); in ConvertInstTo3Addr() local
646 if (NewMI) { in ConvertInstTo3Addr()
[all …]
DMachineCSE.cpp380 MachineInstr *NewMI = TII->commuteInstruction(MI); in ProcessBlock() local
381 if (NewMI) { in ProcessBlock()
383 FoundCSE = VNT.count(NewMI); in ProcessBlock()
384 if (NewMI != MI) { in ProcessBlock()
386 NewMI->eraseFromParent(); in ProcessBlock()
DVirtRegMap.cpp184 MachineInstr *NewMI, ModRef MRInfo) { in virtFolded() argument
186 MI2VirtMapTy::iterator IP = MI2VirtMap.lower_bound(NewMI); in virtFolded()
189 MI2VirtMap.insert(IP, std::make_pair(NewMI, I->second)); in virtFolded()
194 MI2VirtMap.insert(IP, std::make_pair(NewMI, std::make_pair(VirtReg, MRInfo))); in virtFolded()
DRegisterCoalescer.cpp588 MachineInstr *NewMI = tii_->commuteInstruction(DefMI); in RemoveCopyByCommutingDef() local
589 if (!NewMI) in RemoveCopyByCommutingDef()
595 if (NewMI != DefMI) { in RemoveCopyByCommutingDef()
596 li_->ReplaceMachineInstrInMaps(DefMI, NewMI); in RemoveCopyByCommutingDef()
597 MBB->insert(DefMI, NewMI); in RemoveCopyByCommutingDef()
600 unsigned OpIdx = NewMI->findRegisterUseOperandIdx(IntA.reg, false); in RemoveCopyByCommutingDef()
601 NewMI->getOperand(OpIdx).setIsKill(); in RemoveCopyByCommutingDef()
735 MachineInstr *NewMI = prior(MII); in ReMaterializeTrivialDef() local
743 NewMI->addOperand(MO); in ReMaterializeTrivialDef()
748 NewMI->copyImplicitOps(CopyMI); in ReMaterializeTrivialDef()
[all …]
DTailDuplication.cpp413 MachineInstr *NewMI = TII->duplicate(MI, MF); in DuplicateInstruction() local
414 for (unsigned i = 0, e = NewMI->getNumOperands(); i != e; ++i) { in DuplicateInstruction()
415 MachineOperand &MO = NewMI->getOperand(i); in DuplicateInstruction()
434 PredBB->insert(PredBB->end(), NewMI); in DuplicateInstruction()
DStackSlotColoring.cpp651 MachineInstr *NewMI = NewMIs[0]; in UnfoldAndRewriteInstruction() local
652 MBB->insert(MI, NewMI); in UnfoldAndRewriteInstruction()
655 if (NewMI->readsRegister(Reg)) { in UnfoldAndRewriteInstruction()
DVirtRegRewriter.cpp687 MachineInstr *NewMI = prior(MII); in ReMaterialize() local
688 for (unsigned i = 0, e = NewMI->getNumOperands(); i != e; ++i) { in ReMaterialize()
689 MachineOperand &MO = NewMI->getOperand(i); in ReMaterialize()
1457 MachineInstr *NewMI = NewMIs.back(); in OptimizeByUnfold() local
1458 MBB->insert(MII, NewMI); in OptimizeByUnfold()
1460 int Idx = NewMI->findRegisterUseOperandIdx(VirtReg, false); in OptimizeByUnfold()
1464 MachineInstr *FoldedMI = TII->foldMemoryOperand(NewMI, Ops, SS); in OptimizeByUnfold()
1465 NewMI->eraseFromParent(); in OptimizeByUnfold()
DLiveVariables.cpp649 MachineInstr *NewMI) { in replaceKillInstruction() argument
651 std::replace(VI.Kills.begin(), VI.Kills.end(), OldMI, NewMI); in replaceKillInstruction()
DVirtRegMap.h460 void virtFolded(unsigned VirtReg, MachineInstr *OldMI, MachineInstr *NewMI,
/external/llvm/lib/Target/X86/
DX86InstrInfo.cpp1116 MachineInstr *NewMI = prior(I); in reMaterialize() local
1117 NewMI->substituteRegister(Orig->getOperand(0).getReg(), DestReg, SubIdx, TRI); in reMaterialize()
1220 MachineInstr *NewMI = MIB; in convertToThreeAddressWithLEA() local
1228 LV->getVarInfo(leaInReg).Kills.push_back(NewMI); in convertToThreeAddressWithLEA()
1261 MachineInstr *NewMI = NULL; in convertToThreeAddress() local
1279 NewMI = BuildMI(MF, MI->getDebugLoc(), get(X86::PSHUFDri)) in convertToThreeAddress()
1296 NewMI = BuildMI(MF, MI->getDebugLoc(), get(X86::LEA64r)) in convertToThreeAddress()
1316 NewMI = BuildMI(MF, MI->getDebugLoc(), get(Opc)) in convertToThreeAddress()
1331 NewMI = BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
1361 NewMI = addRegOffset(BuildMI(MF, MI->getDebugLoc(), get(Opc)) in convertToThreeAddress()
[all …]
DX86InstrInfo.h711 virtual MachineInstr *commuteInstruction(MachineInstr *MI, bool NewMI) const;
DX86FrameLowering.cpp829 MachineInstr *NewMI = prior(MBBI); in emitEpilogue() local
831 NewMI->addOperand(MBBI->getOperand(i)); in emitEpilogue()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.h99 virtual MachineInstr *commuteInstruction(MachineInstr *MI, bool NewMI) const;
DPPCInstrInfo.cpp98 PPCInstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const { in commuteInstruction()
103 return TargetInstrInfoImpl::commuteInstruction(MI, NewMI); in commuteInstruction()
137 if (NewMI) { in commuteInstruction()
/external/llvm/include/llvm/Target/
DTargetInstrInfo.h228 bool NewMI = false) const = 0;
691 bool NewMI = false) const;
/external/llvm/include/llvm/CodeGen/
DLiveIntervalAnalysis.h246 void ReplaceMachineInstrInMaps(MachineInstr *MI, MachineInstr *NewMI) { in ReplaceMachineInstrInMaps() argument
247 indexes_->replaceMachineInstrInMaps(MI, NewMI); in ReplaceMachineInstrInMaps()
DLiveVariables.h203 MachineInstr *NewMI);
/external/clang/lib/Lex/
DPPMacroExpansion.cpp294 if (MacroInfo *NewMI = getMacroInfo(NewII)) in HandleMacroExpandedIdentifier() local
295 if (!NewMI->isEnabled() || NewMI == MI) in HandleMacroExpandedIdentifier()
/external/llvm/lib/Target/ARM/
DARMFrameLowering.cpp426 MachineInstr *NewMI = prior(MBBI); in emitEpilogue() local
428 NewMI->addOperand(MBBI->getOperand(i)); in emitEpilogue()
432 MBBI = NewMI; in emitEpilogue()
DARMBaseInstrInfo.cpp238 MachineInstr *NewMI = (Reg == WBReg) ? UpdateMI : MemMI; in convertToThreeAddress() local
240 LV->addVirtualRegisterDead(Reg, NewMI); in convertToThreeAddress()
245 MachineInstr *NewMI = NewMIs[j]; in convertToThreeAddress() local
246 if (!NewMI->readsRegister(Reg)) in convertToThreeAddress()
248 LV->addVirtualRegisterKilled(Reg, NewMI); in convertToThreeAddress()
250 VI.Kills.push_back(NewMI); in convertToThreeAddress()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGISel.cpp339 MachineInstr *NewMI = in runOnMachineFunction() local
344 EntryMBB->insertAfter(CopyUseMI, NewMI); in runOnMachineFunction()