Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/COFF/
H A DObject.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 DObject.h119 Error removeSymbols(function_ref<Expected<bool>(const Symbol &)> ToRemove);
135 void removeSections(function_ref<bool(const Section &)> ToRemove);
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/MachO/
H A DObject.cpp28 function_ref<bool(const std::unique_ptr<SymbolEntry> &)> ToRemove) { in removeSymbols() argument
29 llvm::erase_if(Symbols, ToRemove); in removeSymbols()
58 function_ref<bool(const LoadCommand &)> ToRemove) { in removeLoadCommands() argument
61 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands()
69 function_ref<bool(const std::unique_ptr<Section> &)> ToRemove) { in removeSections() argument
75 [&](const std::unique_ptr<Section> &Sec) { return !ToRemove(Sec); }); in removeSections()
H A DObject.h151 function_ref<bool(const std::unique_ptr<SymbolEntry> &)> ToRemove);
337 removeSections(function_ref<bool(const std::unique_ptr<Section> &)> ToRemove);
339 Error removeLoadCommands(function_ref<bool(const LoadCommand &)> ToRemove);
H A DMachOObjcopy.cpp57 if (!Config.ToRemove.empty()) { in removeSections()
59 return Config.ToRemove.matches(Sec->CanonicalName); in removeSections()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp88 SmallVector<Instruction *, 4> ToRemove; in runNVVMReflect() local
175 ToRemove.push_back(Call); in runNVVMReflect()
178 for (Instruction *I : ToRemove) in runNVVMReflect()
181 return ToRemove.size() > 0; in runNVVMReflect()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DDbgEntityHistoryCalculator.cpp134 SmallVector<EntryIndex, 4> ToRemove; in trimLocationRanges() local
173 ToRemove.clear(); in trimLocationRanges()
212 ToRemove.push_back(StartIndex); in trimLocationRanges()
221 if (ToRemove.empty()) in trimLocationRanges()
227 ToRemove.push_back(i); in trimLocationRanges()
229 llvm::sort(ToRemove); in trimLocationRanges()
236 auto ToRemoveItr = ToRemove.begin(); in trimLocationRanges()
240 if (ToRemoveItr != ToRemove.end() && *ToRemoveItr == EntryIdx) { in trimLocationRanges()
255 for (auto Itr = ToRemove.rbegin(), End = ToRemove.rend(); Itr != End; ++Itr) in trimLocationRanges()
/netbsd-src/external/apache2/llvm/dist/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
540 InstSet &ToRemove, InstSet &Ignore) { in INITIALIZE_PASS()
588 ToRemove.insert(Uses.begin(), Uses.end()); in INITIALIZE_PASS()
597 ToRemove.insert(Killed.begin(), Killed.end()); in INITIALIZE_PASS()
777 ToRemove.insert(ElementChain.begin(), ElementChain.end()); in ValidateTailPredicate()
790 TryRemove(Def, RDA, ToRemove, Ignore); in ValidateTailPredicate()
1403 if (!TryRemove(Def, *RDA, LoLoop.ToRemove, Killed)) in IterationCountDCE()
1437 LoLoop.ToRemove.insert(Start); in ExpandLoopStart()
1472 LoLoop.ToRemove.insert(TheVCMP); in ConvertVPTBlocks()
1534 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/deltas/
H A DReduceGlobalVars.cpp32 std::vector<GlobalVariable *> ToRemove; in extractGVsFromModule() local
41 ToRemove.push_back(&GV); in extractGVsFromModule()
53 for (auto *GV : ToRemove) in extractGVsFromModule()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DSIPreEmitPeephole.cpp179 SmallVector<MachineInstr *, 4> ToRemove; in optimizeVccBranch() local
184 ToRemove.push_back(&Term); in optimizeVccBranch()
190 for (auto BranchMI : ToRemove) { in optimizeVccBranch()
229 SmallVector<MachineInstr *, 4> ToRemove; in optimizeSetGPR() local
246 ToRemove.push_back(&*I); in optimizeSetGPR()
270 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.cpp54 SmallPtrSetImpl<Constant *> &ToRemove) { in removeFromUsedList() argument
56 if (!GV || ToRemove.empty()) { in removeFromUsedList()
65 if (!ToRemove.contains(C->stripPointerCasts())) { in removeFromUsedList()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/wasm/
H A DObject.cpp27 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections() argument
29 llvm::erase_if(Sections, ToRemove); in removeSections()
H A DObject.h37 void removeSections(function_ref<bool(const Section &)> ToRemove);
H A DWasmObjcopy.cpp53 if (Config.ToRemove.matches(Sec.Name)) in handleArgs()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DReachingDefAnalysis.cpp601 InstSet &ToRemove) const { in isSafeToRemove()
604 return isSafeToRemove(MI, Visited, ToRemove, Ignore); in isSafeToRemove()
608 ReachingDefAnalysis::isSafeToRemove(MachineInstr *MI, InstSet &ToRemove, in isSafeToRemove() argument
611 return isSafeToRemove(MI, Visited, ToRemove, Ignore); in isSafeToRemove()
616 InstSet &ToRemove, InstSet &Ignore) const { in isSafeToRemove() argument
634 if (Ignore.count(I) || ToRemove.count(I)) in isSafeToRemove()
636 if (!isSafeToRemove(I, Visited, ToRemove, Ignore)) in isSafeToRemove()
640 ToRemove.insert(MI); in isSafeToRemove()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/ELF/
H A DObject.cpp755 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences() argument
756 if (ToRemove(SectionIndexTable)) in removeSectionReferences()
758 if (ToRemove(SymbolNames)) { in removeSectionReferences()
768 [ToRemove](const Symbol &Sym) { return ToRemove(Sym.DefinedIn); }); in removeSectionReferences()
781 function_ref<bool(const Symbol &)> ToRemove) { in removeSymbols() argument
784 [ToRemove](const SymPtr &Sym) { return ToRemove(*Sym); }), in removeSymbols()
899 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences() argument
900 if (ToRemove(Symbols)) { in removeSectionReferences()
912 !ToRemove(R.RelocSymbol->DefinedIn)) in removeSectionReferences()
1001 function_ref<bool(const Symbol &)> ToRemove) { in removeSymbols() argument
[all …]
H A DObject.h425 function_ref<bool(const SectionBase *)> ToRemove);
426 virtual Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove);
493 function_ref<bool(const SectionBase *)> ToRemove) override;
710 function_ref<bool(const SectionBase *)> ToRemove) override;
715 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
781 function_ref<bool(const SectionBase *)> ToRemove) override;
782 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
821 function_ref<bool(const SectionBase *)> ToRemove) override;
822 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override;
865 function_ref<bool(const SectionBase *)> ToRemove) override;
[all …]
/netbsd-src/external/apache2/llvm/dist/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;
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/
H A DCommonConfig.h180 NameMatcher ToRemove; member
/netbsd-src/external/apache2/llvm/dist/llvm/tools/bugpoint/
H A DCrashDebugger.cpp269 std::vector<GlobalValue *> ToRemove; in TestFuncs() local
289 ToRemove.push_back(&Alias); in TestFuncs()
297 ToRemove.push_back(&I); in TestFuncs()
301 for (auto *F : ToRemove) { in TestFuncs()

12