| /src/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVVMReflect.cpp | 93 SmallVector<Instruction *, 4> ToRemove; in runNVVMReflect() local 186 ToRemove.push_back(Call); in runNVVMReflect() 202 ToRemove.push_back(I); in runNVVMReflect() 211 std::sort(ToRemove.begin(), ToRemove.end()); in runNVVMReflect() 212 auto NewLastIter = llvm::unique(ToRemove); in runNVVMReflect() 213 ToRemove.erase(NewLastIter, ToRemove.end()); in runNVVMReflect() 215 for (Instruction *I : ToRemove) in runNVVMReflect() 218 return ToRemove.size() > 0; in runNVVMReflect()
|
| /src/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);
|
| /src/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()
|
| /src/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 534 InstSet &ToRemove, InstSet &Ignore) { in INITIALIZE_PASS() 583 ToRemove.insert(Uses.begin(), Uses.end()); in INITIALIZE_PASS() 592 ToRemove.insert(Killed.begin(), Killed.end()); in INITIALIZE_PASS() 787 ToRemove.insert(ElementChain.begin(), ElementChain.end()); in ValidateTailPredicate() 802 TryRemove(Def, RDA, ToRemove, Ignore); in ValidateTailPredicate() 1526 if (!TryRemove(Def, *RDA, LoLoop.ToRemove, Killed)) in IterationCountDCE() 1561 LoLoop.ToRemove.insert(Start); in ExpandLoopStart() 1596 LoLoop.ToRemove.insert(TheVCMP); in ConvertVPTBlocks() 1658 LoLoop.ToRemove.insert(VPST); in ConvertVPTBlocks() [all …]
|
| /src/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()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | LowerAllowCheckPass.cpp | 105 bool ToRemove = ShouldRemove(IsHot); in removeUbsanTraps() local 108 ToRemove, in removeUbsanTraps() 110 if (ToRemove) in removeUbsanTraps() 112 emitRemark(II, ORE, ToRemove); in removeUbsanTraps()
|
| /src/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);
|
| /src/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()
|
| /src/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);
|
| /src/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()
|
| /src/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()
|
| /src/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;
|
| /src/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 743 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences() argument 744 if (ToRemove(SectionIndexTable)) in removeSectionReferences() 746 if (ToRemove(SymbolNames)) { in removeSectionReferences() 756 [ToRemove](const Symbol &Sym) { return ToRemove(Sym.DefinedIn); }); in removeSectionReferences() 769 function_ref<bool(const Symbol &)> ToRemove) { in removeSymbols() argument 772 [ToRemove](const SymPtr &Sym) { return ToRemove(*Sym); }), in removeSymbols() 903 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences() argument 904 if (ToRemove(Symbols)) { in removeSectionReferences() 916 !ToRemove(R.RelocSymbol->DefinedIn)) in removeSectionReferences() 1011 function_ref<bool(const Symbol &)> ToRemove) { in removeSymbols() argument [all …]
|
| H A D | ELFObject.h | 544 function_ref<bool(const SectionBase *)> ToRemove); 545 virtual Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove); 616 function_ref<bool(const SectionBase *)> ToRemove) override; 843 function_ref<bool(const SectionBase *)> ToRemove) override; 848 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 919 function_ref<bool(const SectionBase *)> ToRemove) override; 920 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 963 function_ref<bool(const SectionBase *)> ToRemove) override; 964 Error removeSymbols(function_ref<bool(const Symbol &)> ToRemove) override; 1011 function_ref<bool(const SectionBase *)> ToRemove) override; [all …]
|
| /src/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/ |
| H A D | HipStdPar.cpp | 151 SmallVector<std::reference_wrapper<Function>> ToRemove; in removeUnreachableFunctions() local 152 copy_if(M, std::back_inserter(ToRemove), [&](auto &&F) { in removeUnreachableFunctions() 156 for_each(ToRemove, eraseFromModule<Function>); in removeUnreachableFunctions()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 1403 SmallVectorImpl<Instruction *> &ToRemove) { in checkAndReplaceCondition() argument 1425 ToRemove.push_back(Cmp); in checkAndReplaceCondition() 1437 SmallVectorImpl<Instruction *> &ToRemove) { in checkAndReplaceMinMax() argument 1441 ToRemove.push_back(MinMax); in checkAndReplaceMinMax() 1457 SmallVectorImpl<Instruction *> &ToRemove) { in checkAndReplaceCmp() argument 1462 ToRemove.push_back(I); in checkAndReplaceCmp() 1467 ToRemove.push_back(I); in checkAndReplaceCmp() 1472 ToRemove.push_back(I); in checkAndReplaceCmp() 1618 SmallVectorImpl<Instruction *> &ToRemove) { in replaceSubOverflowUses() argument 1636 ToRemove.push_back(I); in replaceSubOverflowUses() [all …]
|
| /src/contrib/llvm-project/llvm/tools/llvm-objcopy/ |
| H A D | ObjcopyOptions.cpp | 946 if (Error E = Config.ToRemove.addMatcher(NameOrPattern::create( in parseObjcopyOptions() 1365 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1367 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1369 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1371 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1373 cantFail(Config.ToRemove.addMatcher(NameOrPattern::create( in parseBitcodeStripOptions() 1467 if (Error E = Config.ToRemove.addMatcher(NameOrPattern::create( in parseStripOptions()
|
| /src/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFCheckAndAdjustIR.cpp | 307 Instruction *ToRemove[] = {ICmp, Info.ZExt, Info.SExt, MinMax}; in sinkMinMaxInBB() local 308 for (Instruction *I : ToRemove) in sinkMinMaxInBB()
|