/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 | 162 Value *V, function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in IsSafeComputationToRemove() argument 171 if (isAllocationFn(V, GetTLI)) in IsSafeComputationToRemove() 193 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in CleanupPointerRootUsers() argument 246 if (IsSafeComputationToRemove(Dead[i].first, GetTLI)) { in CleanupPointerRootUsers() 250 if (isAllocationFn(I, GetTLI)) in CleanupPointerRootUsers() 827 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in OptimizeAwayTrappingUsesOfLoads() argument 873 Changed |= CleanupPointerRootUsers(GV, GetTLI); in OptimizeAwayTrappingUsesOfLoads() 1123 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in optimizeOnceStoredGlobal() argument 1139 if (OptimizeAwayTrappingUsesOfLoads(GV, SOVC, DL, GetTLI)) in optimizeOnceStoredGlobal() 1141 } else if (isAllocationFn(StoredOnceVal, GetTLI)) { in optimizeOnceStoredGlobal() [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() 386 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local 403 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 | SampleProfile.cpp | 472 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SampleProfileLoader() argument 477 GetTTI(std::move(GetTargetTransformInfo)), GetTLI(std::move(GetTLI)), in SampleProfileLoader() 544 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in __anon71830f180111::SampleProfileLoader 1001 GetAC, GetTLI); in shouldInlineColdCallee() 1371 GetTTI(*Callee), GetAC, GetTLI); in shouldInlineCandidate() 2323 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in run() local 2335 LTOPhase, FS, GetAssumptionCache, GetTTI, GetTLI, CG); 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 | FunctionSpecialization.cpp | 1022 getInlineCost(*CS, CalledFunction, Params, CalleeTTI, GetAC, GetTLI); in getInliningBonus()
|
/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 | 360 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in llvm::SCCPInstVisitor 707 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPInstVisitor() argument 709 : DL(DL), GetTLI(GetTLI), Ctx(Ctx) {} in SCCPInstVisitor() 1730 if (Constant *C = ConstantFoldCall(&CB, F, Operands, &GetTLI(*F))) in handleCallOverdefined() 2040 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPSolver() argument 2042 : 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() 958 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in GlobalsAAResult() argument 959 : DL(DL), GetTLI(std::move(GetTLI)) {} in GlobalsAAResult() 962 : AAResultBase(std::move(Arg)), DL(Arg.DL), GetTLI(std::move(Arg.GetTLI)), in GlobalsAAResult() 978 Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in analyzeModule() argument 980 GlobalsAAResult Result(M.getDataLayout(), GetTLI); in analyzeModule() 999 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 1002 return GlobalsAAResult::analyzeModule(M, GetTLI, in run() 1041 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local 1045 M, GetTLI, getAnalysis<CallGraphWrapperPass>().getCallGraph()))); in runOnModule()
|
H A D | InlineAdvisor.cpp | 150 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getDefaultInlineAdvice() local 160 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getDefaultInlineAdvice() 597 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getMandatoryKind() local 604 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 | 2883 function_ref<const TargetLibraryInfo &(Function &)> &GetTLI) { in functionsHaveCompatibleAttributes() argument 2888 auto CalleeTLI = GetTLI(*Callee); in functionsHaveCompatibleAttributes() 2891 GetTLI(*Caller).areInlineCompatible(CalleeTLI, in functionsHaveCompatibleAttributes() 2935 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in getInlineCost() argument 2939 GetAssumptionCache, GetTLI, GetBFI, PSI, ORE); in getInlineCost() 2982 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in getAttributeBasedInliningDecision() argument 3024 if (!functionsHaveCompatibleAttributes(Caller, Callee, CalleeTTI, GetTLI)) in getAttributeBasedInliningDecision() 3055 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in getInlineCost() argument 3060 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/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | FunctionSpecialization.h | 261 std::function<const TargetLibraryInfo &(Function &)> GetTLI; 275 std::function<const TargetLibraryInfo &(Function &)> GetTLI, 278 : Solver(Solver), M(M), FAM(FAM), GetBFI(GetBFI), GetTLI(GetTLI), 169 std::function<const TargetLibraryInfo &(Function &)> GetTLI; global() variable 181 FunctionSpecializer(SCCPSolver & Solver,Module & M,FunctionAnalysisManager * FAM,std::function<BlockFrequencyInfo & (Function &)> GetBFI,std::function<const TargetLibraryInfo & (Function &)> GetTLI,std::function<TargetTransformInfo & (Function &)> GetTTI,std::function<AssumptionCache & (Function &)> GetAC) FunctionSpecializer() argument
|
/freebsd/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 | 281 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 295 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, 308 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
|
H A D | LazyCallGraph.h | 941 function_ref<TargetLibraryInfo &(Function &)> GetTLI); 1278 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { 1281 return LazyCallGraph(M, GetTLI);
|
H A D | MemoryBuiltins.h | 58 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
H A D | InstrProfiling.h | 48 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; global() variable
|
/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); 158 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anon09913f2a0211::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( in AddFlushBeforeForkAndExec() 766 emitProfileNotes(NamedMDNode * CUNode,bool HasExecOrFork,function_ref<BlockFrequencyInfo * (Function & F)> GetBFI,function_ref<BranchProbabilityInfo * (Function & F)> GetBPI,function_ref<const TargetLibraryInfo & (Function & F)> GetTLI) emitProfileNotes() argument [all...] |
H A D | InstrProfiling.cpp | 222 std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in InstrLowerer() argument 225 GetTLI(GetTLI), DataReferencedByCode(profDataReferencedByCode(M)) {} in InstrLowerer() 236 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anon21e6fd6b0111::InstrLowerer 658 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local 661 InstrLowerer Lowerer(M, Options, GetTLI, IsCS); in run() 877 BPI.reset(new BranchProbabilityInfo(*F, LI, &GetTLI(*F))); in promoteCounterLoadStores() 1056 auto *TLI = &GetTLI(*Ind->getFunction()); in lowerValueProfileInst()
|
H A D | DataFlowSanitizer.cpp | 578 llvm::function_ref<TargetLibraryInfo &(Function &)> GetTLI); 1499 Module &M, llvm::function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in runImpl() argument 1698 FnsWithForceZeroLabel.count(F), GetTLI(*F)); in runImpl() 3476 auto GetTLI = [&](Function &F) -> TargetLibraryInfo & { in run() local 3481 if (!DataFlowSanitizer(ABIListFiles).runImpl(M, GetTLI)) in run()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SCCPSolver.h | 70 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
|