Home
last modified time | relevance | path

Searched refs:ToErase (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFMIPeephole.cpp178 MachineInstr* ToErase = nullptr; in eliminateZExtSeq()
184 if (ToErase) { in eliminateZExtSeq()
185 ToErase->eraseFromParent(); in eliminateZExtSeq()
186 ToErase = nullptr; in eliminateZExtSeq()
234 // Mark it to ToErase, and erase in the next iteration. in eliminateZExtSeq()
235 ToErase = &MI; in eliminateZExtSeq()
246 MachineInstr* ToErase = nullptr; in eliminateZExt()
252 if (ToErase) { in eliminateZExt()
253 ToErase->eraseFromParent(); in eliminateZExt()
254 ToErase in eliminateZExt()
175 MachineInstr* ToErase = nullptr; eliminateZExtSeq() local
243 MachineInstr* ToErase = nullptr; eliminateZExt() local
337 MachineInstr* ToErase = nullptr; eliminateRedundantMov() local
455 MachineInstr* ToErase = nullptr; eliminateTruncSeq() local
[all...]
H A DBPFIRPeephole.cpp35 Instruction *ToErase = nullptr; in BPFIRPeepholeImpl() local
55 if (ToErase) { in BPFIRPeepholeImpl()
56 ToErase->eraseFromParent(); in BPFIRPeepholeImpl()
57 ToErase = nullptr; in BPFIRPeepholeImpl()
70 ToErase = &I; in BPFIRPeepholeImpl()
86 ToErase = &I; in BPFIRPeepholeImpl()
H A DBPFMIChecking.cpp178 MachineInstr *ToErase = nullptr; in processAtomicInsts() local
183 if (ToErase) { in processAtomicInsts()
184 ToErase->eraseFromParent(); in processAtomicInsts()
185 ToErase = nullptr; in processAtomicInsts()
234 ToErase = &MI; in processAtomicInsts()
H A DBPFMISimplifyPatchable.cpp307 MachineInstr *ToErase = nullptr; in removeLD() local
312 if (ToErase) { in removeLD()
313 ToErase->eraseFromParent(); in removeLD()
314 ToErase = nullptr; in removeLD()
358 ToErase = &MI; in removeLD()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMIPeephole.cpp136 bool combineSEXTAndSHL(MachineInstr &MI, MachineInstr *&ToErase);
138 MachineInstr *&ToErase);
466 MachineInstr* ToErase = nullptr; in simplifyCode() local
517 for (MachineOperand &MO : ToErase->operands()) { in simplifyCode()
536 if (ToErase) { in simplifyCode()
538 LLVM_DEBUG(ToErase->dump()); in simplifyCode()
540 ToErase->eraseFromParent(); in simplifyCode()
541 ToErase = nullptr; in simplifyCode()
547 ToErase = &MI; in simplifyCode()
591 ToErase = &MI; in simplifyCode()
[all …]
H A DPPCInstrInfo.h632 bool combineRLWINM(MachineInstr &MI, MachineInstr **ToErase = nullptr) const;
H A DPPCInstrInfo.cpp3798 MachineInstr **ToErase) const { in combineRLWINM()
3927 *ToErase = SrcMI; in combineRLWINM()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp813 SmallVector<CallInst *, 8> ToErase; in replaceLongjmpWith() local
830 ToErase.push_back(CI); in replaceLongjmpWith()
833 for (auto *I : ToErase) in replaceLongjmpWith()
862 SmallVector<Instruction *, 1> ToErase; in nullifySetjmp() local
875 ToErase.push_back(CI); in nullifySetjmp()
878 for (auto *I : ToErase) in nullifySetjmp()
1071 SmallVector<Instruction *, 64> ToErase; in runEHOnFunction() local
1093 ToErase.push_back(II); in runEHOnFunction()
1172 ToErase.push_back(RI); in runEHOnFunction()
1193 ToErase.push_back(CI); in runEHOnFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp48 SmallVector<MachineInstr *, 10> ToErase, ToEraseComposites; in addConstantsToTrack() local
53 ToErase.push_back(&MI); in addConstantsToTrack()
112 for (MachineInstr *MI : ToErase) { in addConstantsToTrack()
129 SmallVector<MachineInstr *, 10> ToErase; in foldConstantsIntoIntrinsics() local
146 ToErase.push_back(ConstMI); in foldConstantsIntoIntrinsics()
150 for (MachineInstr *MI : ToErase) in foldConstantsIntoIntrinsics()
173 SmallVector<MachineInstr *, 10> ToErase; in insertBitcasts() local
181 ToErase.push_back(&MI); in insertBitcasts()
199 ToErase.push_back(AssignMI); in insertBitcasts()
207 for (MachineInstr *MI : ToErase) in insertBitcasts()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupSetCC.cpp73 SmallVector<MachineInstr*, 4> ToErase; in runOnMachineFunction() local
139 ToErase.push_back(ZExt); in runOnMachineFunction()
143 for (auto &I : ToErase) in runOnMachineFunction()
H A DX86DomainReassignment.cpp498 SmallVector<MachineInstr *, 8> ToErase; in reassign() local
502 ToErase.push_back(MI); in reassign()
516 for (auto *MI : ToErase) in reassign()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/
H A DHipStdPar.cpp62 static inline void eraseFromModule(T &ToErase) { in eraseFromModule() argument
63 ToErase.replaceAllUsesWith(PoisonValue::get(ToErase.getType())); in eraseFromModule()
64 ToErase.eraseFromParent(); in eraseFromModule()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64A57FPLoadBalancing.cpp551 std::vector<unsigned> ToErase; in colorChain()
559 ToErase.push_back(OrigReg); in colorChain()
563 ToErase.push_back(J.first); in colorChain()
568 for (auto J : ToErase) in colorChain()
552 std::vector<unsigned> ToErase; colorChain() local
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp566 auto *ToErase = cast<MachineInstr>(&*std::next(Branch)); in replaceWithCompactBranch() local
568 if (ToErase->shouldUpdateCallSiteInfo()) in replaceWithCompactBranch()
569 ToErase->getMF()->moveCallSiteInfo(ToErase, cast<MachineInstr>(&*Branch)); in replaceWithCompactBranch()
570 ToErase->eraseFromParent(); in replaceWithCompactBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVExpandAtomicPseudoInsts.cpp575 SmallVector<MachineInstr *> ToErase; in tryToFoldBNEOnCmpXchgResult()
592 ToErase.push_back(&*MBBI); in tryToFoldBNEOnCmpXchgResult()
613 ToErase.push_back(&*MBBI); in expandAtomicCmpXchg()
620 for (auto *MI : ToErase) in expandAtomicCmpXchg()
546 SmallVector<MachineInstr *> ToErase; tryToFoldBNEOnCmpXchgResult() local
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp249 SmallVector<Instruction *, 128> ToErase; member in __anonc586b4f20111::Vectorizer
449 for (Instruction *I : ToErase) { in run()
455 ToErase.clear(); in run()
983 ToErase.push_back(E.Inst); in vectorizeChain()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNewGVN.cpp3496 for (Instruction *ToErase : InstructionsToErase) { in runGVN()
3497 if (!ToErase->use_empty()) in runGVN()
3498 ToErase->replaceAllUsesWith(PoisonValue::get(ToErase->getType())); in runGVN()
3500 assert(ToErase->getParent() && in runGVN()
3502 ToErase->eraseFromParent(); in runGVN()
H A DRewriteStatepointsForGC.cpp1579 static DeferredReplacement createDelete(Instruction *ToErase) { in createDelete() argument
1581 D.Old = ToErase; in createDelete()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp2838 SmallVector<const VarDecl *, 8> ToErase; in eraseVarsForUnfixableGroupMates() local
2849 ToErase.push_back(Member); in eraseVarsForUnfixableGroupMates()
2852 for (auto *VarToErase : ToErase) in eraseVarsForUnfixableGroupMates()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp2742 for (Instruction *I : llvm::reverse(ToErase)) in calculatePointerDifference()
2745 SmallVector<Instruction *, 8> ToErase; in calculatePointerDifference() member
2752 B_.ToErase.push_back(I); \ in calculatePointerDifference()