reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/CallGraph.h
  233     assert(!Call || !Call->getCalledFunction() ||
  234            !Call->getCalledFunction()->isIntrinsic() ||
  235            !Intrinsic::isLeaf(Call->getCalledFunction()->getIntrinsicID()));
include/llvm/Analysis/ObjCARCInstKind.h
  108     if (const Function *F = CI->getCalledFunction())
include/llvm/Analysis/TargetTransformInfoImpl.h
  901       const Function *F = CI->getCalledFunction();
include/llvm/CodeGen/CommandFlags.inc
  400             if (const auto *F = Call->getCalledFunction())
include/llvm/IR/InstVisitor.h
  303     if (const Function *F = I.getCalledFunction()) {
include/llvm/IR/IntrinsicInst.h
   51       return getCalledFunction()->getIntrinsicID();
   56       if (const Function *CF = I->getCalledFunction())
include/llvm/IR/PatternMatch.h
 1695       if (const auto *F = CI->getCalledFunction())
include/llvm/Transforms/IPO/Attributor.h
  272       return CB->getCalledFunction();
lib/Analysis/BasicAliasAnalysis.cpp
  738     if (const Function *F = Call->getCalledFunction())
  783   if (Call->getCalledFunction() &&
  784       TLI.getLibFunc(*Call->getCalledFunction(), F) &&
lib/Analysis/BranchProbabilityInfo.cpp
  693       if (Function *CalledFn = Call->getCalledFunction())
lib/Analysis/CFLGraph.h
  193       if (auto *Fn = Call.getCalledFunction()) {
  457         auto *Fn = Call.getCalledFunction();
lib/Analysis/CallGraph.cpp
   76         const Function *Callee = Call->getCalledFunction();
lib/Analysis/CallGraphSCCPass.cpp
  244           (Call->getCalledFunction() &&
  245            Call->getCalledFunction()->isIntrinsic() &&
  246            Intrinsic::isLeaf(Call->getCalledFunction()->getIntrinsicID()))) {
  274         Function *Callee = Call->getCalledFunction();
  291         Function *Callee = Call->getCalledFunction();
  306           if (ExistingNode->getFunction() == Call->getCalledFunction())
  314           if (CheckingMode && Call->getCalledFunction() &&
  324           if (Function *Callee = Call->getCalledFunction()) {
  348         if (Function *Callee = Call->getCalledFunction()) {
lib/Analysis/CodeMetrics.cpp
  128       if (const Function *F = Call->getCalledFunction()) {
lib/Analysis/ConstantFolding.cpp
 2493   Function *F = Call->getCalledFunction();
lib/Analysis/GlobalsModRef.cpp
  261     if (const Function *F = Call->getCalledFunction())
  585           } else if (Function *Callee = Call->getCalledFunction()) {
  931       if (const Function *F = Call->getCalledFunction())
lib/Analysis/InlineCost.cpp
  974       F.hasLocalLinkage() && F.hasOneUse() && &F == Call.getCalledFunction();
 1241   if (Function *F = Call.getCalledFunction()) {
 1904       F.hasLocalLinkage() && F.hasOneUse() && &F == Call.getCalledFunction();
 2008   return getInlineCost(Call, Call.getCalledFunction(), Params, CalleeTTI,
 2111       if (&F == Call->getCalledFunction())
 2120       if (Call->getCalledFunction())
 2121         switch (Call->getCalledFunction()->getIntrinsicID()) {
lib/Analysis/InstructionSimplify.cpp
 5147   Function *F = cast<Function>(Call->getCalledFunction());
lib/Analysis/LoopAccessAnalysis.cpp
 1846         if (Call && !Call->isNoBuiltin() && Call->getCalledFunction() &&
 1847             TLI->isFunctionVectorizable(Call->getCalledFunction()->getName()))
lib/Analysis/MemoryLocation.cpp
  195   if (TLI && Call->getCalledFunction() &&
  196       TLI->getLibFunc(*Call->getCalledFunction(), F) &&
lib/Analysis/ModuleSummaryAnalysis.cpp
  167   switch (CI->getCalledFunction()->getIntrinsicID()) {
  183       Function *F = AssumeCI->getCalledFunction();
lib/Analysis/ObjCARCInstKind.cpp
  225       if (const Function *F = CI->getCalledFunction()) {
lib/Analysis/ScalarEvolution.cpp
 7718     if (const Function *F = CI->getCalledFunction())
lib/Analysis/TypeMetadataUtils.cpp
   77   assert(CI->getCalledFunction()->getIntrinsicID() == Intrinsic::type_test);
   84       Function *F = AssumeCI->getCalledFunction();
  102   assert(CI->getCalledFunction()->getIntrinsicID() ==
lib/Analysis/ValueTracking.cpp
  503     if (Function *F = CI->getCalledFunction())
  603     assert(I->getCalledFunction()->getIntrinsicID() == Intrinsic::assume &&
 3947     const Function *Callee = CI->getCalledFunction();
lib/CodeGen/Analysis.cpp
  638   if (Function *F = Call->getCalledFunction()) {
lib/CodeGen/CodeGenPrepare.cpp
 1926   if (!CI->getCalledFunction()) return false;
lib/CodeGen/GCRootLowering.cpp
  135     if (Function *F = CI->getCalledFunction())
  202       Function *F = CI->getCalledFunction();
lib/CodeGen/GlobalISel/IRTranslator.cpp
 1587   const Function *F = CI.getCalledFunction();
lib/CodeGen/IntrinsicLowering.cpp
  238   const Function *Callee = CI->getCalledFunction();
lib/CodeGen/PreISelIntrinsicLowering.cpp
   80     assert(CI->getCalledFunction() && "Cannot lower an indirect call!");
lib/CodeGen/SafeStack.cpp
  402       if (CI->getCalledFunction() && CI->canReturnTwice())
lib/CodeGen/SelectionDAG/FastISel.cpp
  793   assert(I->getCalledFunction()->getReturnType()->isVoidTy() &&
 1616     const Function *F = Call->getCalledFunction();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  174         !IsInlineAsm && !CI->getCalledFunction();
  181         CI->getCalledFunction()->getIntrinsicID() != Intrinsic::not_intrinsic;
 4765   const Function *F = I.getCalledFunction();
 7541   if (Function *F = I.getCalledFunction()) {
lib/CodeGen/ShadowStackGCLowering.cpp
  239         if (Function *F = CI->getCalledFunction())
lib/CodeGen/SjLjEHPrepare.cpp
  361       if (Function *Callee = II->getCalledFunction())
  452         if (CI->getCalledFunction() != StackRestoreFn)
lib/CodeGen/StackProtector.cpp
  227         if (CI->getCalledFunction() ==
lib/IR/AsmWriter.cpp
 1069     if (Function *F = CI->getCalledFunction())
 4271     if (Function *F = CI->getCalledFunction())
lib/IR/AutoUpgrade.cpp
 1647   Function *F = CI->getCalledFunction();
 3487         (CI->getCalledFunction()->getName() != NewFn->getName()) &&
 3873       if (!CI || CI->getCalledFunction() != Fn)
lib/IR/BasicBlock.cpp
  189     if (Function *F = CI->getCalledFunction())
lib/IR/Instructions.cpp
  292   if (auto *F = getCalledFunction())
  314   if (const Function *F = getCalledFunction())
  327   if (const Function *F = getCalledFunction())
  338   if (const Function *F = getCalledFunction())
  344   if (const Function *F = getCalledFunction())
  350   if (const Function *F = getCalledFunction())
lib/IR/Statepoint.cpp
   21   if (auto *F = Call->getCalledFunction())
lib/IR/Value.cpp
  722     if (!Alignment && Call->getCalledFunction())
  724           Call->getCalledFunction()->getAttributes().getRetAlignment());
lib/IR/Verifier.cpp
 1939   assert(Call.getCalledFunction() &&
 1940          Call.getCalledFunction()->getIntrinsicID() ==
 2850   bool IsIntrinsic = Call.getCalledFunction() &&
 2851                      Call.getCalledFunction()->getName().startswith("llvm.");
 2946       if (!Call.getCalledFunction() ||
 2947           Call.getCalledFunction()->getIntrinsicID() !=
 2970   if (!Call.getCalledFunction())
 2974   if (Function *F = Call.getCalledFunction())
 3012   if (Call.getFunction()->getSubprogram() && Call.getCalledFunction() &&
 3013       Call.getCalledFunction()->getSubprogram())
 3058   if (!CI.getCalledFunction() || !CI.getCalledFunction()->isIntrinsic()) {
 3058   if (!CI.getCalledFunction() || !CI.getCalledFunction()->isIntrinsic()) {
 4233   Function *IF = Call.getCalledFunction();
 4481         StatepointCall ? StatepointCall->getCalledFunction() : nullptr;
lib/Target/AArch64/AArch64FastISel.cpp
 3393   const Function *Callee = II->getCalledFunction();
 3659     Type *RetTy = II->getCalledFunction()->getReturnType();
 3684     const Function *Callee = II->getCalledFunction();
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  547   Function *Callee = aCI->getCalledFunction();
  580   auto *Callee = CI->getCalledFunction();
  641   Function *Callee = CI->getCalledFunction();
 1284   if (!AMDGPULibFunc::parse(CI->getCalledFunction()->getName(), fInfo))
 1320     Function *UCallee = XI->getCalledFunction();
 1417   Function *UCallee = UI->getCalledFunction();
 1763       Function *Callee = CI->getCalledFunction();
 1788       Function *Callee = CI->getCalledFunction();
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  440     const Function *F = CI->getCalledFunction();
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
  175       Function *F = Inst->getCalledFunction();
  208       Function *F = Inst->getCalledFunction();
lib/Target/ARM/ARMISelLowering.cpp
16257     auto &DL = I.getCalledFunction()->getParent()->getDataLayout();
16273     auto &DL = I.getCalledFunction()->getParent()->getDataLayout();
16292     auto &DL = I.getCalledFunction()->getParent()->getDataLayout();
16314     auto &DL = I.getCalledFunction()->getParent()->getDataLayout();
16332     auto &DL = I.getCalledFunction()->getParent()->getDataLayout();
16344     auto &DL = I.getCalledFunction()->getParent()->getDataLayout();
lib/Target/ARM/ARMTargetTransformInfo.cpp
  885         if (const Function *F = Call->getCalledFunction())
lib/Target/Hexagon/HexagonISelLowering.cpp
 1788     auto &DL = I.getCalledFunction()->getParent()->getDataLayout();
 1789     auto &Cont = I.getCalledFunction()->getParent()->getContext();
 1793     Type *ElTy = I.getCalledFunction()->getReturnType()->getStructElementType(0);
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  337   switch (C->getCalledFunction()->getIntrinsicID()) {
  410       if (C1->getCalledFunction() != C2->getCalledFunction())
  410       if (C1->getCalledFunction() != C2->getCalledFunction())
lib/Target/Mips/Mips16HardFloat.cpp
  421         Function *F_ =  CI->getCalledFunction();
lib/Target/Mips/MipsFastISel.cpp
 1594     Type *RetTy = II->getCalledFunction()->getReturnType();
lib/Target/Mips/MipsOs16.cpp
  100         Function &F_ =  *CI->getCalledFunction();
lib/Target/NVPTX/NVPTXImageOptimizer.cpp
   65         Function *CalledF = CI->getCalledFunction();
lib/Target/NVPTX/NVVMIntrRange.cpp
   88     if (Function *Callee = Call->getCalledFunction()) {
lib/Target/NVPTX/NVVMReflect.cpp
  118     Function *Callee = Call->getCalledFunction();
lib/Target/PowerPC/PPCISelLowering.cpp
15427   const Function *Callee = CI->getCalledFunction();
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  273       if (Function *F = CI->getCalledFunction()) {
lib/Target/SystemZ/SystemZTDC.cpp
  216     Function *F = CI->getCalledFunction();
  260     Function *F = CI->getCalledFunction();
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  991       if (auto *F = CI->getCalledFunction())
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  753   Function *Func = Call->getCalledFunction();
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  813       const Function *Callee = CI->getCalledFunction();
lib/Target/X86/X86FastISel.cpp
  248   const Function *Callee = II->getCalledFunction();
 2673     Type *RetTy = II->getCalledFunction()->getReturnType();
 2807     Type *RetTy = II->getCalledFunction()->getReturnType();
 2866     const Function *Callee = II->getCalledFunction();
 3005     Type *RetTy = II->getCalledFunction()->getReturnType();
 3190   const Function *CalledFn = CI ? CI->getCalledFunction() : nullptr;
lib/Target/X86/X86ISelLowering.cpp
 3623   const Function *Fn = CI ? CI->getCalledFunction() : nullptr;
lib/Transforms/Coroutines/Coroutines.cpp
  194       const Function *Callee = Call->getCalledFunction();
lib/Transforms/IPO/Attributor.cpp
 1136     if (!CB->getCalledFunction()) {
 1145         *this, IRPosition::function(*CB->getCalledFunction()));
 2170           if (II->getCalledFunction()) {
lib/Transforms/IPO/FunctionAttrs.cpp
  140       if (!Call->hasOperandBundles() && Call->getCalledFunction() &&
  141           SCCNodes.count(Call->getCalledFunction()))
 1236     if (Function *Callee = CI->getCalledFunction()) {
lib/Transforms/IPO/GlobalOpt.cpp
 2224         Function *CalledFn = CI->getCalledFunction();
lib/Transforms/IPO/PruneEH.cpp
  126               if (Function *Callee = CI->getCalledFunction()) {
  246       const Function *Callee = Call->getCalledFunction();
lib/Transforms/IPO/SampleProfile.cpp
  777     if (Function *Callee = CI->getCalledFunction())
lib/Transforms/InstCombine/InstCombineCalls.cpp
 2287       CallInst *Call0 = Builder.CreateCall(II->getCalledFunction(), {LHS});
 2288       CallInst *Call1 = Builder.CreateCall(II->getCalledFunction(), {RHS});
 3445         CallInst *NewCall = Builder.CreateCall(II->getCalledFunction(),
 4123   if (!CI->getCalledFunction()) return nullptr;
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
 1260           cast<CallBase>(Op0)->getCalledFunction()->getAttributes();
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1031   FunctionType *FTy = II->getCalledFunction()->getFunctionType();
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  637         if (Function *Callee = CI->getCalledFunction()) {
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 3000     Value *S = IRB.CreateCall(I.getCalledFunction(),
 3277       if (Function *Func = Call->getCalledFunction()) {
 3605       errs() << "ZZZ call " << CI->getCalledFunction()->getName() << "\n";
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  157                           << MI->getCalledFunction()->getName()
lib/Transforms/Scalar/ADCE.cpp
  346     if (Function *Callee = CI->getCalledFunction())
lib/Transforms/Scalar/LoopDataPrefetch.cpp
  229         if (Function *F = CI->getCalledFunction())
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1040            << ore::NV("NewFunction", NewCall->getCalledFunction())
 1180            << ore::NV("NewFunction", NewCall->getCalledFunction())
 2669            << ore::NV("NewFunction", CmpCall->getCalledFunction())
lib/Transforms/Scalar/LoopUnrollPass.cpp
  540           const Function *Callee = CI->getCalledFunction();
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
   62   Function *Fn = CI->getCalledFunction();
  278   Function *Fn = CI->getCalledFunction();
  348       Function *Fn = CI->getCalledFunction();
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  740   if (Function *F = C->getCalledFunction())
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
  102       if (!Call || !(CalledFunc = Call->getCalledFunction()))
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1358     auto *F = cast<CallInst>(Old)->getCalledFunction();
 1406     Function *F = Call->getCalledFunction();
lib/Transforms/Scalar/Scalarizer.cpp
  499   Function *F = CI.getCalledFunction();
lib/Transforms/Scalar/TailRecursionElimination.cpp
  463     if (CI && CI->getCalledFunction() == F)
  482       firstNonDbg(std::next(BB->begin())) == TI && CI->getCalledFunction() &&
  483       !TTI->isLoweredToCall(CI->getCalledFunction())) {
lib/Transforms/Utils/CodeExtractor.cpp
  174       if (const Function *F = CI->getCalledFunction()) {
  582         if (const Function *Callee = CI->getCalledFunction())
lib/Transforms/Utils/InlineFunction.cpp
  542     if (auto *F = CI->getCalledFunction())
 1217     if (NewCall->getCalledFunction() &&
 1218         NewCall->getCalledFunction()->isIntrinsic())
 1231       if (Function *F = NewCall->getCalledFunction()) {
 1893               CI->getCalledFunction() == ForwardVarArgsTo) ||
 1921         if (Function *F = CI->getCalledFunction())
 2141         auto CallingConv = DeoptCall->getCalledFunction()->getCallingConv();
lib/Transforms/Utils/LibCallsShrinkWrap.cpp
   81       LLVM_DEBUG(dbgs() << "CDCE calls: " << CI->getCalledFunction()->getName()
  300   Function *Callee = CI.getCalledFunction();
  506   Function *Callee = CI->getCalledFunction();
lib/Transforms/Utils/Local.cpp
 2520   if (const Function *F = Call->getCalledFunction()) {
 2893   Function *F = CI->getCalledFunction();
lib/Transforms/Utils/SimplifyLibCalls.cpp
  147   Function *InnerCallee = FOpen->getCalledFunction();
  156   inferLibFuncAttributes(*CI->getCalledFunction(), *TLI);
  340   Function *Callee = CI->getCalledFunction();
  571   Function *Callee = CI->getCalledFunction();
  598   Function *Callee = CI->getCalledFunction();
 1160   Function *InnerCallee = Malloc->getCalledFunction();
 1254   Function *CalleeFn = CI->getCalledFunction();
 1370       return B.CreateFNeg(B.CreateCall(Call->getCalledFunction(), X));
 1377       return B.CreateCall(Call->getCalledFunction(), X, "cos");
 1431   AttributeList Attrs = Pow->getCalledFunction()->getAttributes();
 1455     Function *CalleeFn = BaseFn->getCalledFunction();
 1593   AttributeList Attrs = Pow->getCalledFunction()->getAttributes();
 1638   Function *Callee = Pow->getCalledFunction();
 1716         Sqrt = getSqrtCall(Base, Pow->getCalledFunction()->getAttributes(),
 1761   Function *Callee = CI->getCalledFunction();
 1778                                    B, CI->getCalledFunction()->getAttributes());
 1787   Function *Callee = CI->getCalledFunction();
 1812   Function *LogFn = Log->getCalledFunction();
 1964   Function *Callee = CI->getCalledFunction();
 2033   Function *Callee = CI->getCalledFunction();
 2052   Function *F = OpC->getCalledFunction();
 2144   insertSinCosCall(B, CI->getCalledFunction(), Arg, IsFloat, Sin, Cos, SinCos);
 2173   Function *Callee = CI->getCalledFunction();
 2204   Function *F = Intrinsic::getDeclaration(CI->getCalledFunction()->getParent(),
 2218   Function *F = Intrinsic::getDeclaration(CI->getCalledFunction()->getParent(),
 2287   Function *Callee = CI->getCalledFunction();
 2380   Function *Callee = CI->getCalledFunction();
 2475   Function *Callee = CI->getCalledFunction();
 2648   Function *Callee = CI->getCalledFunction();
 2811   Function *Callee = CI->getCalledFunction();
 2965     if (UnsafeFPShrink && hasFloatVersion(CI->getCalledFunction()->getName()))
 2969     if (hasFloatVersion(CI->getCalledFunction()->getName()))
 2996   Function *Callee = CI->getCalledFunction();
 3044     if (SimplifiedCI && SimplifiedCI->getCalledFunction()) {
 3418   Function *Callee = CI->getCalledFunction();
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  672           !(CI->getCalledFunction() && TLI &&
  673             TLI->isFunctionVectorizable(CI->getCalledFunction()->getName()))) {
  678             TLI && CI->getCalledFunction() &&
  680             TLI->getLibFunc(CI->getCalledFunction()->getName(), Func) &&
lib/Transforms/Vectorize/LoopVectorize.cpp
 3223   Function *F = CI->getCalledFunction();
 3224   StringRef FnName = CI->getCalledFunction()->getName();
 4266     StringRef FnName = CI->getCalledFunction()->getName();
 4267     Function *F = CI->getCalledFunction();
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2701       Function *Int = CI->getCalledFunction();
 2709         if (!CI2 || CI2->getCalledFunction() != Int ||
 4114       if (Function *FI = CI->getCalledFunction())
tools/clang/lib/CodeGen/CGCall.cpp
 4387   if (!CI->getCalledFunction())
 4420       if (auto *F = CI->getCalledFunction())
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 3717   auto *Func = CallOrInvoke->getCalledFunction();
tools/lldb/source/Expression/IRInterpreter.cpp
   73   const llvm::Function *called_function = call->getCalledFunction();
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1398     llvm::Function *func = call->getCalledFunction();
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
   32   const auto func_name = call_inst->getCalledFunction()->getName();
   36   if (call_inst->getCalledFunction()->isIntrinsic())
   54   if (!call_inst || !call_inst->getCalledFunction())
   57   return call_inst->getCalledFunction()
   92   llvm::Function *orig = call_inst->getCalledFunction();
  136         if (!call_inst || !call_inst->getCalledFunction())
  162     llvm::Function *func = call_inst->getCalledFunction();
  234     rs_functions.insert(call_inst->getCalledFunction());
tools/llvm-extract/llvm-extract.cpp
  306           Function *CF = CB->getCalledFunction();
tools/polly/lib/Analysis/ScopBuilder.cpp
 1417   Function *MallocFn = MallocCall->getCalledFunction();
 1804   auto *CalledFunction = CI->getCalledFunction();
tools/polly/lib/Analysis/ScopDetection.cpp
  680   Function *CalledFunction = CI.getCalledFunction();
tools/polly/lib/Analysis/ScopInfo.cpp
 1477   std::string Name = Call->getCalledFunction()->getName();
tools/polly/lib/Support/ScopHelper.cpp
  729   Function *CF = CI->getCalledFunction();
tools/polly/lib/Transform/RewriteByReferenceParameters.cpp
   46     llvm::Function *F = Call->getCalledFunction();
unittests/Analysis/CGSCCPassManagerTest.cpp
 1168         auto &H3F = *cast<CallInst>(H2F.begin()->begin())->getCalledFunction();
unittests/Analysis/LazyCallGraphTest.cpp
 1152   ASSERT_EQ(&D2F, C1Call->getCalledFunction());
 1153   ASSERT_EQ(&D2F, D1Call->getCalledFunction());