Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/
DInferFunctionAttrs.cpp21 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()
DGlobalOpt.cpp162 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
247 CleanupPointerRootUsers(GV, GetTLI); in CleanupPointerRootUsers()
254 if (IsSafeComputationToRemove(Dead[i].first, GetTLI)) { in CleanupPointerRootUsers()
258 if (isAllocationFn(I, GetTLI)) in CleanupPointerRootUsers()
776 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in OptimizeAwayTrappingUsesOfLoads() argument
821 Changed |= CleanupPointerRootUsers(GV, GetTLI); in OptimizeAwayTrappingUsesOfLoads()
1091 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in optimizeOnceStoredGlobal() argument
1110 if (OptimizeAwayTrappingUsesOfLoads(GV, SOVC, DL, GetTLI)) in optimizeOnceStoredGlobal()
[all …]
DSCCP.cpp111 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in runIPSCCP() argument
116 SCCPSolver Solver(DL, GetTLI, M.getContext()); in runIPSCCP()
117 FunctionSpecializer Specializer(Solver, M, FAM, GetTLI, GetTTI, GetAC); in runIPSCCP()
383 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local
400 if (!runIPSCCP(M, DL, &FAM, GetTLI, GetTTI, GetAC, getAnalysis, in run()
430 auto GetTLI = [this](Function &F) -> const TargetLibraryInfo & { in runOnModule() local
452 return runIPSCCP(M, DL, nullptr, GetTLI, GetTTI, GetAC, getAnalysis, false); in runOnModule()
DModuleInliner.cpp123 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
265 if (Callee.use_empty() && !isKnownLibFunction(Callee, GetTLI(Callee))) { in run()
DPartialInlining.cpp198 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()
783 GetTLI, GetBFI, &PSI, RemarksEnabled ? &ORE : nullptr); in shouldPartialInline()
1535 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
1542 GetTLI, PSI, GetBFI) in run()
DInlineSimple.cpp65 return llvm::getInlineCost(CB, Params, TTI, GetAssumptionCache, GetTLI, in getInlineCost()
DInliner.cpp365 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()
DSampleProfile.cpp462 std::function<const TargetLibraryInfo &(Function &)> GetTLI) in SampleProfileLoader() argument
465 GetTTI(std::move(GetTargetTransformInfo)), GetTLI(std::move(GetTLI)), in SampleProfileLoader()
527 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in __anon628534940111::SampleProfileLoader
1011 GetAC, GetTLI); in shouldInlineColdCallee()
1375 GetTTI(*Callee), GetAC, GetTLI); in shouldInlineCandidate()
2342 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in run() local
2350 LTOPhase, GetAssumptionCache, GetTTI, GetTLI); in run()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp123 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()
DSCCPSolver.cpp300 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in llvm::SCCPInstVisitor
589 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPInstVisitor() argument
591 : DL(DL), GetTLI(GetTLI), Ctx(Ctx) {} in SCCPInstVisitor()
1501 if (Constant *C = ConstantFoldCall(&CB, F, Operands, &GetTLI(*F))) in handleCallOverdefined()
1799 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPSolver() argument
1801 : Visitor(new SCCPInstVisitor(DL, std::move(GetTLI), Ctx)) {} in SCCPSolver()
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/IPO/
DFunctionSpecialization.h126 std::function<const TargetLibraryInfo &(Function &)> GetTLI; variable
141 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in FunctionSpecializer() argument
144 : Solver(Solver), M(M), FAM(FAM), GetTLI(GetTLI), GetTTI(GetTTI), in FunctionSpecializer()
DInliner.h78 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member
/openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/
DAMDGPUPrintfRuntimeBinding.cpp60 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) in AMDGPUPrintfRuntimeBindingImpl() argument
61 : GetDT(GetDT), GetTLI(GetTLI) {} in AMDGPUPrintfRuntimeBindingImpl()
77 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member in __anonb516ff7f0111::AMDGPUPrintfRuntimeBindingImpl
190 simplify(I, &GetTLI(*I->getFunction()), &GetDT(*I->getFunction())); in lowerPrintfForGpu()
497 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
501 return AMDGPUPrintfRuntimeBindingImpl(GetDT, GetTLI).run(M); in runOnModule()
511 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
514 bool Changed = AMDGPUPrintfRuntimeBindingImpl(GetDT, GetTLI).run(M); in run()
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DGlobalsModRef.cpp352 getFreedOperand(Call, &GetTLI(*Call->getFunction())) == U) { in AnalyzeUsesOfPointer()
953 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in GlobalsAAResult() argument
954 : DL(DL), GetTLI(std::move(GetTLI)) {} in GlobalsAAResult()
957 : AAResultBase(std::move(Arg)), DL(Arg.DL), GetTLI(std::move(Arg.GetTLI)), in GlobalsAAResult()
973 Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI, in analyzeModule() argument
975 GlobalsAAResult Result(M.getDataLayout(), GetTLI); in analyzeModule()
994 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
997 return GlobalsAAResult::analyzeModule(M, GetTLI, in run()
1036 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
1040 M, GetTLI, getAnalysis<CallGraphWrapperPass>().getCallGraph()))); in runOnModule()
DInlineAdvisor.cpp148 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getDefaultInlineAdvice() local
158 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()
DInlineOrder.cpp62 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getInlineCostWrapper() local
71 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getInlineCostWrapper()
DInlineCost.cpp2791 function_ref<const TargetLibraryInfo &(Function &)> &GetTLI) { in functionsHaveCompatibleAttributes() argument
2796 auto CalleeTLI = GetTLI(*Callee); in functionsHaveCompatibleAttributes()
2799 GetTLI(*Caller).areInlineCompatible(CalleeTLI, in functionsHaveCompatibleAttributes()
2841 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in getInlineCost() argument
2845 GetAssumptionCache, GetTLI, GetBFI, PSI, ORE); in getInlineCost()
2888 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in getAttributeBasedInliningDecision() argument
2930 if (!functionsHaveCompatibleAttributes(Caller, Callee, CalleeTTI, GetTLI)) in getAttributeBasedInliningDecision()
2961 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in getInlineCost() argument
2966 llvm::getAttributeBasedInliningDecision(Call, Callee, CalleeTTI, GetTLI); in getInlineCost()
DMemoryBuiltins.cpp218 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in getAllocationData() argument
223 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()
/openbsd/src/gnu/llvm/llvm/include/llvm/Analysis/
DGlobalsModRef.h34 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable
77 std::function<const TargetLibraryInfo &(Function &F)> GetTLI);
90 std::function<const TargetLibraryInfo &(Function &F)> GetTLI,
DInlineCost.h279 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
293 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
306 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
DLazyCallGraph.h941 function_ref<TargetLibraryInfo &(Function &)> GetTLI);
1273 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & {
1276 return LazyCallGraph(M, GetTLI);
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Instrumentation/
DInstrProfiling.h42 std::function<const TargetLibraryInfo &(Function &F)> GetTLI);
48 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp100 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 __anonbbfb7ea60211::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 …]
DInstrProfiling.cpp404 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()
640 auto *TLI = &GetTLI(*Ind->getFunction()); in lowerValueProfileInst()
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
DSCCPSolver.h80 std::function<const TargetLibraryInfo &(Function &)> GetTLI,

12