/freebsd/contrib/llvm-project/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 | 179 if (Config.ToRemove.matches(Sec.Name)) in handleArgs() 212 auto ToRemove = [&](const Symbol &Sym) -> Expected<bool> { in handleArgs() local 252 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);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVStripConvergentIntrinsics.cpp | 42 DenseSet<Instruction *> ToRemove; in runOnFunction() local 57 ToRemove.insert(II); in runOnFunction() 67 ToRemove.insert(CI); in runOnFunction() 73 for (Instruction *I : ToRemove) in runOnFunction() 76 return ToRemove.size() != 0; in runOnFunction()
|
/freebsd/contrib/llvm-project/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 | 380 SmallPtrSet<MachineInstr *, 4> ToRemove; member 589 ToRemove.insert(Uses.begin(), Uses.end()); in INITIALIZE_PASS() 808 TryRemove(Def, RDA, ToRemove, Ignore); in ValidateTailPredicate() 1574 LoLoop.ToRemove.insert(Start); in ExpandLoopStart() 1609 LoLoop.ToRemove.insert(TheVCMP); in ConvertVPTBlocks() 1671 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks() 1679 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks() 1706 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks() 1730 LoLoop.ToRemove.insert(LoLoop.Dec); in Expand() 1731 LoLoop.ToRemove.insert(End); in Expand() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVVMReflect.cpp | 89 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCBoolRetToInt.cpp | 137 SmallVector<const PHINode *, 8> ToRemove; in getPromotablePHINodes() local 152 ToRemove.push_back(P); in getPromotablePHINodes() 160 while (!ToRemove.empty()) { in getPromotablePHINodes() 161 for (auto &User : ToRemove) in getPromotablePHINodes() 163 ToRemove.clear(); in getPromotablePHINodes() 171 ToRemove.push_back(P); in getPromotablePHINodes()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/ |
H A D | MachOObject.cpp | 37 function_ref<bool(const std::unique_ptr<SymbolEntry> &)> ToRemove) { in removeSymbols() argument 38 llvm::erase_if(Symbols, ToRemove); in removeSymbols() 93 function_ref<bool(const LoadCommand &)> ToRemove) { in removeLoadCommands() argument 96 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() 104 function_ref<bool(const std::unique_ptr<Section> &)> ToRemove) { in removeSections() argument 110 [&](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);
|
/freebsd/contrib/llvm-project/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 | 38 void removeSections(function_ref<bool(const Section &)> ToRemove);
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DbgEntityHistoryCalculator.cpp | 133 SmallVector<EntryIndex, 4> ToRemove; in trimLocationRanges() local 175 ToRemove.clear(); in trimLocationRanges() 214 ToRemove.push_back(StartIndex); in trimLocationRanges() 225 if (ToRemove.empty()) in trimLocationRanges() 231 ToRemove.push_back(i); in trimLocationRanges() 233 llvm::sort(ToRemove); in trimLocationRanges() 240 auto ToRemoveItr = ToRemove.begin(); in trimLocationRanges() 244 if (ToRemoveItr != ToRemove.end() && *ToRemoveItr == EntryIdx) { in trimLocationRanges() 259 for (EntryIndex Idx : llvm::reverse(ToRemove)) in trimLocationRanges()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/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;
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
H A D | ELFObject.cpp | 724 if (ToRemove(SectionIndexTable)) in removeSectionReferences() 726 if (ToRemove(SymbolNames)) { in removeSectionReferences() 736 [ToRemove](const Symbol &Sym) { return ToRemove(Sym.DefinedIn); }); in removeSectionReferences() 752 [ToRemove](const SymPtr &Sym) { return ToRemove(*Sym); }), in removeSymbols() 882 if (ToRemove(Symbols)) { in removeSectionReferences() 1023 if (ToRemove(Symbols)) { in removeSectionReferences() 1044 if (ToRemove(LinkSection)) { in removeSectionReferences() 1068 if (ToRemove(SymTab)) { in removeSectionReferences() 1083 if (ToRemove(*Sym)) in removeSymbols() 2157 if (ToRemove(*Sec)) in removeSections() [all …]
|
H A D | ELFObject.h | 428 function_ref<bool(const SectionBase *)> ToRemove); 429 virtual Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove); 500 function_ref<bool(const SectionBase *)> ToRemove) override; 727 function_ref<bool(const SectionBase *)> ToRemove) override; 732 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 802 function_ref<bool(const SectionBase *)> ToRemove) override; 803 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 843 function_ref<bool(const SectionBase *)> ToRemove) override; 887 function_ref<bool(const SectionBase *)> ToRemove) override; 1096 std::function<bool(const SectionBase &)> ToRemove); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ReachingDefAnalysis.cpp | 605 InstSet &ToRemove) const { in isSafeToRemove() 608 return isSafeToRemove(MI, Visited, ToRemove, Ignore); in isSafeToRemove() 612 ReachingDefAnalysis::isSafeToRemove(MachineInstr *MI, InstSet &ToRemove, in isSafeToRemove() argument 615 return isSafeToRemove(MI, Visited, ToRemove, Ignore); in isSafeToRemove() 620 InstSet &ToRemove, InstSet &Ignore) const { in isSafeToRemove() argument 638 if (Ignore.count(I) || ToRemove.count(I)) in isSafeToRemove() 640 if (!isSafeToRemove(I, Visited, ToRemove, Ignore)) in isSafeToRemove() 644 ToRemove.insert(MI); in isSafeToRemove()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/ |
H A D | HipStdPar.cpp | 150 SmallVector<std::reference_wrapper<Function>> ToRemove; in removeUnreachableFunctions() local 151 copy_if(M, std::back_inserter(ToRemove), [&](auto &&F) { in removeUnreachableFunctions() 155 for_each(ToRemove, eraseFromModule<Function>); in removeUnreachableFunctions()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstraintElimination.cpp | 1365 SmallVectorImpl<Instruction *> &ToRemove) { in checkAndReplaceCondition() argument 1387 ToRemove.push_back(Cmp); in checkAndReplaceCondition() 1538 SmallVectorImpl<Instruction *> &ToRemove) { in replaceSubOverflowUses() argument 1556 ToRemove.push_back(I); in replaceSubOverflowUses() 1571 SmallVectorImpl<Instruction *> &ToRemove) { in tryToSimplifyOverflowMath() argument 1592 Changed = replaceSubOverflowUses(II, A, B, ToRemove); in tryToSimplifyOverflowMath() 1651 SmallVector<Instruction *> ToRemove; in eliminateConstraints() local 1686 Changed |= tryToSimplifyOverflowMath(II, Info, ToRemove); in eliminateConstraints() 1690 ReproducerModule.get(), ReproducerCondStack, S.DT, ToRemove); in eliminateConstraints() 1792 for (Instruction *I : ToRemove) in eliminateConstraints()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFCheckAndAdjustIR.cpp | 304 Instruction *ToRemove[] = {ICmp, Info.ZExt, Info.SExt, MinMax}; in sinkMinMaxInBB() local 305 for (Instruction *I : ToRemove) in sinkMinMaxInBB()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-objcopy/ |
H A D | ObjcopyOptions.cpp | 840 if (Error E = Config.ToRemove.addMatcher(NameOrPattern::create( in parseObjcopyOptions() 1209 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 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() 1311 if (Error E = Config.ToRemove.addMatcher(NameOrPattern::create( in parseStripOptions()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ |
H A D | ConfigManager.cpp | 81 !Common.ToRemove.empty() || !Common.SymbolsToGlobalize.empty() || in getXCOFFConfig()
|