/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | CallPromotionUtils.h | 21 /// Return true if the given indirect call site can be made to call \p Callee. 28 bool isLegalToPromote(CallSite CS, Function *Callee, 31 /// Promote the given indirect call site to unconditionally call \p Callee. 38 Instruction *promoteCall(CallSite CS, Function *Callee, 41 /// Promote the given indirect call site to conditionally call \p Callee. 48 Instruction *promoteCallWithIfThenElse(CallSite CS, Function *Callee,
|
H A D | ImportedFunctionsInliningStatistics.h | 70 /// Record inline of @param Callee to @param Caller for statistis. 71 void recordInline(const Function &Caller, const Function &Callee);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUFixFunctionBitcasts.cpp | 37 auto Callee = dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts()); 38 if (Callee && isLegalToPromote(CS, Callee)) { 39 promoteCall(CS, Callee);
|
H A D | AMDGPUAnnotateKernelFeatures.cpp | 52 bool propagateUniformWorkGroupAttribute(Function &Caller, Function &Callee); 188 static bool handleAttr(Function &Parent, const Function &Callee, argument 190 if (Callee.hasFnAttribute(Name)) { 197 static void copyFeaturesToFunction(Function &Parent, const Function &Callee, argument 207 if (handleAttr(Parent, Callee, "amdgpu-queue-ptr")) 211 handleAttr(Parent, Callee, AttrName); 221 Function *Callee = std::get<1>(I)->getFunction(); local 222 if (Callee) 223 Changed = propagateUniformWorkGroupAttribute(*Caller, *Callee); 231 Function &Caller, Function &Callee) { 230 propagateUniformWorkGroupAttribute( Function &Caller, Function &Callee) argument 279 Function *Callee = CS.getCalledFunction(); local [all...] |
H A D | AMDGPUInline.cpp | 115 Function *Callee = CS.getCalledFunction(); local 116 bool InlineHint = Callee && !Callee->isDeclaration() && 117 Callee->hasFnAttribute(Attribute::InlineHint); 121 TTIWP->getTTI(*Callee).getInliningThresholdMultiplier(); 124 if (!Callee) 160 Function *Callee = CS.getCalledFunction(); local 161 if (!Callee || Callee->size() != 1) 163 const BasicBlock &BB = Callee 178 Function *Callee = CS.getCalledFunction(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-xray/ |
H A D | trie-node.h | 64 for (auto *Callee : Left.Callees) { 65 LeftCalleesByFuncId[Callee->FuncId] = Callee; 72 for (auto *Callee : Right.Callees) { 73 auto iter = LeftCalleesByFuncId.find(Callee->FuncId); 76 mergeTrieNodes(*(iter->second), *Callee, Node, NodeStore, MergeFn)); 79 Node->Callees.push_back(Callee);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/plugins/SampleAnalyzer/ |
H A D | MainCallChecker.cpp | 20 const Expr *Callee = CE->getCallee(); local 21 const FunctionDecl *FD = C.getSVal(Callee).getAsFunctionDecl(); 41 report->addRange(Callee->getSourceRange());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | AbstractCallSite.cpp | 38 const Function *Callee = ICS.getCalledFunction(); local 39 if (!Callee) 42 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); 86 Function *Callee = CS.getCalledFunction(); local 87 if (!Callee) { 93 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); 138 if (!Callee->isVarArg()) 151 for (unsigned u = Callee->arg_size(); u < NumCallOperands; u++)
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CallPromotionUtils.cpp | 256 static Instruction *versionCallSite(CallSite CS, Value *Callee, argument 265 if (CS.getCalledValue()->getType() != Callee->getType()) 266 Callee = Builder.CreateBitCast(Callee, CS.getCalledValue()->getType()); 267 auto *Cond = Builder.CreateICmpEQ(CS.getCalledValue(), Callee); 319 bool llvm::isLegalToPromote(CallSite CS, Function *Callee, argument 323 auto &DL = Callee->getParent()->getDataLayout(); 328 Type *FuncRetTy = Callee->getReturnType(); 337 unsigned NumParams = Callee->getFunctionType()->getNumParams(); 341 if (CS.arg_size() != NumParams && !Callee 365 promoteCall(CallSite CS, Function *Callee, CastInst **RetBitCast) argument 449 promoteCallWithIfThenElse(CallSite CS, Function *Callee, MDNode *BranchWeights) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | SyntheticCountsUtils.cpp | 60 auto Callee = CGT::edge_dest(E.second); local 61 AdditionalCounts[Callee] += OptProfCount.getValue(); 73 auto Callee = CGT::edge_dest(E.second); local 74 AddCount(Callee, OptProfCount.getValue());
|
H A D | CallGraph.cpp | 77 const Function *Callee = Call->getCalledFunction(); local 78 if (!Callee || !Intrinsic::isLeaf(Callee->getIntrinsicID())) 83 else if (!Callee->isIntrinsic()) 84 Node->addCalledFunction(Call, getOrInsertFunction(Callee)); 202 void CallGraphNode::removeAnyCallEdgeTo(CallGraphNode *Callee) { argument 204 if (CalledFunctions[i].second == Callee) { 205 Callee->DropRef(); 214 void CallGraphNode::removeOneAbstractEdgeTo(CallGraphNode *Callee) { argument 218 if (CR.second == Callee [all...] |
H A D | StackSafetyAnalysis.cpp | 61 const GlobalValue *Callee = nullptr; member in struct:__anon1653::PassAsArgInfo 69 PassAsArgInfo(const GlobalValue *Callee, size_t ParamNo, ConstantRange Offset) argument 70 : Callee(Callee), ParamNo(ParamNo), Offset(Offset) {} 72 StringRef getName() const { return Callee->getName(); } 338 const GlobalValue *Callee = local 340 if (!Callee) { 345 assert(isa<Function>(Callee) || isa<GlobalAlias>(Callee)); 351 US.Calls.emplace_back(Callee, 412 updateOneNode(const GlobalValue *Callee) argument 445 getArgumentAccessRange(const GlobalValue *Callee, unsigned ParamNo) const argument 481 updateOneNode( const GlobalValue *Callee, StackSafetyInfo::FunctionInfo &FS) argument 527 const GlobalValue *Callee = WorkList.back(); local [all...] |
H A D | MemoryBuiltins.cpp | 126 if (const Function *Callee = CS.getCalledFunction()) 127 return Callee; 135 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, argument 138 StringRef FnName = Callee->getName(); 158 FunctionType *FTy = Callee->getFunctionType(); 176 if (const Function *Callee = 179 return getAllocationDataForFunction(Callee, AllocTy, TLI); 188 if (const Function *Callee = 192 Callee, AllocTy, &GetTLI(const_cast<Function &>(*Callee))); 199 const Function *Callee = local 464 const Function *Callee = local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | Inliner.cpp | 279 Function *Callee = CS.getCalledFunction(); local 282 AAResults &AAR = AARGetter(*Callee); 291 ImportedFunctionsStats.recordInline(*Caller, *Callee); 293 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); 425 Function *Callee = CS.getCalledFunction(); local 439 << NV("Callee", Callee) << " not inlined into " 451 << NV("Callee", Callee) << " not inlined into " 465 << "Not inlining. Cost of inlining " << NV("Callee", Calle 507 emit_inlined_into(OptimizationRemarkEmitter &ORE, DebugLoc &DLoc, const BasicBlock *Block, const Function &Callee, const Function &Caller, const InlineCost &IC) argument 622 Function *Callee = CS.getCalledFunction(); local [all...] |
H A D | AlwaysInliner.cpp | 155 Function *Callee = CS.getCalledFunction(); local 159 if (!Callee) 163 if (Callee->isDeclaration()) 169 auto IsViable = isInlineViable(*Callee);
|
H A D | PruneEH.cpp | 127 if (Function *Callee = CI->getCalledFunction()) { 128 CallGraphNode *CalleeNode = CG[Callee]; 247 const Function *Callee = Call->getCalledFunction(); local 248 if (!Callee || !Intrinsic::isLeaf(Callee->getIntrinsicID())) 250 else if (!Callee->isIntrinsic())
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | NoReturnFunctionChecker.cpp | 47 const Expr *Callee = CE.getOriginExpr(); local 48 if (!BuildSinks && Callee) 49 BuildSinks = getFunctionExtInfo(Callee->getType()).getNoReturn();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | ValueProfilePlugins.inc | 62 Value *Callee = CallSite(I).getCalledValue(); 65 Candidates.emplace_back(CandidateInfo{Callee, InsertPt, AnnotatedInst});
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVVMReflect.cpp | 119 Function *Callee = Call->getCalledFunction(); local 120 if (!Callee || (Callee->getName() != NVVM_REFLECT_FUNCTION && 121 Callee->getIntrinsicID() != Intrinsic::nvvm_reflect))
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARCAPElim.cpp | 72 if (const Function *Callee = CS.getCalledFunction()) { 73 if (!Callee->hasExactDefinition()) 75 for (const BasicBlock &BB : *Callee) {
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_function_call_trie.h | 396 auto* Callee = TopNode->Callees.find_element( variable 398 if (Callee != nullptr) { 399 CHECK_NE(Callee->NodePtr, nullptr); 400 if (ShadowStack.AppendEmplace(TSC, Callee->NodePtr, CPU) == nullptr) 517 for (const auto Callee : NP.Node->Callees) { 520 Callee.NodePtr->CallCount, Callee.NodePtr->CumulativeLocalTime, 521 Callee.FId); 524 if (UNLIKELY(NP.NewNode->Callees.AppendEmplace(NewNode, Callee.FId) == 527 if (UNLIKELY(DFSStack.AppendEmplace(Callee [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCUDA.cpp | 163 const FunctionDecl *Callee) { 164 assert(Callee && "Callee must be valid."); 166 CUDAFunctionTarget CalleeTarget = IdentifyCUDATarget(Callee); 659 bool Sema::CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee) { 661 assert(Callee && "Callee may not be null."); 680 if (!shouldIgnoreInHostDeviceCheck(Callee)) 682 *this, Caller, Callee, Loc, [](Sema &S, FunctionDecl *FD) { 692 if (!shouldIgnoreInHostDeviceCheck(Callee)) [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 268 bool canLongjmp(Module &M, const Value *Callee) const; 269 bool isEmAsmCall(Module &M, const Value *Callee) const; 450 Value *Callee = CI->getCalledValue(); local 452 if (auto *F = dyn_cast<Function>(Callee)) 455 auto *CalleeTy = cast<PointerType>(Callee->getType())->getElementType(); 477 const Value *Callee) const { 478 if (auto *CalleeF = dyn_cast<Function>(Callee)) 486 if (isa<InlineAsm>(Callee)) 488 StringRef CalleeName = Callee->getName(); 502 if (Callee 815 const Function *Callee = CI->getCalledFunction(); local 969 const Value *Callee = CI->getCalledValue(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | Coroutines.cpp | 195 const Function *Callee = Call->getCalledFunction(); local 196 if (!Callee || !Intrinsic::isLeaf(Callee->getIntrinsicID())) 201 else if (!Callee->isIntrinsic()) 202 Node->addCalledFunction(Call, CG.getOrInsertFunction(Callee)); 218 CallGraphNode *Callee = CG.getOrInsertFunction(F); local 219 Nodes.push_back(Callee); 220 buildCGN(CG, Callee); 489 static void propagateCallAttrsFromCallee(CallInst *Call, Function *Callee) { argument 490 Call->setCallingConv(Callee 494 addCallToCallGraph(CallGraph *CG, CallInst *Call, Function *Callee) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerContext.cpp | 22 const Expr *Callee = CE->getCallee(); local 23 SVal L = Pred->getSVal(Callee);
|