Home
last modified time | relevance | path

Searched refs:Caller (Results 1 – 25 of 102) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpFrame.cpp26 InterpFrame *Caller, CodePtr RetPC, unsigned ArgSize) in InterpFrame() argument
27 : Caller(Caller), S(S), Depth(Caller ? Caller->Depth + 1 : 0), Func(Func), in InterpFrame()
195 if (Caller->Caller) in getCaller()
196 return Caller; in getCaller()
201 if (!Caller->Func) { in getCallRange()
206 return S.getRange(Caller->Func, RetPC - sizeof(uintptr_t)); in getCallRange()
243 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getSource()
244 return Caller->getSource(RetPC); in getSource()
250 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getExpr()
251 return Caller->getExpr(RetPC); in getExpr()
[all …]
H A DInterpState.cpp24 InterpFrame *Next = Current->Caller; in ~InterpState()
49 if (Current && Current->Caller) in getCurrentFrame()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp84 emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, IsInliningRecommended, in recordInliningImpl()
96 << NV("Caller", Caller) in recordUnsuccessfulInliningImpl()
116 << NV("Caller", Caller) in recordUnsuccessfulInliningImpl()
123 emitInlinedIntoBasedOnCost(ORE, DLoc, Block, *Callee, *Caller, *OIC, in recordInliningWithCalleeDeletedImpl()
130 emitInlinedIntoBasedOnCost(ORE, DLoc, Block, *Callee, *Caller, *OIC, in recordInliningImpl()
137 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice() local
139 FAM.getResult<ModuleAnalysisManagerFunctionProxy>(Caller) in getDefaultInlineAdvice()
143 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getDefaultInlineAdvice()
179 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
185 Advisor->ImportedFunctionsStats->recordInline(*Caller, *Callee); in recordInlineStatsIfNeeded()
[all …]
H A DMLInlineAdvisor.cpp285 Function *Caller = Advice.getCaller(); in onSuccessfulInlining() local
293 FAM.invalidate(*Caller, PA); in onSuccessfulInlining()
297 getIRSize(*Caller) + (CalleeWasDeleted ? 0 : Advice.CalleeIRSize); in onSuccessfulInlining()
308 getCachedFPI(*Caller).DirectCallsToDefinedFunctions; in onSuccessfulInlining()
346 auto &Caller = *CB.getCaller(); in getAdviceImpl() local
353 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdviceImpl()
356 if (!PSI.isFunctionEntryCold(&Caller)) in getAdviceImpl()
366 &Caller == &Callee) in getAdviceImpl()
409 auto &CallerBefore = getCachedFPI(Caller); in getAdviceImpl()
415 getInitialFunctionLevel(Caller); in getAdviceImpl()
[all …]
H A DReplayInlineAdvisor.cpp61 StringRef Caller = CalleeCaller.second.rsplit("'").first; in ReplayInlineAdvisor() local
65 if (Callee.empty() || Caller.empty() || CallSite.empty()) { in ReplayInlineAdvisor()
73 CallersToReplay.insert(Caller); in ReplayInlineAdvisor()
96 Function &Caller = *CB.getCaller(); in getAdviceImpl() local
97 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdviceImpl()
H A DFunctionPropertiesAnalysis.cpp311 : FPI(FPI), CallSiteBB(*CB.getParent()), Caller(*CallSiteBB.getParent()) { in FunctionPropertiesUpdater()
322 LikelyToChangeBBs.insert(&*Caller.begin()); in FunctionPropertiesUpdater()
387 FAM.getResult<DominatorTreeAnalysis>(const_cast<Function &>(Caller)); in finish()
389 if (&CallSiteBB != &*Caller.begin()) in finish()
390 Reinclude.insert(&*Caller.begin()); in finish()
428 const auto &LI = FAM.getResult<LoopAnalysis>(const_cast<Function &>(Caller)); in finish()
429 FPI.updateAggregateStats(Caller, LI); in finish()
H A DCallPrinter.cpp77 for (Function *Caller : Callers) in CallGraphDOTInfo()
78 localSumFreq += getNumOfCalls(*Caller, F); in CallGraphDOTInfo()
184 Function *Caller = Node->getFunction(); in getEdgeAttributes() local
185 if (Caller == nullptr || Caller->isDeclaration()) in getEdgeAttributes()
192 uint64_t Counter = getNumOfCalls(*Caller, *Callee); in getEdgeAttributes()
H A DImportedFunctionsInliningStatistics.cpp48 void ImportedFunctionsInliningStatistics::recordInline(const Function &Caller, in recordInline() argument
51 InlineGraphNode &CallerNode = createInlineGraphNode(Caller); in recordInline()
67 auto It = NodesMap.find(Caller.getName()); in recordInline()
H A DInlineCost.cpp812 auto *Caller = CandidateCall.getParent()->getParent(); in isCostBenefitAnalysisEnabled() local
813 if (!Caller->getEntryCount()) in isCostBenefitAnalysisEnabled()
816 BlockFrequencyInfo *CallerBFI = &(GetBFI(*Caller)); in isCostBenefitAnalysisEnabled()
988 auto *Caller = CandidateCall.getFunction(); in finalizeAnalysis() local
989 if (Caller->hasMinSize()) { in finalizeAnalysis()
1291 auto *Caller = CandidateCall.getFunction(); in finalizeAnalysis() local
1292 if (Caller->hasMinSize()) { in finalizeAnalysis()
1918 Function *Caller = Call.getCaller(); in updateThreshold() local
1955 if (Caller->hasMinSize()) { in updateThreshold()
1963 } else if (Caller->hasOptSize()) in updateThreshold()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp227 SemaCUDA::IdentifyPreference(const FunctionDecl *Caller, in IdentifyPreference() argument
234 if (Caller == nullptr && CurCUDATargetCtx.Kind == CTCK_InitGlobalVar && in IdentifyPreference()
239 CUDAFunctionTarget CallerTarget = IdentifyTarget(Caller); in IdentifyPreference()
321 const FunctionDecl *Caller, in EraseUnwantedMatches() argument
330 return IdentifyPreference(Caller, Match.second); in EraseUnwantedMatches()
708 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true); in RecordImplicitHostDeviceFuncUsedByDevice() local
709 if (!Caller) in RecordImplicitHostDeviceFuncUsedByDevice()
715 CUDAFunctionTarget CallerTarget = IdentifyTarget(Caller); in RecordImplicitHostDeviceFuncUsedByDevice()
721 (isImplicitHostDeviceFunction(Caller) && in RecordImplicitHostDeviceFuncUsedByDevice()
722 !getASTContext().CUDAImplicitHostDeviceFunUsedByDevice.count(Caller)))) in RecordImplicitHostDeviceFuncUsedByDevice()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp606 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedLandingPad() local
615 for (Function::iterator I = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
632 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
662 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedEHPad() local
690 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedEHPad()
705 ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
738 UnwindDestToken = ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
767 E = Caller->end(); in HandleInlinedEHPad()
1654 Function *Caller = TheCall->getFunction(); in HandleByValArgument() local
1655 const DataLayout &DL = Caller->getDataLayout(); in HandleByValArgument()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp2188 static bool checkDenormMode(const Function &Caller, const Function &Callee) { in checkDenormMode() argument
2189 DenormalMode CallerMode = Caller.getDenormalModeRaw(); in checkDenormMode()
2193 DenormalMode CallerModeF32 = Caller.getDenormalModeF32Raw(); in checkDenormMode()
2205 static bool checkStrictFP(const Function &Caller, const Function &Callee) { in checkStrictFP() argument
2209 Caller.getAttributes().hasFnAttr(Attribute::StrictFP); in checkStrictFP()
2213 static bool isEqual(const Function &Caller, const Function &Callee) { in isEqual() argument
2214 return Caller.getFnAttribute(AttrClass::getKind()) == in isEqual()
2218 static bool isEqual(const Function &Caller, const Function &Callee, in isEqual() argument
2220 return Caller.getFnAttribute(AttrName) == Callee.getFnAttribute(AttrName); in isEqual()
2229 static void setAND(Function &Caller, const Function &Callee) { in setAND() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMemProfContextDisambiguation.cpp362 void addOrUpdateCallerEdge(ContextNode *Caller, AllocationType AllocType,
366 ContextEdge *findEdgeFromCaller(const ContextNode *Caller);
397 ContextNode *Caller; member
406 ContextEdge(ContextNode *Callee, ContextNode *Caller, uint8_t AllocType, in ContextEdge()
408 : Callee(Callee), Caller(Caller), AllocTypes(AllocType), in ContextEdge()
881 addOrUpdateCallerEdge(ContextNode *Caller, AllocationType AllocType, in addOrUpdateCallerEdge() argument
884 if (Edge->Caller == Caller) { in addOrUpdateCallerEdge()
891 this, Caller, (uint8_t)AllocType, DenseSet<uint32_t>({ContextId})); in addOrUpdateCallerEdge()
893 Caller->CalleeEdges.push_back(Edge); in addOrUpdateCallerEdge()
923 findEdgeFromCaller(const ContextNode *Caller) { in findEdgeFromCaller() argument
[all …]
H A DAlwaysInliner.cpp59 Function *Caller = CB->getCaller(); in AlwaysInlineImpl() local
60 OptimizationRemarkEmitter ORE(Caller); in AlwaysInlineImpl()
65 GetBFI ? &GetBFI(*Caller) : nullptr, in AlwaysInlineImpl()
74 << ore::NV("Caller", Caller) in AlwaysInlineImpl()
81 ORE, DLoc, Block, F, *Caller, in AlwaysInlineImpl()
H A DSyntheticCountsPropagation.cpp108 Function *Caller = CB.getCaller(); in run() local
109 auto &BFI = FAM.getResult<BlockFrequencyAnalysis>(*Caller); in run()
117 BBCount *= Counts[Caller]; in run()
H A DPartialInlining.cpp729 Function *Caller = CB.getCaller(); in shouldPartialInline() local
751 << NV("Caller", Caller) in shouldPartialInline()
761 << NV("Caller", Caller) << " because too costly to inline (cost=" in shouldPartialInline()
767 const DataLayout &DL = Caller->getDataLayout(); in shouldPartialInline()
779 << NV("Caller", Caller) << " runtime overhead (overhead=" in shouldPartialInline()
793 << NV("Caller", Caller) << " with cost=" << NV("Cost", IC.getCost()) in shouldPartialInline()
909 auto ComputeCurrBFI = [&,this](Function *Caller) { in computeCallsiteToProfCountMap() argument
912 DominatorTree DT(*Caller); in computeCallsiteToProfCountMap()
914 BranchProbabilityInfo BPI(*Caller, LI); in computeCallsiteToProfCountMap()
915 TempBFI.reset(new BlockFrequencyInfo(*Caller, BPI, LI)); in computeCallsiteToProfCountMap()
[all …]
H A DGlobalDCE.cpp158 void GlobalDCEPass::ScanVTableLoad(Function *Caller, Metadata *TypeId, in ScanVTableLoad() argument
166 *Caller->getParent(), VTable); in ScanVTableLoad()
180 LLVM_DEBUG(dbgs() << "vfunc dep " << Caller->getName() << " -> " in ScanVTableLoad()
182 GVDependencies[Caller].insert(Callee); in ScanVTableLoad()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaCUDA.h168 CUDAFunctionPreference IdentifyPreference(const FunctionDecl *Caller,
176 bool IsAllowedCall(const FunctionDecl *Caller, const FunctionDecl *Callee) { in IsAllowedCall() argument
177 return IdentifyPreference(Caller, Callee) != CFP_Never; in IsAllowedCall()
221 const FunctionDecl *Caller,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAArch64.cpp157 const FunctionDecl *Caller,
165 const FunctionDecl *Caller,
170 const FunctionDecl *Caller,
874 CodeGenModule &CGM, SourceLocation CallLoc, const FunctionDecl *Caller, in checkFunctionCallABIStreaming() argument
876 if (!Caller || !Callee || !Callee->hasAttr<AlwaysInlineAttr>()) in checkFunctionCallABIStreaming()
880 IsArmStreamingFunction(Caller, /*IncludeLocallyStreaming=*/true); in checkFunctionCallABIStreaming()
883 bool CallerIsStreamingCompatible = isStreamingCompatible(Caller); in checkFunctionCallABIStreaming()
892 << Caller->getDeclName() << Callee->getDeclName() << "streaming"; in checkFunctionCallABIStreaming()
903 CodeGenModule &CGM, SourceLocation CallLoc, const FunctionDecl *Caller, in checkFunctionCallABISoftFloat() argument
909 if (!Caller || TI.hasFeature("fp") || ABIInfo.isSoftFloat()) in checkFunctionCallABISoftFloat()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DProfiledCallGraph.h92 ContextTrieNode *Caller = Queue.front();
94 FunctionSamples *CallerSamples = Caller->getFunctionSamples();
102 for (auto &Child : Caller->getAllChildContext()) {
124 addProfiledCall(Caller->getFuncName(), Callee->getFuncName(), Weight);
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DFunctionPropertiesAnalysis.h167 /// a few BBs of the Caller (maybe the entry BB and definitely the callsite BB)
177 return isUpdateValid(Caller, FPI, FAM);
183 Function &Caller;
128 Function &Caller; global() variable
/freebsd/contrib/llvm-project/llvm/lib/Transforms/HipStdPar/
H A DHipStdPar.cpp183 auto Caller = CB->getParent()->getParent(); in checkIfSupported() local
185 Caller->getContext().diagnose( in checkIfSupported()
186 DiagnosticInfoUnsupported(*Caller, W, CB->getDebugLoc(), DS_Error)); in checkIfSupported()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp349 Function *Caller = CS.getInstruction()->getFunction(); in updateImpl() local
350 LLVM_DEBUG(dbgs() << "[AAUniformWorkGroupSize] Call " << Caller->getName() in updateImpl()
354 *this, IRPosition::function(*Caller), DepClassTy::REQUIRED); in updateImpl()
708 Function *Caller = CS.getInstruction()->getFunction(); in updateImplImpl() local
709 LLVM_DEBUG(dbgs() << '[' << getName() << "] Call " << Caller->getName() in updateImplImpl()
713 *this, IRPosition::function(*Caller), DepClassTy::REQUIRED); in updateImplImpl()
852 Function *Caller = CS.getInstruction()->getFunction(); in updateImpl() local
854 LLVM_DEBUG(dbgs() << '[' << getName() << "] Call " << Caller->getName() in updateImpl()
858 *this, IRPosition::function(*Caller), DepClassTy::REQUIRED); in updateImpl()
866 *Caller, in updateImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DWrapperFunctionUtils.h446 static Error call(const CallerFn &Caller, RetT &Result, in call() argument
461 Caller(ArgBuffer.data(), ArgBuffer.size()); in call()
475 static void callAsync(AsyncCallerFn &&Caller, in callAsync() argument
514 Caller(std::move(SendSerializedResult), ArgBuffer.data(), ArgBuffer.size()); in callAsync()
558 static Error call(const CallerFn &Caller, const ArgTs &...Args) { in call() argument
560 return WrapperFunction<SPSEmpty(SPSTagTs...)>::call(Caller, BE, Args...); in call()
565 static void callAsync(AsyncCallerFn &&Caller, in callAsync() argument
569 std::forward<AsyncCallerFn>(Caller), in callAsync()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp337 auto getArgLoc = [&](CallEventRef<> Caller) -> std::optional<SVal> { in computeObjectUnderConstruction() argument
339 Caller->getCalleeStackFrame(BldrCtx->blockCount()); in computeObjectUnderConstruction()
357 const TypedValueRegion *TVR = Caller->getParameterLocation( in computeObjectUnderConstruction()
358 *Caller->getAdjustedParameterIndex(Idx), BldrCtx->blockCount()); in computeObjectUnderConstruction()
366 CallEventRef<> Caller = in computeObjectUnderConstruction() local
368 if (std::optional<SVal> V = getArgLoc(Caller)) in computeObjectUnderConstruction()
375 CallEventRef<> Caller = CEMgr.getCXXConstructorCall( in computeObjectUnderConstruction() local
377 if (std::optional<SVal> V = getArgLoc(Caller)) in computeObjectUnderConstruction()
382 CallEventRef<> Caller = in computeObjectUnderConstruction() local
384 if (std::optional<SVal> V = getArgLoc(Caller)) in computeObjectUnderConstruction()

12345