| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceGlobalVars.cpp | 42 DenseSet<Constant *> ToRemove; in extractGVsFromModule() local 45 ToRemove.insert(&GV); in extractGVsFromModule() 49 [&ToRemove](Constant *C) { return ToRemove.count(C); }); in extractGVsFromModule() 51 for (auto *GV : ToRemove) { in extractGVsFromModule()
|
| /openbsd-src/gnu/llvm/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 | 119 Error removeSymbols(function_ref<Expected<bool>(const Symbol &)> ToRemove); 135 void removeSections(function_ref<bool(const Section &)> ToRemove);
|
| /openbsd-src/gnu/llvm/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 | 381 SmallPtrSet<MachineInstr *, 4> ToRemove; member 547 InstSet &ToRemove, InstSet &Ignore) { in INITIALIZE_PASS() 595 ToRemove.insert(Uses.begin(), Uses.end()); in INITIALIZE_PASS() 604 ToRemove.insert(Killed.begin(), Killed.end()); in INITIALIZE_PASS() 799 ToRemove.insert(ElementChain.begin(), ElementChain.end()); in ValidateTailPredicate() 814 TryRemove(Def, RDA, ToRemove, Ignore); in ValidateTailPredicate() 1545 if (!TryRemove(Def, *RDA, LoLoop.ToRemove, Killed)) in IterationCountDCE() 1580 LoLoop.ToRemove.insert(Start); in ExpandLoopStart() 1615 LoLoop.ToRemove.insert(TheVCMP); in ConvertVPTBlocks() 1677 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVVMReflect.cpp | 90 SmallVector<Instruction *, 4> ToRemove; in runNVVMReflect() local 176 ToRemove.push_back(Call); in runNVVMReflect() 179 for (Instruction *I : ToRemove) in runNVVMReflect() 182 return ToRemove.size() > 0; in runNVVMReflect()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/ |
| H A D | MachOObject.cpp | 36 function_ref<bool(const std::unique_ptr<SymbolEntry> &)> ToRemove) { in removeSymbols() argument 37 llvm::erase_if(Symbols, ToRemove); in removeSymbols() 92 function_ref<bool(const LoadCommand &)> ToRemove) { in removeLoadCommands() argument 95 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() 103 function_ref<bool(const std::unique_ptr<Section> &)> ToRemove) { in removeSections() argument 109 [&](const std::unique_ptr<Section> &Sec) { return !ToRemove(Sec); }); in removeSections()
|
| H A D | MachOObject.h | 146 function_ref<bool(const std::unique_ptr<SymbolEntry> &)> ToRemove); 350 removeSections(function_ref<bool(const std::unique_ptr<Section> &)> ToRemove); 352 Error removeLoadCommands(function_ref<bool(const LoadCommand &)> ToRemove);
|
| /openbsd-src/gnu/llvm/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);
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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;
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 713 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences() argument 714 if (ToRemove(SectionIndexTable)) in removeSectionReferences() 716 if (ToRemove(SymbolNames)) { in removeSectionReferences() 726 [ToRemove](const Symbol &Sym) { return ToRemove(Sym.DefinedIn); }); in removeSectionReferences() 739 function_ref<bool(const Symbol &)> ToRemove) { in removeSymbols() argument 742 [ToRemove](const SymPtr &Sym) { return ToRemove(*Sym); }), in removeSymbols() 868 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences() argument 869 if (ToRemove(Symbols)) { in removeSectionReferences() 881 !ToRemove(R.RelocSymbol->DefinedIn)) in removeSectionReferences() 972 function_ref<bool(const Symbol &)> ToRemove) { in removeSymbols() argument [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; 718 function_ref<bool(const SectionBase *)> ToRemove) override; 723 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 793 function_ref<bool(const SectionBase *)> ToRemove) override; 794 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 834 function_ref<bool(const SectionBase *)> ToRemove) override; 835 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 878 function_ref<bool(const SectionBase *)> ToRemove) override; [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 865 SmallVectorImpl<Instruction *> &ToRemove) { in replaceSubOverflowUses() argument 883 ToRemove.push_back(I); in replaceSubOverflowUses() 898 SmallVectorImpl<Instruction *> &ToRemove) { in tryToSimplifyOverflowMath() argument 919 Changed = replaceSubOverflowUses(II, A, B, ToRemove); in tryToSimplifyOverflowMath() 969 SmallVector<Instruction *> ToRemove; in eliminateConstraints() local 1013 Changed |= tryToSimplifyOverflowMath(II, Info, ToRemove); in eliminateConstraints() 1050 for (Instruction *I : ToRemove) in eliminateConstraints()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-objcopy/ |
| H A D | ObjcopyOptions.cpp | 842 if (Error E = Config.ToRemove.addMatcher(NameOrPattern::create( in parseObjcopyOptions() 1211 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1213 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1215 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1217 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1219 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1313 if (Error E = Config.ToRemove.addMatcher(NameOrPattern::create( in parseStripOptions()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/ |
| H A D | ConfigManager.cpp | 78 !Common.ToRemove.empty() || !Common.SymbolsToGlobalize.empty() || in getXCOFFConfig()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ObjCopy/ |
| H A D | CommonConfig.h | 229 NameMatcher ToRemove; member
|