| /llvm-project-15.0.7/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFObject.cpp | 38 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 D | COFFObjcopy.cpp | 149 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 D | COFFObject.h | 120 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 D | ReduceGlobalVars.cpp | 36 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 D | ARMOptimizeBarriersPass.cpp | 55 std::vector<MachineInstr *> ToRemove; in runOnMachineFunction() local 72 ToRemove.push_back(&MI); in runOnMachineFunction() 92 for (auto MI : ToRemove) { in runOnMachineFunction()
|
| H A D | ARMLowOverheadLoops.cpp | 376 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 D | NVVMReflect.cpp | 88 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 D | PPCBoolRetToInt.cpp | 139 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 D | MachOObject.cpp | 27 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 D | MachOObject.h | 151 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 D | WasmObject.cpp | 27 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections() argument 29 llvm::erase_if(Sections, ToRemove); in removeSections()
|
| H A D | WasmObjcopy.cpp | 64 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 D | WasmObject.h | 37 void removeSections(function_ref<bool(const Section &)> ToRemove);
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DbgEntityHistoryCalculator.cpp | 133 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 D | SIPreEmitPeephole.cpp | 201 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 D | AMDGPUExportClustering.cpp | 83 SmallVector<SDep, 2> ToAdd, ToRemove; in removeExportDependencies() local 88 ToRemove.push_back(Pred); in removeExportDependencies() 102 for (SDep Pred : ToRemove) in removeExportDependencies()
|
| H A D | AMDGPULowerModuleLDSPass.cpp | 64 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 D | ReachingDefAnalysis.h | 224 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 D | ELFObject.cpp | 693 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 D | ELFObject.h | 425 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 D | ReachingDefAnalysis.cpp | 606 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 D | store-promote.ll | 17 %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 D | ConstraintElimination.cpp | 625 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 D | GICombinerEmitter.cpp | 254 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 D | ConfigManager.cpp | 78 !Common.ToRemove.empty() || !Common.SymbolsToGlobalize.empty() || in getXCOFFConfig()
|