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 DBPFIRPeephole.cpp33 Instruction *ToErase = nullptr; in BPFIRPeepholeImpl() local
53 if (ToErase) { in BPFIRPeepholeImpl()
54 ToErase->eraseFromParent(); in BPFIRPeepholeImpl()
55 ToErase = nullptr; in BPFIRPeepholeImpl()
68 ToErase = &I; in BPFIRPeepholeImpl()
84 ToErase = &I; in BPFIRPeepholeImpl()
H A DBPFMIPeephole.cpp179 MachineInstr* ToErase = nullptr; in eliminateZExtSeq() local
185 if (ToErase) { in eliminateZExtSeq()
186 ToErase->eraseFromParent(); in eliminateZExtSeq()
187 ToErase = nullptr; in eliminateZExtSeq()
236 ToErase = &MI; in eliminateZExtSeq()
247 MachineInstr* ToErase = nullptr; in eliminateZExt() local
253 if (ToErase) { in eliminateZExt()
254 ToErase->eraseFromParent(); in eliminateZExt()
255 ToErase = nullptr; in eliminateZExt()
283 ToErase = &MI; in eliminateZExt()
[all …]
H A DBPFMISimplifyPatchable.cpp309 MachineInstr *ToErase = nullptr; in removeLD() local
314 if (ToErase) { in removeLD()
315 ToErase->eraseFromParent(); in removeLD()
316 ToErase = nullptr; in removeLD()
360 ToErase = &MI; in removeLD()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMIPeephole.cpp133 bool combineSEXTAndSHL(MachineInstr &MI, MachineInstr *&ToErase);
135 MachineInstr *&ToErase);
462 MachineInstr* ToErase = nullptr; in simplifyCode() local
512 for (MachineOperand &MO : ToErase->operands()) { in simplifyCode()
531 if (ToErase) { in simplifyCode()
533 LLVM_DEBUG(ToErase->dump()); in simplifyCode()
535 ToErase->eraseFromParent(); in simplifyCode()
536 ToErase = nullptr; in simplifyCode()
542 ToErase = &MI; in simplifyCode()
586 ToErase = &MI; in simplifyCode()
[all …]
H A DPPCInstrInfo.h746 bool combineRLWINM(MachineInstr &MI, MachineInstr **ToErase = nullptr) const;
H A DPPCInstrInfo.cpp3829 MachineInstr **ToErase) const { in combineRLWINM()
3958 *ToErase = SrcMI; in combineRLWINM()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp50 SmallVector<MachineInstr *, 10> ToErase, ToEraseComposites; in addConstantsToTrack() local
55 ToErase.push_back(&MI); in addConstantsToTrack()
119 for (MachineInstr *MI : ToErase) { in addConstantsToTrack()
140 SmallVector<MachineInstr *, 64> ToErase; in foldConstantsIntoIntrinsics() local
151 ToErase.push_back(&MI); in foldConstantsIntoIntrinsics()
153 for (MachineInstr *MI : ToErase) { in foldConstantsIntoIntrinsics()
157 ToErase.clear(); in foldConstantsIntoIntrinsics()
214 SmallVector<MachineInstr *, 16> ToErase; in selectOpBitcasts() local
222 ToErase.push_back(&MI); in selectOpBitcasts()
225 for (MachineInstr *MI : ToErase) { in selectOpBitcasts()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp818 SmallVector<CallInst *, 8> ToErase; in replaceLongjmpWith() local
835 ToErase.push_back(CI); in replaceLongjmpWith()
838 for (auto *I : ToErase) in replaceLongjmpWith()
867 SmallVector<Instruction *, 1> ToErase; in nullifySetjmp() local
880 ToErase.push_back(CI); in nullifySetjmp()
883 for (auto *I : ToErase) in nullifySetjmp()
1076 SmallVector<Instruction *, 64> ToErase; in runEHOnFunction() local
1098 ToErase.push_back(II); in runEHOnFunction()
1177 ToErase.push_back(RI); in runEHOnFunction()
1198 ToErase.push_back(CI); in runEHOnFunction()
[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.cpp501 SmallVector<MachineInstr *, 8> ToErase; in reassign() local
505 ToErase.push_back(MI); in reassign()
519 for (auto *MI : ToErase) in reassign()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/
H A DHipStdPar.cpp61 static inline void eraseFromModule(T &ToErase) { in eraseFromModule() argument
62 ToErase.replaceAllUsesWith(PoisonValue::get(ToErase.getType())); in eraseFromModule()
63 ToErase.eraseFromParent(); in eraseFromModule()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64A57FPLoadBalancing.cpp550 std::vector<unsigned> ToErase; in colorChain() local
558 ToErase.push_back(OrigReg); in colorChain()
562 ToErase.push_back(J.first); in colorChain()
567 for (auto J : ToErase) in colorChain()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp561 auto *ToErase = cast<MachineInstr>(&*std::next(Branch)); in replaceWithCompactBranch() local
563 if (ToErase->shouldUpdateAdditionalCallInfo()) in replaceWithCompactBranch()
564 ToErase->getMF()->moveAdditionalCallInfo(ToErase, in replaceWithCompactBranch()
566 ToErase->eraseFromParent(); in replaceWithCompactBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVExpandAtomicPseudoInsts.cpp573 SmallVector<MachineInstr *> ToErase; in tryToFoldBNEOnCmpXchgResult() local
590 ToErase.push_back(&*MBBI); in tryToFoldBNEOnCmpXchgResult()
611 ToErase.push_back(&*MBBI); in tryToFoldBNEOnCmpXchgResult()
618 for (auto *MI : ToErase) in tryToFoldBNEOnCmpXchgResult()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp253 SmallVector<Instruction *, 128> ToErase; member in __anonc586b4f20111::Vectorizer
459 for (Instruction *I : ToErase) { in run()
465 ToErase.clear(); in run()
997 ToErase.emplace_back(E.Inst); in vectorizeChain()
H A DVPlanTransforms.cpp2196 SmallVector<VPRecipeBase *> ToErase; in transformRecipestoEVLRecipes() local
2232 ToErase.push_back(&R); in transformRecipestoEVLRecipes()
2258 ToErase.push_back(CurRecipe); in transformRecipestoEVLRecipes()
2262 for (VPRecipeBase *R : reverse(ToErase)) { in transformRecipestoEVLRecipes()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNewGVN.cpp3527 for (Instruction *ToErase : InstructionsToErase) { in runGVN()
3528 if (!ToErase->use_empty()) in runGVN()
3529 ToErase->replaceAllUsesWith(PoisonValue::get(ToErase->getType())); in runGVN()
3531 assert(ToErase->getParent() && in runGVN()
3533 ToErase->eraseFromParent(); in runGVN()
H A DRewriteStatepointsForGC.cpp1585 static DeferredReplacement createDelete(Instruction *ToErase) { in createDelete() argument
1587 D.Old = ToErase; in createDelete()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp3798 SmallVector<const VarDecl *, 8> ToErase; in eraseVarsForUnfixableGroupMates() local
3809 ToErase.push_back(Member); in eraseVarsForUnfixableGroupMates()
3812 for (auto *VarToErase : ToErase) in eraseVarsForUnfixableGroupMates()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp2743 for (Instruction *I : llvm::reverse(ToErase)) in calculatePointerDifference()
2746 SmallVector<Instruction *, 8> ToErase; in calculatePointerDifference() member
2753 B_.ToErase.push_back(I); \ in calculatePointerDifference()