Home
last modified time | relevance | path

Searched refs:GetTLI (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DInferFunctionAttrs.cpp20 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 DGlobalOpt.cpp168 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 DSCCP.cpp110 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 DModuleInliner.cpp133 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
283 if (Callee.use_empty() && !isKnownLibFunction(Callee, GetTLI(Callee))) { in run()
H A DSampleProfile.cpp472 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 DPartialInlining.cpp196 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 DFunctionSpecialization.cpp1099 getInlineCost(*CS, CalledFunction, Params, CalleeTTI, GetAC, GetTLI); in getInliningBonus()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineCost.h282 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 DGlobalsModRef.h35 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 DLazyCallGraph.h940 function_ref<TargetLibraryInfo &(Function &)> GetTLI);
1279 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & {
1282 return LazyCallGraph(M, GetTLI);
H A DMemoryBuiltins.h59 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMetaRenamer.cpp132 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 DSCCPSolver.cpp428 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 DGlobalsModRef.cpp360 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 DInlineCost.cpp260 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 DInlineAdvisor.cpp159 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 DInlineOrder.cpp61 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getInlineCostWrapper() local
70 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getInlineCostWrapper()
H A DMemoryBuiltins.cpp228 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 DLazyCallGraph.cpp157 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 DFunctionSpecialization.h244 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 DGCOVProfiling.cpp100 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 DInstrProfiling.cpp256 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 DDataFlowSanitizer.cpp578 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 DSCCPSolver.h72 std::function<const TargetLibraryInfo &(Function &)> GetTLI,