| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | InferFunctionAttrs.cpp | 20 Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in inferAllPrototypeAttributes() argument 31 Changed |= inferNonMandatoryLibFuncAttrs(F, GetTLI(F)); in inferAllPrototypeAttributes() 42 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 46 if (!inferAllPrototypeAttributes(M, GetTLI)) in run()
|
| H A D | GlobalOpt.cpp | 168 Value *V, function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in IsSafeComputationToRemove() argument 177 if (isAllocationFn(V, GetTLI)) in IsSafeComputationToRemove() 199 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in CleanupPointerRootUsers() argument 252 if (IsSafeComputationToRemove(Inst, GetTLI)) { in CleanupPointerRootUsers() 256 if (isAllocationFn(I, GetTLI)) in CleanupPointerRootUsers() 838 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in OptimizeAwayTrappingUsesOfLoads() argument 884 Changed |= CleanupPointerRootUsers(GV, GetTLI); in OptimizeAwayTrappingUsesOfLoads() 1135 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in optimizeOnceStoredGlobal() argument 1151 if (OptimizeAwayTrappingUsesOfLoads(GV, SOVC, DL, GetTLI)) in optimizeOnceStoredGlobal() 1153 } else if (isAllocationFn(StoredOnceVal, GetTLI)) { in optimizeOnceStoredGlobal() [all …]
|
| H A D | SCCP.cpp | 110 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in runIPSCCP() argument 116 SCCPSolver Solver(DL, GetTLI, M.getContext()); in runIPSCCP() 117 FunctionSpecializer Specializer(Solver, M, FAM, GetBFI, GetTLI, GetTTI, in runIPSCCP() 359 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local 376 if (!runIPSCCP(M, DL, &FAM, GetTLI, GetTTI, GetAC, GetDT, GetBFI, in run()
|
| H A D | ModuleInliner.cpp | 133 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 283 if (Callee.use_empty() && !isKnownLibFunction(Callee, GetTLI(Callee))) { in run()
|
| H A D | SampleProfile.cpp | 472 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SampleProfileLoader() argument 478 GetTTI(std::move(GetTargetTransformInfo)), GetTLI(std::move(GetTLI)), in SampleProfileLoader() 547 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in __anon71830f180111::SampleProfileLoader 1002 GetAC, GetTLI); in shouldInlineColdCallee() 1371 GetTTI(*Callee), GetAC, GetTLI); in shouldInlineCandidate() 2348 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in run() local 2360 LTOPhase, FS, GetAssumptionCache, GetTTI, GetTLI, CG, in run()
|
| H A D | PartialInlining.cpp | 196 GetTTI(GTTI), GetBFI(GBFI), GetTLI(GTLI), PSI(ProfSI) {} in PartialInlinerImpl() 269 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member 731 GetTLI, GetBFI, &PSI, RemarksEnabled ? &ORE : nullptr); in shouldPartialInline() 1465 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 1472 GetTLI, PSI, GetBFI) in run()
|
| H A D | FunctionSpecialization.cpp | 1099 getInlineCost(*CS, CalledFunction, Params, CalleeTTI, GetAC, GetTLI); in getInliningBonus()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InlineCost.h | 282 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 297 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 311 function_ref<const TargetLibraryInfo &(Function &)> GetTLI); 325 function_ref<const TargetLibraryInfo &(Function &)> GetTLI = nullptr, 335 function_ref<const TargetLibraryInfo &(Function &)> GetTLI = nullptr,
|
| H A D | GlobalsModRef.h | 35 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable 78 std::function<const TargetLibraryInfo &(Function &F)> GetTLI); 91 std::function<const TargetLibraryInfo &(Function &F)> GetTLI,
|
| H A D | LazyCallGraph.h | 940 function_ref<TargetLibraryInfo &(Function &)> GetTLI); 1279 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { 1282 return LazyCallGraph(M, GetTLI);
|
| H A D | MemoryBuiltins.h | 59 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | MetaRenamer.cpp | 132 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in MetaRename() argument 163 GetTLI(F).getLibFunc(F, Tmp) || in MetaRename() 230 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 233 MetaRename(M, GetTLI); in run()
|
| H A D | SCCPSolver.cpp | 428 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in llvm::SCCPInstVisitor 770 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPInstVisitor() argument 772 : DL(DL), GetTLI(GetTLI), Ctx(Ctx) {} in SCCPInstVisitor() 1855 if (Constant *C = ConstantFoldCall(&CB, F, Operands, &GetTLI(*F))) in handleCallOverdefined() 2148 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPSolver() argument 2150 : Visitor(new SCCPInstVisitor(DL, std::move(GetTLI), Ctx)) {} in SCCPSolver()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | GlobalsModRef.cpp | 360 getFreedOperand(Call, &GetTLI(*Call->getFunction())) == U) { in AnalyzeUsesOfPointer() 973 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in GlobalsAAResult() argument 974 : DL(DL), GetTLI(std::move(GetTLI)) {} in GlobalsAAResult() 977 : AAResultBase(std::move(Arg)), DL(Arg.DL), GetTLI(std::move(Arg.GetTLI)), in GlobalsAAResult() 993 Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in analyzeModule() argument 995 GlobalsAAResult Result(M.getDataLayout(), GetTLI); in analyzeModule() 1014 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 1017 return GlobalsAAResult::analyzeModule(M, GetTLI, in run() 1054 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 1058 M, GetTLI, getAnalysis<CallGraphWrapperPass>().getCallGraph()))); in runOnModule()
|
| H A D | InlineCost.cpp | 260 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member in __anon463f3bdb0111::CallAnalyzer 527 function_ref<const TargetLibraryInfo &(Function &)> GetTLI = nullptr, in CallAnalyzer() argument 533 GetTLI(GetTLI), PSI(PSI), F(Callee), DL(F.getDataLayout()), ORE(ORE), in CallAnalyzer() 745 GetAssumptionCache, GetBFI, GetTLI, PSI, ORE, in onLoweredCall() 1207 function_ref<const TargetLibraryInfo &(Function &)> GetTLI = nullptr, in InlineCostCallAnalyzer() argument 1213 : CallAnalyzer(Callee, Call, TTI, GetAssumptionCache, GetBFI, GetTLI, PSI, in InlineCostCallAnalyzer() 1333 GetAssumptionCache, GetBFI, GetTLI, PSI, ORE, in onLoweredCall() 1460 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in InlineCostFeaturesAnalyzer() argument 1463 : CallAnalyzer(Callee, Call, TTI, GetAssumptionCache, GetBFI, GetTLI, in InlineCostFeaturesAnalyzer() 2429 const TargetLibraryInfo *TLI = GetTLI ? &GetTLI(*F) : nullptr; in isLoweredToCall() [all …]
|
| H A D | InlineAdvisor.cpp | 159 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getDefaultInlineAdvice() local 173 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getDefaultInlineAdvice() 632 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getMandatoryKind() local 639 llvm::getAttributeBasedInliningDecision(CB, &Callee, TIR, GetTLI); in getMandatoryKind()
|
| H A D | InlineOrder.cpp | 61 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getInlineCostWrapper() local 70 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getInlineCostWrapper()
|
| H A D | MemoryBuiltins.cpp | 228 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in getAllocationData() argument 231 Callee, AllocTy, &GetTLI(const_cast<Function &>(*Callee))); in getAllocationData() 293 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in isAllocationFn() argument 294 return getAllocationData(V, AnyAlloc, GetTLI).has_value() || in isAllocationFn()
|
| H A D | LazyCallGraph.cpp | 157 Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in LazyCallGraph() argument 166 if (isKnownLibFunction(F, GetTLI(F))) in LazyCallGraph()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | FunctionSpecialization.h | 244 std::function<const TargetLibraryInfo &(Function &)> GetTLI; variable 258 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in FunctionSpecializer() argument 261 : Solver(Solver), M(M), FAM(FAM), GetBFI(GetBFI), GetTLI(GetTLI), in FunctionSpecializer()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | GCOVProfiling.cpp | 100 std::function<const TargetLibraryInfo &(Function &F)> GetTLI); 120 function_ref<const TargetLibraryInfo &(Function &F)> GetTLI); 162 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anon09913f2a0211::GCOVProfiler 537 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) { in runOnModule() argument 539 this->GetTLI = std::move(GetTLI); in runOnModule() 550 emitProfileNotes(CUNode, HasExecOrFork, GetBFI, GetBPI, this->GetTLI); in runOnModule() 567 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local 571 if (!Profiler.runOnModule(M, GetBFI, GetBPI, GetTLI)) in run() 609 TLI = TLI == nullptr ? &GetTLI(F) : TLI; in AddFlushBeforeForkAndExec() 744 function_ref<const TargetLibraryInfo &(Function &F)> GetTLI) { in emitProfileNotes() argument [all …]
|
| H A D | InstrProfiling.cpp | 256 std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in InstrLowerer() argument 259 GetTLI(GetTLI), DataReferencedByCode(profDataReferencedByCode(M)) {} in InstrLowerer() 270 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anon21e6fd6b0111::InstrLowerer 680 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 683 InstrLowerer Lowerer(M, Options, GetTLI, IsCS); in run() 888 BPI.reset(new BranchProbabilityInfo(*F, LI, &GetTLI(*F))); in promoteCounterLoadStores() 1067 auto *TLI = &GetTLI(*Ind->getFunction()); in lowerValueProfileInst()
|
| H A D | DataFlowSanitizer.cpp | 578 llvm::function_ref<TargetLibraryInfo &(Function &)> GetTLI); 1496 Module &M, llvm::function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in runImpl() argument 1693 FnsWithForceZeroLabel.count(F), GetTLI(*F)); in runImpl() 3469 auto GetTLI = [&](Function &F) -> TargetLibraryInfo & { in run() local 3474 if (!DataFlowSanitizer(ABIListFiles).runImpl(M, GetTLI)) in run()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SCCPSolver.h | 72 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
|