| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | InferFunctionAttrs.cpp | 21 Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in inferAllPrototypeAttributes() argument 32 Changed |= inferNonMandatoryLibFuncAttrs(F, GetTLI(F)); in inferAllPrototypeAttributes() 43 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 47 if (!inferAllPrototypeAttributes(M, GetTLI)) in run() 72 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 75 return inferAllPrototypeAttributes(M, GetTLI); in runOnModule()
|
| H A D | SCCP.cpp | 28 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local 38 if (!runIPSCCP(M, DL, GetTLI, getAnalysis)) in run() 67 auto GetTLI = [this](Function &F) -> const TargetLibraryInfo & { in runOnModule() local 82 return runIPSCCP(M, DL, GetTLI, getAnalysis); in runOnModule() 113 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 129 if (!runFunctionSpecialization(M, DL, GetTLI, GetTTI, GetAC, GetAnalysis)) in run() 156 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 177 return runFunctionSpecialization(M, DL, GetTLI, GetTTI, GetAC, GetAnalysis); in runOnModule()
|
| H A D | GlobalOpt.cpp | 172 if (isAllocationFn(V, GetTLI)) in IsSafeComputationToRemove() 248 CleanupPointerRootUsers(GV, GetTLI); in CleanupPointerRootUsers() 255 if (IsSafeComputationToRemove(Dead[i].first, GetTLI)) { in CleanupPointerRootUsers() 259 if (isAllocationFn(I, GetTLI)) in CleanupPointerRootUsers() 817 Changed |= CleanupPointerRootUsers(GV, GetTLI); in OptimizeAwayTrappingUsesOfLoads() 1108 } else if (isAllocationFn(StoredOnceVal, GetTLI)) { in optimizeOnceStoredGlobal() 1110 auto *TLI = &GetTLI(*CI->getFunction()); in optimizeOnceStoredGlobal() 1536 Changed = CleanupPointerRootUsers(GV, GetTLI); in processInternalGlobal() 2372 auto *TLI = &GetTLI(*FuncIter); in FindCXAAtExit() 2383 TLI = &GetTLI(*Fn); in FindCXAAtExit() [all …]
|
| H A D | FunctionSpecialization.cpp | 277 std::function<TargetLibraryInfo &(Function &)> GetTLI; member in __anonfb6321fa0211::FunctionSpecializer 288 std::function<TargetLibraryInfo &(Function &)> GetTLI) in FunctionSpecializer() argument 289 : Solver(Solver), GetAC(GetAC), GetTTI(GetTTI), GetTLI(GetTLI) {} in FunctionSpecializer() 641 getInlineCost(*CS, CalledFunction, Params, CalleeTTI, GetAC, GetTLI); in getSpecializationBonus() 828 std::function<TargetLibraryInfo &(Function &)> GetTLI, in runFunctionSpecialization() argument 832 SCCPSolver Solver(DL, GetTLI, M.getContext()); in runFunctionSpecialization() 833 FunctionSpecializer FS(Solver, GetAC, GetTTI, GetTLI); in runFunctionSpecialization()
|
| H A D | ModuleInliner.cpp | 130 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 294 if (Callee.use_empty() && !isKnownLibFunction(Callee, GetTLI(Callee))) { in run()
|
| H A D | PartialInlining.cpp | 198 GetTTI(GTTI), GetBFI(GBFI), GetTLI(GTLI), PSI(ProfSI) {} in PartialInlinerImpl() 271 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member 381 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 386 GetTLI, PSI) in runOnModule() 784 GetTLI, GetBFI, &PSI, RemarksEnabled ? &ORE : nullptr); in shouldPartialInline() 1549 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 1556 GetTLI, PSI, GetBFI) in run()
|
| H A D | InlineSimple.cpp | 65 return llvm::getInlineCost(CB, Params, TTI, GetAssumptionCache, GetTLI, in getInlineCost()
|
| H A D | Inliner.cpp | 365 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in inlineCallsImpl() argument 464 bool IsTriviallyDead = isInstructionTriviallyDead(&CB, &GetTLI(*Caller)); in inlineCallsImpl() 601 GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in inlineCalls() 608 SCC, CG, GetAssumptionCache, PSI, GetTLI, InsertLifetime, in inlineCalls()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | CFLSteensAliasAnalysis.cpp | 65 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in CFLSteensAAResult() argument 66 : GetTLI(std::move(GetTLI)) {} in CFLSteensAAResult() 68 : AAResultBase(std::move(Arg)), GetTLI(std::move(Arg.GetTLI)) {} in CFLSteensAAResult() 186 CFLGraphBuilder<CFLSteensAAResult> GraphBuilder(*this, GetTLI(*Fn), *Fn); in buildSetsFrom() 336 auto GetTLI = [&AM](Function &F) -> const TargetLibraryInfo & { in run() local 339 return CFLSteensAAResult(GetTLI); in run() 355 auto GetTLI = [this](Function &F) -> const TargetLibraryInfo & { in initializePass() local 358 Result.reset(new CFLSteensAAResult(GetTLI)); in initializePass()
|
| H A D | GlobalsModRef.cpp | 364 getFreedOperand(Call, &GetTLI(*Call->getFunction())) == U) { in AnalyzeUsesOfPointer() 956 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in GlobalsAAResult() argument 957 : DL(DL), GetTLI(std::move(GetTLI)) {} in GlobalsAAResult() 960 : AAResultBase(std::move(Arg)), DL(Arg.DL), GetTLI(std::move(Arg.GetTLI)), in GlobalsAAResult() 976 Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in analyzeModule() argument 978 GlobalsAAResult Result(M.getDataLayout(), GetTLI); in analyzeModule() 997 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 1000 return GlobalsAAResult::analyzeModule(M, GetTLI, in run() 1039 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 1043 M, GetTLI, getAnalysis<CallGraphWrapperPass>().getCallGraph()))); in runOnModule()
|
| H A D | CFLAndersAliasAnalysis.cpp | 93 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in CFLAndersAAResult() argument 94 : GetTLI(std::move(GetTLI)) {} in CFLAndersAAResult() 96 : AAResultBase(std::move(RHS)), GetTLI(std::move(RHS.GetTLI)) {} in CFLAndersAAResult() 784 *this, GetTLI(const_cast<Function &>(Fn)), in buildInfoFrom() 903 auto GetTLI = [&AM](Function &F) -> TargetLibraryInfo & { in run() local 906 return CFLAndersAAResult(GetTLI); in run() 922 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in initializePass() local 925 Result.reset(new CFLAndersAAResult(GetTLI)); in initializePass()
|
| H A D | InlineAdvisor.cpp | 146 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getDefaultInlineAdvice() local 156 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getDefaultInlineAdvice() 588 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getMandatoryKind() local 595 llvm::getAttributeBasedInliningDecision(CB, &Callee, TIR, GetTLI); in getMandatoryKind()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | MetaRenamer.cpp | 123 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in MetaRename() argument 189 GetTLI(F).getLibFunc(F, Tmp) || in MetaRename() 216 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 219 MetaRename(M, GetTLI); in runOnModule() 245 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 248 MetaRename(M, GetTLI); in run()
|
| H A D | SCCPSolver.cpp | 69 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in llvm::SCCPInstVisitor 349 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPInstVisitor() argument 351 : DL(DL), GetTLI(GetTLI), Ctx(Ctx) {} in SCCPInstVisitor() 1209 if (Constant *C = ConstantFoldCall(&CB, F, Operands, &GetTLI(*F))) in handleCallOverdefined() 1510 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPSolver() argument 1512 : Visitor(new SCCPInstVisitor(DL, std::move(GetTLI), Ctx)) {} in SCCPSolver()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPrintfRuntimeBinding.cpp | 57 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) in AMDGPUPrintfRuntimeBindingImpl() argument 58 : GetDT(GetDT), GetTLI(GetTLI) {} in AMDGPUPrintfRuntimeBindingImpl() 75 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member in __anon3c6ac7330111::AMDGPUPrintfRuntimeBindingImpl 174 simplify(I, &GetTLI(*I->getFunction()), &GetDT(*I->getFunction())); in lowerPrintfForGpu() 575 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 579 return AMDGPUPrintfRuntimeBindingImpl(GetDT, GetTLI).run(M); in runOnModule() 589 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 592 bool Changed = AMDGPUPrintfRuntimeBindingImpl(GetDT, GetTLI).run(M); in run()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/ |
| H A D | SCCP.h | 44 std::function<const TargetLibraryInfo &(Function &)> GetTLI, 49 std::function<TargetLibraryInfo &(Function &)> GetTLI,
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | GlobalsModRef.h | 36 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable 79 std::function<const TargetLibraryInfo &(Function &F)> GetTLI); 92 std::function<const TargetLibraryInfo &(Function &F)> GetTLI,
|
| H A D | CFLAndersAliasAnalysis.h | 45 std::function<const TargetLibraryInfo &(Function &F)> GetTLI); 78 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable
|
| H A D | InlineCost.h | 264 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 278 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 291 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
|
| H A D | CFLSteensAliasAnalysis.h | 44 std::function<const TargetLibraryInfo &(Function &)> GetTLI); 92 std::function<const TargetLibraryInfo &(Function &)> GetTLI;
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | GlobalsModRefTest.cpp | 50 auto GetTLI = [&TLI](Function &F) -> TargetLibraryInfo & { return TLI; }; in TEST() local 53 auto AAR = GlobalsAAResult::analyzeModule(*M, GetTLI, CG); in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Instrumentation/ |
| H A D | InstrProfiling.h | 42 std::function<const TargetLibraryInfo &(Function &F)> GetTLI); 48 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable
|
| /llvm-project-15.0.7/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); 157 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anon434f465a0211::GCOVProfiler 554 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) { in runOnModule() argument 556 this->GetTLI = std::move(GetTLI); in runOnModule() 567 emitProfileNotes(CUNode, HasExecOrFork, GetBFI, GetBPI, this->GetTLI); in runOnModule() 584 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local 588 if (!Profiler.runOnModule(M, GetBFI, GetBPI, GetTLI)) in run() 629 auto *TLI = &GetTLI(F); in AddFlushBeforeForkAndExec() 762 function_ref<const TargetLibraryInfo &(Function &F)> GetTLI) { in emitProfileNotes() argument [all …]
|
| H A D | InstrProfiling.cpp | 404 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 407 if (!run(M, GetTLI)) in run() 471 BPI.reset(new BranchProbabilityInfo(*F, LI, &GetTLI(*F))); in promoteCounterLoadStores() 517 Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI) { in run() argument 519 this->GetTLI = std::move(GetTLI); in run() 633 auto *TLI = &GetTLI(*Ind->getFunction()); in lowerValueProfileInst()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | SCCPSolver.h | 66 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
|