Home
last modified time | relevance | path

Searched refs:ToRemove (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/ObjCopy/COFF/
H A DCOFFObject.cpp38 function_ref<Expected<bool>(const Symbol &)> ToRemove) { in removeSymbols() argument
40 llvm::erase_if(Symbols, [ToRemove, &Errs](const Symbol &Sym) { in removeSymbols()
41 Expected<bool> ShouldRemove = ToRemove(Sym); in removeSymbols()
89 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections() argument
96 llvm::erase_if(Sections, [ToRemove, &RemovedSections](const Section &Sec) { in removeSections()
97 bool Remove = ToRemove(Sec); in removeSections()
114 ToRemove = RemoveAssociated; in removeSections()
H A DCOFFObjcopy.cpp149 if (Config.ToRemove.matches(Sec.Name)) in handleArgs()
182 auto ToRemove = [&](const Symbol &Sym) -> Expected<bool> { in handleArgs() local
222 if (Error Err = Obj.removeSymbols(ToRemove)) in handleArgs()
H A DCOFFObject.h120 Error removeSymbols(function_ref<Expected<bool>(const Symbol &)> ToRemove);
136 void removeSections(function_ref<bool(const Section &)> ToRemove);
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceGlobalVars.cpp36 std::vector<GlobalVariable *> ToRemove; in extractGVsFromModule() local
45 ToRemove.push_back(&GV); in extractGVsFromModule()
57 for (auto *GV : ToRemove) in extractGVsFromModule()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMOptimizeBarriersPass.cpp55 std::vector<MachineInstr *> ToRemove; in runOnMachineFunction() local
72 ToRemove.push_back(&MI); in runOnMachineFunction()
92 for (auto MI : ToRemove) { in runOnMachineFunction()
H A DARMLowOverheadLoops.cpp376 SmallPtrSet<MachineInstr *, 4> ToRemove; member
590 ToRemove.insert(Uses.begin(), Uses.end()); in INITIALIZE_PASS()
809 TryRemove(Def, RDA, ToRemove, Ignore); in ValidateTailPredicate()
1572 LoLoop.ToRemove.insert(Start); in ExpandLoopStart()
1607 LoLoop.ToRemove.insert(TheVCMP); in ConvertVPTBlocks()
1669 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks()
1677 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks()
1704 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks()
1728 LoLoop.ToRemove.insert(LoLoop.Dec); in Expand()
1729 LoLoop.ToRemove.insert(End); in Expand()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp88 SmallVector<Instruction *, 4> ToRemove; in runNVVMReflect() local
173 ToRemove.push_back(Call); in runNVVMReflect()
176 for (Instruction *I : ToRemove) in runNVVMReflect()
179 return ToRemove.size() > 0; in runNVVMReflect()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp139 SmallVector<const PHINode *, 8> ToRemove; in getPromotablePHINodes() local
154 ToRemove.push_back(P); in getPromotablePHINodes()
162 while (!ToRemove.empty()) { in getPromotablePHINodes()
163 for (auto &User : ToRemove) in getPromotablePHINodes()
165 ToRemove.clear(); in getPromotablePHINodes()
173 ToRemove.push_back(P); in getPromotablePHINodes()
/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp27 function_ref<bool(const std::unique_ptr<SymbolEntry> &)> ToRemove) { in removeSymbols() argument
28 llvm::erase_if(Symbols, ToRemove); in removeSymbols()
80 function_ref<bool(const LoadCommand &)> ToRemove) { in removeLoadCommands() argument
83 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands()
91 function_ref<bool(const std::unique_ptr<Section> &)> ToRemove) { in removeSections() argument
97 [&](const std::unique_ptr<Section> &Sec) { return !ToRemove(Sec); }); in removeSections()
H A DMachOObject.h151 function_ref<bool(const std::unique_ptr<SymbolEntry> &)> ToRemove);
351 removeSections(function_ref<bool(const std::unique_ptr<Section> &)> ToRemove);
353 Error removeLoadCommands(function_ref<bool(const LoadCommand &)> ToRemove);
/llvm-project-15.0.7/llvm/lib/ObjCopy/wasm/
H A DWasmObject.cpp27 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections() argument
29 llvm::erase_if(Sections, ToRemove); in removeSections()
H A DWasmObjcopy.cpp64 if (!Config.ToRemove.empty()) { in removeSections()
66 return Config.ToRemove.matches(Sec.Name); in removeSections()
87 return Config.ToRemove.matches(Sec.Name) || !isDebugSection(Sec); in removeSections()
H A DWasmObject.h37 void removeSections(function_ref<bool(const Section &)> ToRemove);
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDbgEntityHistoryCalculator.cpp133 SmallVector<EntryIndex, 4> ToRemove; in trimLocationRanges() local
172 ToRemove.clear(); in trimLocationRanges()
211 ToRemove.push_back(StartIndex); in trimLocationRanges()
220 if (ToRemove.empty()) in trimLocationRanges()
226 ToRemove.push_back(i); in trimLocationRanges()
228 llvm::sort(ToRemove); in trimLocationRanges()
235 auto ToRemoveItr = ToRemove.begin(); in trimLocationRanges()
239 if (ToRemoveItr != ToRemove.end() && *ToRemoveItr == EntryIdx) { in trimLocationRanges()
254 for (EntryIndex Idx : llvm::reverse(ToRemove)) in trimLocationRanges()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIPreEmitPeephole.cpp201 SmallVector<MachineInstr *, 4> ToRemove; in optimizeVccBranch() local
206 ToRemove.push_back(&Term); in optimizeVccBranch()
212 for (auto BranchMI : ToRemove) { in optimizeVccBranch()
251 SmallVector<MachineInstr *, 4> ToRemove; in optimizeSetGPR() local
268 ToRemove.push_back(&*I); in optimizeSetGPR()
290 for (MachineInstr *RI : ToRemove) in optimizeSetGPR()
H A DAMDGPUExportClustering.cpp83 SmallVector<SDep, 2> ToAdd, ToRemove; in removeExportDependencies() local
88 ToRemove.push_back(Pred); in removeExportDependencies()
102 for (SDep Pred : ToRemove) in removeExportDependencies()
H A DAMDGPULowerModuleLDSPass.cpp64 SmallPtrSetImpl<Constant *> &ToRemove) { in removeFromUsedList() argument
66 if (!GV || ToRemove.empty()) { in removeFromUsedList()
75 if (!ToRemove.contains(C->stripPointerCasts())) { in removeFromUsedList()
86 for (Constant *C : ToRemove) { in removeFromUsedList()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DReachingDefAnalysis.h224 bool isSafeToRemove(MachineInstr *MI, InstSet &ToRemove) const;
229 bool isSafeToRemove(MachineInstr *MI, InstSet &ToRemove,
267 InstSet &ToRemove, InstSet &Ignore) const;
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp693 if (ToRemove(SectionIndexTable)) in removeSectionReferences()
695 if (ToRemove(SymbolNames)) { in removeSectionReferences()
705 [ToRemove](const Symbol &Sym) { return ToRemove(Sym.DefinedIn); }); in removeSectionReferences()
721 [ToRemove](const SymPtr &Sym) { return ToRemove(*Sym); }), in removeSymbols()
848 if (ToRemove(Symbols)) { in removeSectionReferences()
989 if (ToRemove(Symbols)) { in removeSectionReferences()
1010 if (ToRemove(LinkSection)) { in removeSectionReferences()
1034 if (ToRemove(SymTab)) { in removeSectionReferences()
1049 if (ToRemove(*Sym)) in removeSymbols()
2115 if (ToRemove(*Sec)) in removeSections()
[all …]
H A DELFObject.h425 function_ref<bool(const SectionBase *)> ToRemove);
426 virtual Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove);
494 function_ref<bool(const SectionBase *)> ToRemove) override;
715 function_ref<bool(const SectionBase *)> ToRemove) override;
720 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
790 function_ref<bool(const SectionBase *)> ToRemove) override;
791 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
831 function_ref<bool(const SectionBase *)> ToRemove) override;
875 function_ref<bool(const SectionBase *)> ToRemove) override;
1083 std::function<bool(const SectionBase &)> ToRemove);
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DReachingDefAnalysis.cpp606 InstSet &ToRemove) const { in isSafeToRemove()
609 return isSafeToRemove(MI, Visited, ToRemove, Ignore); in isSafeToRemove()
613 ReachingDefAnalysis::isSafeToRemove(MachineInstr *MI, InstSet &ToRemove, in isSafeToRemove() argument
616 return isSafeToRemove(MI, Visited, ToRemove, Ignore); in isSafeToRemove()
621 InstSet &ToRemove, InstSet &Ignore) const { in isSafeToRemove() argument
639 if (Ignore.count(I) || ToRemove.count(I)) in isSafeToRemove()
641 if (!isSafeToRemove(I, Visited, ToRemove, Ignore)) in isSafeToRemove()
645 ToRemove.insert(MI); in isSafeToRemove()
/llvm-project-15.0.7/llvm/test/Analysis/BasicAA/
H A Dstore-promote.ll17 %ToRemove = load i32, i32* @A ; <i32> [#uses=1]
22 %X = sub i32 %ToRemove, %Atmp ; <i32> [#uses=1]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp625 SmallVectorImpl<Instruction *> &ToRemove) { in tryToSimplifyOverflowMath() argument
661 ToRemove.push_back(I); in tryToSimplifyOverflowMath()
694 SmallVector<Instruction *> ToRemove; in eliminateConstraints() local
739 tryToSimplifyOverflowMath(II, Info, ToRemove); in eliminateConstraints()
827 for (Instruction *I : ToRemove) in eliminateConstraints()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DGICombinerEmitter.cpp254 for (GIMatchDagEdge *ToRemove : EdgesToRemove) in reorientToRoots()
255 EdgesRemaining.erase(ToRemove); in reorientToRoots()
266 for (GIMatchDagEdge *ToRemove : EdgesToRemove) in reorientToRoots()
267 EdgesRemaining.erase(ToRemove); in reorientToRoots()
/llvm-project-15.0.7/llvm/lib/ObjCopy/
H A DConfigManager.cpp78 !Common.ToRemove.empty() || !Common.SymbolsToGlobalize.empty() || in getXCOFFConfig()

12