| /freebsd-14.2/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 if (isAllocationFn(V, GetTLI)) in IsSafeComputationToRemove() 243 if (IsSafeComputationToRemove(Dead[i].first, GetTLI)) { in CleanupPointerRootUsers() 247 if (isAllocationFn(I, GetTLI)) in CleanupPointerRootUsers() 817 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in OptimizeAwayTrappingUsesOfLoads() argument 863 Changed |= CleanupPointerRootUsers(GV, GetTLI); in OptimizeAwayTrappingUsesOfLoads() 1130 } else if (isAllocationFn(StoredOnceVal, GetTLI)) { in optimizeOnceStoredGlobal() 1132 auto *TLI = &GetTLI(*CI->getFunction()); in optimizeOnceStoredGlobal() 1487 Changed = CleanupPointerRootUsers(GV, GetTLI); in processInternalGlobal() 2328 auto *TLI = &GetTLI(*FuncIter); in FindCXAAtExit() 2339 TLI = &GetTLI(*Fn); in FindCXAAtExit() [all …]
|
| H A D | SCCP.cpp | 112 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in runIPSCCP() argument 118 SCCPSolver Solver(DL, GetTLI, M.getContext()); in runIPSCCP() 119 FunctionSpecializer Specializer(Solver, M, FAM, GetBFI, GetTLI, GetTTI, in runIPSCCP() 398 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local 415 if (!runIPSCCP(M, DL, &FAM, GetTLI, GetTTI, GetAC, GetDT, GetBFI, in run()
|
| H A D | ModuleInliner.cpp | 123 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 260 if (Callee.use_empty() && !isKnownLibFunction(Callee, GetTLI(Callee))) { in run()
|
| H A D | PartialInlining.cpp | 197 GetTTI(GTTI), GetBFI(GBFI), GetTLI(GTLI), PSI(ProfSI) {} in PartialInlinerImpl() 270 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member 736 GetTLI, GetBFI, &PSI, RemarksEnabled ? &ORE : nullptr); in shouldPartialInline() 1474 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 1481 GetTLI, PSI, GetBFI) in run()
|
| H A D | SampleProfile.cpp | 521 std::function<const TargetLibraryInfo &(Function &)> GetTLI) in SampleProfileLoader() argument 525 GetTTI(std::move(GetTargetTransformInfo)), GetTLI(std::move(GetTLI)), in SampleProfileLoader() 585 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in __anon254a5ace0111::SampleProfileLoader 1052 GetAC, GetTLI); in shouldInlineColdCallee() 1419 GetTTI(*Callee), GetAC, GetTLI); in shouldInlineCandidate() 2711 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in run() local 2722 LTOPhase, FS, GetAssumptionCache, GetTTI, GetTLI); in run()
|
| H A D | FunctionSpecialization.cpp | 1020 getInlineCost(*CS, CalledFunction, Params, CalleeTTI, GetAC, GetTLI); in getInliningBonus()
|
| /freebsd-14.2/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 | 343 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in llvm::SCCPInstVisitor 683 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPInstVisitor() argument 685 : DL(DL), GetTLI(GetTLI), Ctx(Ctx) {} in SCCPInstVisitor() 1679 if (Constant *C = ConstantFoldCall(&CB, F, Operands, &GetTLI(*F))) in handleCallOverdefined() 1984 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPSolver() argument 1986 : Visitor(new SCCPInstVisitor(DL, std::move(GetTLI), Ctx)) {} in SCCPSolver()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | GlobalsModRef.cpp | 352 getFreedOperand(Call, &GetTLI(*Call->getFunction())) == U) { in AnalyzeUsesOfPointer() 950 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in GlobalsAAResult() argument 951 : DL(DL), GetTLI(std::move(GetTLI)) {} in GlobalsAAResult() 954 : AAResultBase(std::move(Arg)), DL(Arg.DL), GetTLI(std::move(Arg.GetTLI)), in GlobalsAAResult() 970 Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in analyzeModule() argument 972 GlobalsAAResult Result(M.getDataLayout(), GetTLI); in analyzeModule() 991 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 994 return GlobalsAAResult::analyzeModule(M, GetTLI, in run() 1033 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 1037 M, GetTLI, getAnalysis<CallGraphWrapperPass>().getCallGraph()))); in runOnModule()
|
| H A D | InlineAdvisor.cpp | 149 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getDefaultInlineAdvice() local 159 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getDefaultInlineAdvice() 596 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getMandatoryKind() local 603 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 | InlineCost.cpp | 2878 function_ref<const TargetLibraryInfo &(Function &)> &GetTLI) { in functionsHaveCompatibleAttributes() argument 2883 auto CalleeTLI = GetTLI(*Callee); in functionsHaveCompatibleAttributes() 2886 GetTLI(*Caller).areInlineCompatible(CalleeTLI, in functionsHaveCompatibleAttributes() 2930 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in getInlineCost() argument 2934 GetAssumptionCache, GetTLI, GetBFI, PSI, ORE); in getInlineCost() 2977 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in getAttributeBasedInliningDecision() argument 3019 if (!functionsHaveCompatibleAttributes(Caller, Callee, CalleeTTI, GetTLI)) in getAttributeBasedInliningDecision() 3050 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in getInlineCost() argument 3055 llvm::getAttributeBasedInliningDecision(Call, Callee, CalleeTTI, GetTLI); in getInlineCost()
|
| H A D | MemoryBuiltins.cpp | 233 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in getAllocationData() argument 238 Callee, AllocTy, &GetTLI(const_cast<Function &>(*Callee))); in getAllocationData() 305 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in isAllocationFn() argument 306 return getAllocationData(V, AnyAlloc, GetTLI).has_value() || in isAllocationFn()
|
| H A D | LazyCallGraph.cpp | 155 Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in LazyCallGraph() argument 164 if (isKnownLibFunction(F, GetTLI(F))) in LazyCallGraph()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | GlobalsModRef.h | 34 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable 77 std::function<const TargetLibraryInfo &(Function &F)> GetTLI); 90 std::function<const TargetLibraryInfo &(Function &F)> GetTLI,
|
| H A D | InlineCost.h | 280 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 294 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 307 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
|
| H A D | LazyCallGraph.h | 941 function_ref<TargetLibraryInfo &(Function &)> GetTLI); 1273 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { 1276 return LazyCallGraph(M, GetTLI);
|
| H A D | MemoryBuiltins.h | 58 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | FunctionSpecialization.h | 261 std::function<const TargetLibraryInfo &(Function &)> GetTLI; variable 275 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in FunctionSpecializer() argument 278 : Solver(Solver), M(M), FAM(FAM), GetBFI(GetBFI), GetTLI(GetTLI), in FunctionSpecializer()
|
| /freebsd-14.2/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); 158 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anone531cbe00211::GCOVProfiler 555 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) { in runOnModule() argument 557 this->GetTLI = std::move(GetTLI); in runOnModule() 568 emitProfileNotes(CUNode, HasExecOrFork, GetBFI, GetBPI, this->GetTLI); in runOnModule() 585 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local 589 if (!Profiler.runOnModule(M, GetBFI, GetBPI, GetTLI)) in run() 631 TLI = TLI == nullptr ? &GetTLI(F) : TLI; in AddFlushBeforeForkAndExec() 766 function_ref<const TargetLibraryInfo &(Function &F)> GetTLI) { in emitProfileNotes() argument [all …]
|
| H A D | InstrProfiling.cpp | 174 std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in InstrLowerer() argument 177 GetTLI(GetTLI) {} in InstrLowerer() 188 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anon719920e10111::InstrLowerer 577 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 580 InstrLowerer Lowerer(M, Options, GetTLI, IsCS); in run() 657 BPI.reset(new BranchProbabilityInfo(*F, LI, &GetTLI(*F))); in promoteCounterLoadStores() 826 auto *TLI = &GetTLI(*Ind->getFunction()); in lowerValueProfileInst()
|
| H A D | DataFlowSanitizer.cpp | 576 llvm::function_ref<TargetLibraryInfo &(Function &)> GetTLI); 1495 Module &M, llvm::function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in runImpl() argument 1693 FnsWithForceZeroLabel.count(F), GetTLI(*F)); in runImpl() 3461 auto GetTLI = [&](Function &F) -> TargetLibraryInfo & { in run() local 3466 if (!DataFlowSanitizer(ABIListFiles).runImpl(M, GetTLI)) in run()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SCCPSolver.h | 70 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
|