Home
last modified time | relevance | path

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

1234567891011

/external/llvm-project/llvm/lib/Analysis/
DInlineAdvisor.cpp67 << NV("Caller", Caller) << ": " in recordUnsuccessfulInliningImpl()
73 emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, *OIC); in recordInliningWithCalleeDeletedImpl()
77 emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, *OIC); in recordInliningImpl()
89 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice() local
91 FAM.getResult<ModuleAnalysisManagerFunctionProxy>(Caller) in getDefaultInlineAdvice()
95 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getDefaultInlineAdvice()
130 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
188 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred() argument
191 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred()
219 bool ApplyLastCallBonus = Caller->hasLocalLinkage() && !Caller->hasOneUse(); in shouldBeDeferred()
[all …]
DMLInlineAdvisor.cpp133 Function *Caller = Advice.getCaller(); in onSuccessfulInlining() local
137 FAM.invalidate<FunctionPropertiesAnalysis>(*Caller); in onSuccessfulInlining()
139 getIRSize(*Caller) + (CalleeWasDeleted ? 0 : Advice.CalleeIRSize); in onSuccessfulInlining()
150 FAM.getResult<FunctionPropertiesAnalysis>(*Caller) in onSuccessfulInlining()
172 auto &Caller = *CB.getCaller(); in getAdvice() local
179 auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(Caller); in getAdvice()
187 &Caller == &Callee) in getAdvice()
224 auto &CallerBefore = FAM.getResult<FunctionPropertiesAnalysis>(Caller); in getAdvice()
230 FunctionLevels[&Caller]); in getAdvice()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp82 Function *Caller = CS.getCaller(); in InlineCallIfPossible() local
97 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); in InlineCallIfPossible()
191 const DataLayout &DL = Caller->getParent()->getDataLayout(); in InlineCallIfPossible()
226 Function *Caller = CS.getCaller(); in emitAnalysis() local
227 LLVMContext &Ctx = Caller->getContext(); in emitAnalysis()
229 emitOptimizationRemarkAnalysis(Ctx, DEBUG_TYPE, *Caller, DLoc, Msg); in emitAnalysis()
232 bool Inliner::shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC, in shouldBeDeferred() argument
236 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred()
258 bool callerWillBeRemoved = Caller->hasLocalLinkage(); in shouldBeDeferred()
261 for (User *U : Caller->users()) { in shouldBeDeferred()
[all …]
/external/llvm-project/llvm/unittests/Analysis/
DMemoryBuiltinsTest.cpp35 std::unique_ptr<CallInst> Caller( in TEST() local
39 EXPECT_FALSE(isNoAliasFn(Caller.get(), TLI)); in TEST()
40 EXPECT_FALSE(isMallocLikeFn(Caller.get(), TLI)); in TEST()
41 EXPECT_FALSE(isCallocLikeFn(Caller.get(), TLI)); in TEST()
42 EXPECT_FALSE(isAllocLikeFn(Caller.get(), TLI)); in TEST()
47 EXPECT_FALSE(isAllocationFn(Caller.get(), TLI)); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DNonTrivialTypesLibcMemoryCallsCheck.cpp130 if (const auto *Caller = Result.Nodes.getNodeAs<CallExpr>("lazyConstruct")) { in check() local
131 diag(Caller->getBeginLoc(), "calling %0 on a non-trivially default " in check()
133 << cast<NamedDecl>(Caller->getCalleeDecl()); in check()
135 if (const auto *Caller = Result.Nodes.getNodeAs<CallExpr>("lazyCopy")) { in check() local
136 diag(Caller->getBeginLoc(), in check()
138 << cast<NamedDecl>(Caller->getCalleeDecl()); in check()
140 if (const auto *Caller = Result.Nodes.getNodeAs<CallExpr>("lazyCompare")) { in check() local
141 diag(Caller->getBeginLoc(), in check()
143 << cast<NamedDecl>(Caller->getCalleeDecl()); in check()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DInliner.cpp162 Function *Caller, InlineFunctionInfo &IFI, in mergeInlinedArrayAllocas() argument
234 const DataLayout &DL = Caller->getParent()->getDataLayout(); in mergeInlinedArrayAllocas()
280 Function *Caller = CS.getCaller(); in InlineCallIfPossible() local
291 ImportedFunctionsStats.recordInline(*Caller, *Callee); in InlineCallIfPossible()
293 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); in InlineCallIfPossible()
296 mergeInlinedArrayAllocas(Caller, IFI, InlinedArrayAllocas, InlineHistory); in InlineCallIfPossible()
307 shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC, in shouldBeDeferred() argument
311 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred()
339 bool ApplyLastCallBonus = Caller->hasLocalLinkage() && !Caller->hasOneUse(); in shouldBeDeferred()
342 for (User *U : Caller->users()) { in shouldBeDeferred()
[all …]
/external/swiftshader/third_party/llvm-10.0/configs/common/lib/IR/
DAttributesCompatFunc.inc529 static inline bool hasCompatibleFnAttrs(const Function &Caller,
533 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
534 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
535 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
536 Ret &= isEqual<SanitizeHWAddressAttr>(Caller, Callee);
537 Ret &= isEqual<SanitizeMemTagAttr>(Caller, Callee);
538 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
539 Ret &= isEqual<ShadowCallStackAttr>(Caller, Callee);
544 static inline void mergeFnAttrs(Function &Caller,
546 setAND<UnsafeFPMathAttr>(Caller, Callee);
[all …]
/external/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
DAttributes.inc529 static inline bool hasCompatibleFnAttrs(const Function &Caller,
533 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
534 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
535 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
536 Ret &= isEqual<SanitizeHWAddressAttr>(Caller, Callee);
537 Ret &= isEqual<SanitizeMemTagAttr>(Caller, Callee);
538 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
539 Ret &= isEqual<ShadowCallStackAttr>(Caller, Callee);
544 static inline void mergeFnAttrs(Function &Caller,
546 setAND<UnsafeFPMathAttr>(Caller, Callee);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAnnotateKernelFeatures.cpp52 bool propagateUniformWorkGroupAttribute(Function &Caller, Function &Callee);
218 Function *Caller = Node->getFunction(); in processUniformWorkGroupAttribute() local
223 Changed = propagateUniformWorkGroupAttribute(*Caller, *Callee); in processUniformWorkGroupAttribute()
231 Function &Caller, Function &Callee) { in propagateUniformWorkGroupAttribute() argument
236 if (!Caller.hasFnAttribute("uniform-work-group-size")) in propagateUniformWorkGroupAttribute()
237 Caller.addFnAttr("uniform-work-group-size", "false"); in propagateUniformWorkGroupAttribute()
242 if (Caller.hasFnAttribute("uniform-work-group-size")) { in propagateUniformWorkGroupAttribute()
244 if (Caller.getFnAttribute("uniform-work-group-size") in propagateUniformWorkGroupAttribute()
257 Caller.addFnAttr("uniform-work-group-size", "false"); in propagateUniformWorkGroupAttribute()
DAMDGPUInline.cpp112 Function *Caller = CS.getCaller(); in getInlineThreshold() local
119 && !Caller->hasFnAttribute(Attribute::MinSize)) in getInlineThreshold()
123 const DataLayout &DL = Caller->getParent()->getDataLayout(); in getInlineThreshold()
179 Function *Caller = CS.getCaller(); in getInlineCost() local
188 if (!TTI.areInlineCompatible(Caller, Callee)) in getInlineCost()
204 const auto &BBs = Caller->getBasicBlockList(); in getInlineCost()
211 OptimizationRemarkEmitter ORE(Caller); in getInlineCost()
223 size_t Size = Caller->size() + Callee->size() - 1; in getInlineCost()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUInline.cpp111 Function *Caller = CB.getCaller(); in getInlineThreshold() local
118 && !Caller->hasFnAttribute(Attribute::MinSize)) in getInlineThreshold()
122 const DataLayout &DL = Caller->getParent()->getDataLayout(); in getInlineThreshold()
178 Function *Caller = CB.getCaller(); in getInlineCost() local
187 if (!TTI.areInlineCompatible(Caller, Callee)) in getInlineCost()
203 const auto &BBs = Caller->getBasicBlockList(); in getInlineCost()
210 OptimizationRemarkEmitter ORE(Caller); in getInlineCost()
221 size_t Size = Caller->size() + Callee->size() - 1; in getInlineCost()
DAMDGPUAnnotateKernelFeatures.cpp51 bool propagateUniformWorkGroupAttribute(Function &Caller, Function &Callee);
231 Function *Caller = Node->getFunction(); in processUniformWorkGroupAttribute() local
236 Changed = propagateUniformWorkGroupAttribute(*Caller, *Callee); in processUniformWorkGroupAttribute()
244 Function &Caller, Function &Callee) { in propagateUniformWorkGroupAttribute() argument
249 if (!Caller.hasFnAttribute("uniform-work-group-size")) in propagateUniformWorkGroupAttribute()
250 Caller.addFnAttr("uniform-work-group-size", "false"); in propagateUniformWorkGroupAttribute()
255 if (Caller.hasFnAttribute("uniform-work-group-size")) { in propagateUniformWorkGroupAttribute()
257 if (Caller.getFnAttribute("uniform-work-group-size") in propagateUniformWorkGroupAttribute()
270 Caller.addFnAttr("uniform-work-group-size", "false"); in propagateUniformWorkGroupAttribute()
/external/llvm-project/clang/lib/AST/Interp/
DInterpFrame.cpp20 InterpFrame::InterpFrame(InterpState &S, Function *Func, InterpFrame *Caller, in InterpFrame() argument
22 : Caller(Caller), S(S), Func(Func), This(std::move(This)), RetPC(RetPC), in InterpFrame()
140 if (Caller->Caller) in getCaller()
141 return Caller; in getCaller()
146 if (!Caller->Func) in getCallLocation()
148 return S.getLocation(Caller->Func, RetPC - sizeof(uintptr_t)); in getCallLocation()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp512 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedLandingPad() local
521 for (Function::iterator I = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
538 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
568 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedEHPad() local
599 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedEHPad()
614 ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
647 UnwindDestToken = ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
676 E = Caller->end(); in HandleInlinedEHPad()
1100 const Function *Caller = CS.getInstruction()->getParent()->getParent(); in UpdateCallGraphAfterInlining() local
1103 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaCUDA.cpp164 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument
167 CUDAFunctionTarget CallerTarget = IdentifyCUDATarget(Caller); in IdentifyCUDAPreference()
230 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
239 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches()
710 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CheckCUDACall() local
711 if (!Caller) in CheckCUDACall()
717 getEmissionStatus(Caller) == FunctionEmissionStatus::Emitted; in CheckCUDACall()
718 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall()
720 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall()
723 assert(Caller && "Never/wrongSide calls require a non-null caller"); in CheckCUDACall()
[all …]
/external/clang/lib/Sema/
DSemaCUDA.cpp95 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument
100 (Caller != nullptr) ? IdentifyCUDATarget(Caller) : Sema::CFT_Host; in IdentifyCUDAPreference()
150 Sema &S, const FunctionDecl *Caller, llvm::SmallVectorImpl<T> &Matches, in EraseUnwantedCUDAMatchesImpl() argument
157 return S.IdentifyCUDAPreference(Caller, FetchDecl(Match)); in EraseUnwantedCUDAMatchesImpl()
172 void Sema::EraseUnwantedCUDAMatches(const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
175 *this, Caller, Matches, [](const FunctionDecl *item) { return item; }); in EraseUnwantedCUDAMatches()
178 void Sema::EraseUnwantedCUDAMatches(const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
181 *this, Caller, Matches, [](const DeclAccessPair &item) { in EraseUnwantedCUDAMatches()
187 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
190 *this, Caller, Matches, in EraseUnwantedCUDAMatches()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DInlineFunction.cpp588 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedLandingPad() local
597 for (Function::iterator I = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
614 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
644 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedEHPad() local
675 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedEHPad()
690 ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
723 UnwindDestToken = ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
752 E = Caller->end(); in HandleInlinedEHPad()
1184 const Function *Caller = CS.getCaller(); in UpdateCallGraphAfterInlining() local
1187 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DInlineFunction.cpp595 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedLandingPad() local
604 for (Function::iterator I = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
621 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad()
651 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedEHPad() local
682 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedEHPad()
697 ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
730 UnwindDestToken = ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad()
759 E = Caller->end(); in HandleInlinedEHPad()
1271 const Function *Caller = CB.getCaller(); in UpdateCallGraphAfterInlining() local
1274 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributes.cpp1723 static bool isEqual(const Function &Caller, const Function &Callee) { in isEqual() argument
1724 return Caller.getFnAttribute(AttrClass::getKind()) == in isEqual()
1734 static void setAND(Function &Caller, const Function &Callee) { in setAND() argument
1735 if (AttrClass::isSet(Caller, AttrClass::getKind()) && in setAND()
1737 AttrClass::set(Caller, AttrClass::getKind(), false); in setAND()
1746 static void setOR(Function &Caller, const Function &Callee) { in setOR() argument
1747 if (!AttrClass::isSet(Caller, AttrClass::getKind()) && in setOR()
1749 AttrClass::set(Caller, AttrClass::getKind(), true); in setOR()
1754 static void adjustCallerSSPLevel(Function &Caller, const Function &Callee) { in adjustCallerSSPLevel() argument
1764 Caller.removeAttributes(AttributeList::FunctionIndex, OldSSPAttr); in adjustCallerSSPLevel()
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/
DAttributes.gen435 static inline bool hasCompatibleFnAttrs(const Function &Caller,
439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
442 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
447 static inline void mergeFnAttrs(Function &Caller,
449 adjustCallerSSPLevel(Caller, Callee);
450 setAND<LessPreciseFPMADAttr>(Caller, Callee);
451 setAND<NoInfsFPMathAttr>(Caller, Callee);
452 setAND<NoNansFPMathAttr>(Caller, Callee);
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/
DAttributes.gen435 static inline bool hasCompatibleFnAttrs(const Function &Caller,
439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
442 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
447 static inline void mergeFnAttrs(Function &Caller,
449 adjustCallerSSPLevel(Caller, Callee);
450 setAND<LessPreciseFPMADAttr>(Caller, Callee);
451 setAND<NoInfsFPMathAttr>(Caller, Callee);
452 setAND<NoNansFPMathAttr>(Caller, Callee);
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/IR/
DAttributes.gen435 static inline bool hasCompatibleFnAttrs(const Function &Caller,
439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
442 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
447 static inline void mergeFnAttrs(Function &Caller,
449 adjustCallerSSPLevel(Caller, Callee);
450 setAND<LessPreciseFPMADAttr>(Caller, Callee);
451 setAND<NoInfsFPMathAttr>(Caller, Callee);
452 setAND<NoNansFPMathAttr>(Caller, Callee);
[all …]
/external/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/
DAttributes.gen435 static inline bool hasCompatibleFnAttrs(const Function &Caller,
439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
442 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
447 static inline void mergeFnAttrs(Function &Caller,
449 adjustCallerSSPLevel(Caller, Callee);
450 setAND<LessPreciseFPMADAttr>(Caller, Callee);
451 setAND<NoInfsFPMathAttr>(Caller, Callee);
452 setAND<NoNansFPMathAttr>(Caller, Callee);
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/
DAttributes.gen435 static inline bool hasCompatibleFnAttrs(const Function &Caller,
439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
442 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
447 static inline void mergeFnAttrs(Function &Caller,
449 adjustCallerSSPLevel(Caller, Callee);
450 setAND<LessPreciseFPMADAttr>(Caller, Callee);
451 setAND<NoInfsFPMathAttr>(Caller, Callee);
452 setAND<NoNansFPMathAttr>(Caller, Callee);
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc435 static inline bool hasCompatibleFnAttrs(const Function &Caller,
439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee);
440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee);
441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee);
442 Ret &= isEqual<SafeStackAttr>(Caller, Callee);
447 static inline void mergeFnAttrs(Function &Caller,
449 adjustCallerSSPLevel(Caller, Callee);
450 setAND<LessPreciseFPMADAttr>(Caller, Callee);
451 setAND<NoInfsFPMathAttr>(Caller, Callee);
452 setAND<NoNansFPMathAttr>(Caller, Callee);
[all …]

1234567891011