Home
last modified time | relevance | path

Searched refs:Callee (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp381 CallBase &llvm::versionCallSite(CallBase &CB, Value *Callee, in versionCallSite() argument
388 if (CB.getCalledOperand()->getType() != Callee->getType()) in versionCallSite()
389 Callee = Builder.CreateBitCast(Callee, CB.getCalledOperand()->getType()); in versionCallSite()
390 auto *Cond = Builder.CreateICmpEQ(CB.getCalledOperand(), Callee); in versionCallSite()
395 bool llvm::isLegalToPromote(const CallBase &CB, Function *Callee, in isLegalToPromote() argument
399 auto &DL = Callee->getDataLayout(); in isLegalToPromote()
404 Type *FuncRetTy = Callee->getReturnType(); in isLegalToPromote()
413 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote()
420 if (NumArgs != NumParams && !Callee->isVarArg()) { in isLegalToPromote()
433 if (Callee->hasParamAttribute(I, Attribute::ByVal) != in isLegalToPromote()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DModuleInliner.cpp149 if (Function *Callee = CB->getCalledFunction()) { in run() local
150 if (!Callee->isDeclaration()) in run()
157 << NV("Callee", Callee) << " will not be inlined into " in run()
184 Function &Callee = *CB->getCalledFunction(); in run() local
196 inlineHistoryIncludes(&Callee, InlineHistoryID, InlineHistory)) { in run()
213 &FAM.getResult<BlockFrequencyAnalysis>(Callee)); in run()
232 InlineHistory.push_back({&Callee, InlineHistoryID}); in run()
255 if (Callee.hasLocalLinkage()) { in run()
258 Callee.removeDeadConstantUsers(); in run()
260 if (Callee.use_empty() && !isKnownLibFunction(Callee, GetTLI(Callee))) { in run()
[all …]
H A DInliner.cpp264 if (Function *Callee = CB->getCalledFunction()) { in run() local
265 if (!Callee->isDeclaration()) in run()
272 << NV("Callee", Callee) << " will not be inlined into " in run()
336 Function &Callee = *CB->getCalledFunction(); in run() local
339 inlineHistoryIncludes(&Callee, InlineHistoryID, InlineHistory)) { in run()
341 << " -> " << Callee.getName() << "\n"); in run()
354 LazyCallGraph::SCC *CalleeSCC = CG.lookupSCC(*CG.lookup(Callee)); in run()
358 << F.getName() << " -> " << Callee.getName() << "\n"); in run()
385 &FAM.getResult<BlockFrequencyAnalysis>(Callee)); in run()
396 InlinedCallees.insert(&Callee); in run()
[all …]
H A DMemProfContextDisambiguation.cpp365 ContextEdge *findEdgeFromCallee(const ContextNode *Callee);
396 ContextNode *Callee; member
406 ContextEdge(ContextNode *Callee, ContextNode *Caller, uint8_t AllocType, in ContextEdge()
408 : Callee(Callee), Caller(Caller), AllocTypes(AllocType), in ContextEdge()
903 Edge->Callee->eraseCallerEdge(Edge.get()); in removeNoneTypeCalleeEdges()
913 findEdgeFromCallee(const ContextNode *Callee) { in findEdgeFromCallee() argument
915 if (Edge->Callee == Callee) in findEdgeFromCallee()
1161 Edge->Callee, NewNode, NewAllocType, std::move(NewEdgeContextIds)); in connectNewNode()
1163 NewEdge->Callee->CallerEdges.push_back(NewEdge); in connectNewNode()
1174 Edge->Callee->eraseCallerEdge(Edge.get()); in connectNewNode()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64SMEAttributes.h77 bool requiresSMChange(const SMEAttrs &Callee) const;
102 bool requiresLazySave(const SMEAttrs &Callee) const { in requiresLazySave() argument
103 return hasZAState() && Callee.hasPrivateZAInterface() && in requiresLazySave()
104 !(Callee.Bitmask & SME_ABI_Routine); in requiresLazySave()
130 bool requiresPreservingZT0(const SMEAttrs &Callee) const { in requiresPreservingZT0() argument
131 return hasZT0State() && !Callee.sharesZT0(); in requiresPreservingZT0()
133 bool requiresDisablingZABeforeCall(const SMEAttrs &Callee) const { in requiresDisablingZABeforeCall() argument
134 return hasZT0State() && !hasZAState() && Callee.hasPrivateZAInterface() && in requiresDisablingZABeforeCall()
135 !(Callee.Bitmask & SME_ABI_Routine); in requiresDisablingZABeforeCall()
137 bool requiresEnablingZAAfterCall(const SMEAttrs &Callee) const { in requiresEnablingZAAfterCall() argument
[all …]
H A DAArch64SMEAttributes.cpp91 bool SMEAttrs::requiresSMChange(const SMEAttrs &Callee) const { in requiresSMChange()
92 if (Callee.hasStreamingCompatibleInterface()) in requiresSMChange()
96 if (hasNonStreamingInterfaceAndBody() && Callee.hasNonStreamingInterface()) in requiresSMChange()
100 if (hasStreamingInterfaceOrBody() && Callee.hasStreamingInterface()) in requiresSMChange()
/freebsd/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dtrie-node.h64 for (auto *Callee : Left.Callees) { in mergeTrieNodes()
65 LeftCalleesByFuncId[Callee->FuncId] = Callee; in mergeTrieNodes()
72 for (auto *Callee : Right.Callees) { in mergeTrieNodes()
73 auto iter = LeftCalleesByFuncId.find(Callee->FuncId); in mergeTrieNodes()
76 mergeTrieNodes(*(iter->second), *Callee, Node, NodeStore, MergeFn)); in mergeTrieNodes()
79 Node->Callees.push_back(Callee); in mergeTrieNodes()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAbstractCallSite.cpp36 const Function *Callee = CB.getCalledFunction(); in getCallbackUses() local
37 if (!Callee) in getCallbackUses()
40 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); in getCallbackUses()
86 Function *Callee = CB->getCalledFunction(); in AbstractCallSite() local
87 if (!Callee) { in AbstractCallSite()
93 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); in AbstractCallSite()
138 if (!Callee->isVarArg()) in AbstractCallSite()
151 for (unsigned u = Callee->arg_size(); u < NumCallOperands; u++) in AbstractCallSite()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineAdvisor.cpp84 emitInlinedInto(ORE, DLoc, Block, *Callee, *Caller, IsInliningRecommended, in recordInliningImpl()
95 << "'" << NV("Callee", Callee) << "' is not AlwaysInline into '" in recordUnsuccessfulInliningImpl()
115 << "'" << NV("Callee", Callee) << "' is not inlined into '" in recordUnsuccessfulInliningImpl()
123 emitInlinedIntoBasedOnCost(ORE, DLoc, Block, *Callee, *Caller, *OIC, in recordInliningWithCalleeDeletedImpl()
130 emitInlinedIntoBasedOnCost(ORE, DLoc, Block, *Callee, *Caller, *OIC, in recordInliningImpl()
155 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice() local
156 auto &CalleeTTI = FAM.getResult<TargetIRAnalysis>(Callee); in getDefaultInlineAdvice()
158 Callee.getContext().getDiagHandlerPtr()->isMissedOptRemarkEnabled( in getDefaultInlineAdvice()
179 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
185 Advisor->ImportedFunctionsStats->recordInline(*Caller, *Callee); in recordInlineStatsIfNeeded()
[all …]
H A DStackSafetyAnalysis.cpp102 const CalleeTy *Callee = nullptr; member
106 CallInfo(const CalleeTy *Callee, size_t ParamNo) in CallInfo()
107 : Callee(Callee), ParamNo(ParamNo) {} in CallInfo()
111 return std::tie(L.ParamNo, L.Callee) < std::tie(R.ParamNo, R.Callee); in operator ()()
147 << "@" << Call.first.Callee->getName() << "(arg" << Call.first.ParamNo in operator <<()
529 const GlobalValue *Callee = in analyzeAllUses() local
531 if (!Callee || isa<GlobalIFunc>(Callee)) { in analyzeAllUses()
598 updateOneNode(const CalleeTy * Callee) updateOneNode() argument
623 getArgumentAccessRange(const CalleeTy * Callee,unsigned ParamNo,const ConstantRange & Offsets) const getArgumentAccessRange() argument
664 updateOneNode(const CalleeTy * Callee,FunctionInfo<CalleeTy> & FS) updateOneNode() argument
695 for (auto &Callee : Callees) runDataFlow() local
702 const CalleeTy *Callee = WorkList.pop_back_val(); runDataFlow() local
[all...]
H A DReplayInlineAdvisor.cpp60 StringRef Callee = CalleeCaller.first.rsplit(": '").second; in ReplayInlineAdvisor() local
65 if (Callee.empty() || Caller.empty() || CallSite.empty()) { in ReplayInlineAdvisor()
70 std::string Combined = (Callee + CallSite).str(); in ReplayInlineAdvisor()
111 StringRef Callee = CB.getCalledFunction()->getName(); in getAdviceImpl() local
112 std::string Combined = (Callee + CallSiteLoc).str(); in getAdviceImpl()
118 LLVM_DEBUG(dbgs() << "Replay Inliner: Inlined " << Callee << " @ " in getAdviceImpl()
124 LLVM_DEBUG(dbgs() << "Replay Inliner: Not Inlined " << Callee << " @ " in getAdviceImpl()
H A DCallGraph.cpp101 const Function *Callee = Call->getCalledFunction(); in populateCallGraphNode() local
102 if (!Callee) in populateCallGraphNode()
104 else if (!isDbgInfoIntrinsic(Callee->getIntrinsicID())) in populateCallGraphNode()
105 Node->addCalledFunction(Call, getOrInsertFunction(Callee)); in populateCallGraphNode()
229 void CallGraphNode::removeAnyCallEdgeTo(CallGraphNode *Callee) { in removeAnyCallEdgeTo() argument
231 if (CalledFunctions[i].second == Callee) { in removeAnyCallEdgeTo()
232 Callee->DropRef(); in removeAnyCallEdgeTo()
241 void CallGraphNode::removeOneAbstractEdgeTo(CallGraphNode *Callee) { in removeOneAbstractEdgeTo() argument
245 if (CR.second == Callee && !CR.first) { in removeOneAbstractEdgeTo()
246 Callee->DropRef(); in removeOneAbstractEdgeTo()
H A DMLInlineAdvisor.cpp131 if (Function *Callee = CS->getCalledFunction()) { in getInlinableCS() local
132 if (!Callee->isDeclaration()) { in getInlinableCS()
286 Function *Callee = Advice.getCallee(); in onSuccessfulInlining() local
315 NodesInLastSCC.erase(CG.lookup(*Callee)); in onSuccessfulInlining()
316 DeadFunctions.insert(Callee); in onSuccessfulInlining()
319 getCachedFPI(*Callee).DirectCallsToDefinedFunctions; in onSuccessfulInlining()
347 auto &Callee = *CB.getCalledFunction(); in getAdviceImpl() local
352 auto &TIR = FAM.getResult<TargetIRAnalysis>(Callee); in getAdviceImpl()
366 &Caller == &Callee) in getAdviceImpl()
410 auto &CalleeBefore = getCachedFPI(Callee); in getAdviceImpl()
[all …]
H A DSyntheticCountsUtils.cpp56 auto Callee = CGT::edge_dest(E.second); in propagateFromSCC() local
57 AdditionalCounts[Callee] += *OptProfCount; in propagateFromSCC()
69 auto Callee = CGT::edge_dest(E.second); in propagateFromSCC() local
70 AddCount(Callee, *OptProfCount); in propagateFromSCC()
H A DMemoryBuiltins.cpp172 if (const Function *Callee = CB->getCalledFunction()) in getCalledFunction() local
173 return Callee; in getCalledFunction()
180 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, in getAllocationDataForFunction() argument
184 if (!Callee->getReturnType()->isPointerTy()) in getAllocationDataForFunction()
189 if (!TLI || !TLI->getLibFunc(*Callee, TLIFn) || !TLI->has(TLIFn)) in getAllocationDataForFunction()
207 FunctionType *FTy = Callee->getFunctionType(); in getAllocationDataForFunction()
225 if (const Function *Callee = getCalledFunction(V, IsNoBuiltinCall)) in getAllocationData() local
227 return getAllocationDataForFunction(Callee, AllocTy, TLI); in getAllocationData()
235 if (const Function *Callee = getCalledFunction(V, IsNoBuiltinCall)) in getAllocationData() local
238 Callee, AllocTy, &GetTLI(const_cast<Function &>(*Callee))); in getAllocationData()
[all …]
H A DCallGraphSCCPass.cpp289 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph() local
291 if (!Callee || !(Callee->isIntrinsic())) in RefreshCallGraph()
306 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph() local
307 if (Callee && Callee->isIntrinsic()) in RefreshCallGraph()
348 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph() local
349 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
355 << Callee->getName() << "'\n"); in RefreshCallGraph()
372 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph() local
373 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DCheckExprLifetime.cpp272 static bool shouldTrackImplicitObjectArg(const CXXMethodDecl *Callee) { in shouldTrackImplicitObjectArg() argument
273 if (auto *Conv = dyn_cast_or_null<CXXConversionDecl>(Callee)) in shouldTrackImplicitObjectArg()
276 if (!isInStlNamespace(Callee->getParent())) in shouldTrackImplicitObjectArg()
279 Callee->getFunctionObjectParameterType()) && in shouldTrackImplicitObjectArg()
280 !isRecordWithAttr<OwnerAttr>(Callee->getFunctionObjectParameterType())) in shouldTrackImplicitObjectArg()
282 if (Callee->getReturnType()->isPointerType() || in shouldTrackImplicitObjectArg()
283 isRecordWithAttr<PointerAttr>(Callee->getReturnType())) { in shouldTrackImplicitObjectArg()
284 if (!Callee->getIdentifier()) in shouldTrackImplicitObjectArg()
286 return llvm::StringSwitch<bool>(Callee->getName()) in shouldTrackImplicitObjectArg()
293 } else if (Callee->getReturnType()->isReferenceType()) { in shouldTrackImplicitObjectArg()
[all …]
H A DSemaCUDA.cpp228 const FunctionDecl *Callee) { in IdentifyPreference() argument
229 assert(Callee && "Callee must be valid."); in IdentifyPreference()
236 (isa<CXXConstructorDecl>(Callee) || isa<CXXDestructorDecl>(Callee))) in IdentifyPreference()
240 CUDAFunctionTarget CalleeTarget = IdentifyTarget(Callee); in IdentifyPreference()
707 const FunctionDecl *Callee) { in RecordImplicitHostDeviceFuncUsedByDevice() argument
712 if (!isImplicitHostDeviceFunction(Callee)) in RecordImplicitHostDeviceFuncUsedByDevice()
725 getASTContext().CUDAImplicitHostDeviceFunUsedByDevice.insert(Callee); in RecordImplicitHostDeviceFuncUsedByDevice()
882 bool SemaCUDA::CheckCall(SourceLocation Loc, FunctionDecl *Callee) { in CheckCall() argument
884 assert(Callee && "Callee may not be null."); in CheckCall()
900 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCall()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCallPromotionUtils.h34 bool isLegalToPromote(const CallBase &CB, Function *Callee,
44 CallBase &promoteCall(CallBase &CB, Function *Callee,
56 CallBase &promoteCallWithIfThenElse(CallBase &CB, Function *Callee,
71 Function *Callee,
105 CallBase &versionCallSite(CallBase &CB, Value *Callee, MDNode *BranchWeights);
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DProfiledCallGraph.h86 ContextTrieNode *Callee = &Child.second;
87 addProfiledFunction(Callee->getFuncName()); variable
88 Queue.push(Callee);
103 ContextTrieNode *Callee = &Child.second;
104 addProfiledFunction(Callee->getFuncName()); variable
105 Queue.push(Callee);
109 FunctionSamples *CalleeSamples = Callee->getFunctionSamples();
115 LineLocation Callsite = Callee->getCallSiteLoc();
124 addProfiledCall(Caller->getFuncName(), Callee->getFuncName(), Weight);
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_function_call_trie.h392 auto* Callee = TopNode->Callees.find_element( in enterFunction() local
394 if (Callee != nullptr) { in enterFunction()
395 CHECK_NE(Callee->NodePtr, nullptr); in enterFunction()
396 if (ShadowStack.AppendEmplace(TSC, Callee->NodePtr, CPU) == nullptr) in enterFunction()
513 for (const auto Callee : NP.Node->Callees) { in deepCopyInto() local
516 Callee.NodePtr->CallCount, Callee.NodePtr->CumulativeLocalTime, in deepCopyInto()
517 Callee.FId); in deepCopyInto()
520 if (UNLIKELY(NP.NewNode->Callees.AppendEmplace(NewNode, Callee.FId) == in deepCopyInto()
523 if (UNLIKELY(DFSStack.AppendEmplace(Callee.NodePtr, NewNode) == in deepCopyInto()
574 for (const auto Callee : NT.OrigNode->Callees) { in mergeInto() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedCallArgsChecker.cpp149 const auto *Callee = CE->getDirectCallee(); in shouldSkipCall() local
154 if (Callee && TFA.isTrivial(Callee)) in shouldSkipCall()
178 if (!Callee) in shouldSkipCall()
181 if (isMethodOnWTFContainerType(Callee)) in shouldSkipCall()
184 auto overloadedOperatorType = Callee->getOverloadedOperator(); in shouldSkipCall()
194 if (isCtorOfRefCounted(Callee)) in shouldSkipCall()
197 auto name = safeGetName(Callee); in shouldSkipCall()
H A DPtrTypesSemantics.cpp390 auto *Callee = CE->getDirectCallee(); in VisitCallExpr() local
391 if (!Callee) in VisitCallExpr()
393 const auto &Name = safeGetName(Callee); in VisitCallExpr()
395 if (Callee->isInStdNamespace() && in VisitCallExpr()
408 return IsFunctionTrivial(Callee); in VisitCallExpr()
434 auto *Callee = MCE->getMethodDecl(); in VisitCXXMemberCallExpr() local
435 if (!Callee) in VisitCXXMemberCallExpr()
438 std::optional<bool> IsGetterOfRefCounted = isGetterOfRefCounted(Callee); in VisitCXXMemberCallExpr()
443 return IsFunctionTrivial(Callee); in VisitCXXMemberCallExpr()
449 auto *Callee = OCE->getCalleeDecl(); in VisitCXXOperatorCallExpr() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp126 Function *Callee = Call->getCalledFunction(); in runNVVMReflect() local
127 if (!Callee || (Callee->getName() != NVVM_REFLECT_FUNCTION && in runNVVMReflect()
128 Callee->getName() != NVVM_REFLECT_OCL_FUNCTION && in runNVVMReflect()
129 Callee->getIntrinsicID() != Intrinsic::nvvm_reflect)) in runNVVMReflect()
/freebsd/contrib/llvm-project/clang/lib/Analysis/plugins/SampleAnalyzer/
H A DMainCallChecker.cpp20 const Expr *Callee = CE->getCallee(); in checkPreStmt() local
21 const FunctionDecl *FD = C.getSVal(Callee).getAsFunctionDecl(); in checkPreStmt()
41 report->addRange(Callee->getSourceRange()); in checkPreStmt()

12345678910>>...13