Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DInferFunctionAttrs.cpp24 Module &M, function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in inferAllPrototypeAttributes() argument
35 Changed |= inferLibFuncAttributes(F, GetTLI(F)); in inferAllPrototypeAttributes()
46 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
50 if (!inferAllPrototypeAttributes(M, GetTLI)) in run()
75 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
78 return inferAllPrototypeAttributes(M, GetTLI); in runOnModule()
H A DSCCP.cpp27 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local
37 if (!runIPSCCP(M, DL, GetTLI, getAnalysis)) in run()
66 auto GetTLI = [this](Function &F) -> const TargetLibraryInfo & { in runOnModule() local
81 return runIPSCCP(M, DL, GetTLI, getAnalysis); in runOnModule()
112 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
128 if (!runFunctionSpecialization(M, DL, GetTLI, GetTTI, GetAC, GetAnalysis)) in run()
154 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
175 return runFunctionSpecialization(M, DL, GetTLI, GetTTI, GetAC, GetAnalysis); in runOnModule()
H A DGlobalOpt.cpp172 if (isAllocationFn(V, GetTLI)) in IsSafeComputationToRemove()
250 CleanupPointerRootUsers(GV, GetTLI); in CleanupPointerRootUsers()
261 if (isAllocationFn(I, GetTLI)) in CleanupPointerRootUsers()
363 CleanupConstantGlobalUsers(V, Init, DL, GetTLI); in CleanupConstantGlobalUsers()
858 Changed |= CleanupPointerRootUsers(GV, GetTLI); in OptimizeAwayTrappingUsesOfLoads()
1126 auto *TLI = &GetTLI(*CI->getFunction()); in optimizeOnceStoredGlobal()
1508 Changed = CleanupPointerRootUsers(GV, GetTLI); in processInternalGlobal()
1583 GetTLI)) in processInternalGlobal()
2498 auto *TLI = &GetTLI(*FuncIter); in FindCXAAtExit()
2509 TLI = &GetTLI(*Fn); in FindCXAAtExit()
[all …]
H A DFunctionSpecialization.cpp84 std::function<TargetLibraryInfo &(Function &)> GetTLI; member in FunctionSpecializer
92 std::function<TargetLibraryInfo &(Function &)> GetTLI) in FunctionSpecializer() argument
93 : Solver(Solver), GetAC(GetAC), GetTTI(GetTTI), GetTLI(GetTLI) {} in FunctionSpecializer()
353 getInlineCost(*CS, CalledFunction, Params, CalleeTTI, GetAC, GetTLI); in getSpecializationBonus()
551 std::function<TargetLibraryInfo &(Function &)> GetTLI, in runFunctionSpecialization() argument
555 SCCPSolver Solver(DL, GetTLI, M.getContext()); in runFunctionSpecialization()
556 FunctionSpecializer FS(Solver, GetAC, GetTTI, GetTLI); in runFunctionSpecialization()
H A DInlineSimple.cpp71 return llvm::getInlineCost(CB, Params, TTI, GetAssumptionCache, GetTLI, in getInlineCost()
H A DPartialInlining.cpp201 GetTTI(GTTI), GetBFI(GBFI), GetTLI(GTLI), PSI(ProfSI) {} in PartialInlinerImpl()
274 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member
384 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
389 GetTLI, PSI) in runOnModule()
790 GetTLI, GetBFI, &PSI, RemarksEnabled ? &ORE : nullptr); in shouldPartialInline()
1548 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
1555 GetTLI, PSI, GetBFI) in run()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMetaRenamer.cpp84 function_ref<TargetLibraryInfo &(Function &)> GetTLI) { in MetaRename() argument
131 GetTLI(F).getLibFunc(F, Tmp)) in MetaRename()
157 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
160 MetaRename(M, GetTLI); in runOnModule()
186 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
189 MetaRename(M, GetTLI); in run()
H A DSCCPSolver.cpp71 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member in llvm::SCCPInstVisitor
353 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPInstVisitor() argument
355 : DL(DL), GetTLI(GetTLI), Ctx(Ctx) {} in SCCPInstVisitor()
1204 if (Constant *C = ConstantFoldCall(&CB, F, Operands, &GetTLI(*F))) { in handleCallOverdefined()
1603 std::function<const TargetLibraryInfo &(Function &)> GetTLI, in SCCPSolver() argument
1605 : Visitor(new SCCPInstVisitor(DL, std::move(GetTLI), Ctx)) {} in SCCPSolver()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DCFLSteensAliasAnalysis.cpp65 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in CFLSteensAAResult() argument
66 : AAResultBase(), 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 DGlobalsModRef.cpp380 isFreeCall(I, &GetTLI(*Call->getFunction()))) { in AnalyzeUsesOfPointer()
441 if (!isAllocLikeFn(Ptr, &GetTLI(*SI->getFunction()))) in AnalyzeIndirectGlobalMemory()
588 auto &TLI = GetTLI(*Node->getFunction()); in AnalyzeCallGraph()
965 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) in GlobalsAAResult() argument
966 : AAResultBase(), DL(DL), GetTLI(std::move(GetTLI)) {} in GlobalsAAResult()
969 : AAResultBase(std::move(Arg)), DL(Arg.DL), GetTLI(std::move(Arg.GetTLI)), in GlobalsAAResult()
987 GlobalsAAResult Result(M.getDataLayout(), GetTLI); in analyzeModule()
1006 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
1009 return GlobalsAAResult::analyzeModule(M, GetTLI, in run()
1030 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
[all …]
H A DCFLAndersAliasAnalysis.cpp93 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 DMemoryBuiltins.cpp191 function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in getAllocationData() argument
198 Callee, AllocTy, &GetTLI(const_cast<Function &>(*Callee))); in getAllocationData()
247 const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in isAllocationFn() argument
249 return getAllocationData(V, AnyAlloc, GetTLI, LookThroughBitCast).hasValue(); in isAllocationFn()
269 const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in isMallocLikeFn() argument
271 return getAllocationData(V, MallocLike, GetTLI, LookThroughBitCast) in isMallocLikeFn()
283 const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI, in isAlignedAllocLikeFn() argument
285 return getAllocationData(V, AlignedAllocLike, GetTLI, LookThroughBitCast) in isAlignedAllocLikeFn()
343 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in extractMallocCall() argument
344 return isMallocLikeFn(I, GetTLI) ? dyn_cast<CallInst>(I) : nullptr; in extractMallocCall()
H A DInlineAdvisor.cpp90 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getDefaultInlineAdvice() local
100 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getDefaultInlineAdvice()
486 auto GetTLI = [&](Function &F) -> const TargetLibraryInfo & { in getMandatoryKind() local
493 llvm::getAttributeBasedInliningDecision(CB, &Callee, TIR, GetTLI); in getMandatoryKind()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h60 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
73 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
81 const Value *V, function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
127 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
130 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) { in extractMallocCall() argument
131 return const_cast<CallInst *>(extractMallocCall((const Value *)I, GetTLI)); in extractMallocCall()
H A DGlobalsModRef.h37 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable
80 std::function<const TargetLibraryInfo &(Function &F)> GetTLI);
91 std::function<const TargetLibraryInfo &(Function &F)> GetTLI,
H A DCFLAndersAliasAnalysis.h45 std::function<const TargetLibraryInfo &(Function &F)> GetTLI);
78 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable
H A DInlineCost.h254 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
268 function_ref<const TargetLibraryInfo &(Function &)> GetTLI,
281 function_ref<const TargetLibraryInfo &(Function &)> GetTLI);
H A DCFLSteensAliasAnalysis.h46 std::function<const TargetLibraryInfo &(Function &)> GetTLI);
94 std::function<const TargetLibraryInfo &(Function &)> GetTLI;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp56 function_ref<const TargetLibraryInfo &(Function &)> GetTLI) in AMDGPUPrintfRuntimeBindingImpl() argument
57 : GetDT(GetDT), GetTLI(GetTLI) {} in AMDGPUPrintfRuntimeBindingImpl()
74 function_ref<const TargetLibraryInfo &(Function &)> GetTLI; member in __anon3fe2a5b70111::AMDGPUPrintfRuntimeBindingImpl
173 simplify(I, &GetTLI(*I->getFunction()), &GetDT(*I->getFunction())); in lowerPrintfForGpu()
583 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
587 return AMDGPUPrintfRuntimeBindingImpl(GetDT, GetTLI).run(M); in runOnModule()
597 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
600 bool Changed = AMDGPUPrintfRuntimeBindingImpl(GetDT, GetTLI).run(M); in run()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DSCCP.h44 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
49 std::function<TargetLibraryInfo &(Function &)> GetTLI,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DInstrProfiling.h43 std::function<const TargetLibraryInfo &(Function &F)> GetTLI);
49 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; variable
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp163 std::function<const TargetLibraryInfo &(Function &F)> GetTLI; member in __anon46c724de0211::GCOVProfiler
190 auto GetTLI = [this](Function &F) -> const TargetLibraryInfo & { in runOnModule() local
193 return Profiler.runOnModule(M, GetBFI, GetBPI, GetTLI); in runOnModule()
608 std::function<const TargetLibraryInfo &(Function &F)> GetTLI) { in runOnModule() argument
610 this->GetTLI = std::move(GetTLI); in runOnModule()
621 emitProfileNotes(CUNode, HasExecOrFork, GetBFI, GetBPI, this->GetTLI); in runOnModule()
638 auto GetTLI = [&FAM](Function &F) -> const TargetLibraryInfo & { in run() local
642 if (!Profiler.runOnModule(M, GetBFI, GetBPI, GetTLI)) in run()
683 auto *TLI = &GetTLI(F); in AddFlushBeforeForkAndExec()
816 function_ref<const TargetLibraryInfo &(Function &F)> GetTLI) { in emitProfileNotes() argument
[all …]
H A DInstrProfiling.cpp159 auto GetTLI = [this](Function &F) -> TargetLibraryInfo & { in runOnModule() local
162 return InstrProf.run(M, GetTLI); in runOnModule()
414 auto GetTLI = [&FAM](Function &F) -> TargetLibraryInfo & { in run() local
417 if (!run(M, GetTLI)) in run()
499 BPI.reset(new BranchProbabilityInfo(*F, LI, &GetTLI(*F))); in promoteCounterLoadStores()
541 Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI) { in run() argument
543 this->GetTLI = std::move(GetTLI); in run()
651 auto *TLI = &GetTLI(*Ind->getFunction()); in lowerValueProfileInst()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSCCPSolver.h49 std::function<const TargetLibraryInfo &(Function &)> GetTLI,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DInliner.h80 std::function<const TargetLibraryInfo &(Function &)> GetTLI; member

12