Home
last modified time | relevance | path

Searched refs:getCalledFunction (Results 1 – 25 of 176) sorted by relevance

12345678

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DModuleInliner.cpp149 if (Function *Callee = CB->getCalledFunction()) { in run()
184 Function &Callee = *CB->getCalledFunction(); in run()
235 Function *NewCallee = ICB->getCalledFunction(); in run()
242 NewCallee = ICB->getCalledFunction(); in run()
H A DFunctionAttrs.cpp189 if (!Call->hasOperandBundles() && Call->getCalledFunction() && in checkFunctionMemoryAccess()
190 SCCNodes.count(Call->getCalledFunction())) { in checkFunctionMemoryAccess()
544 Function *F = CB->getCalledFunction(); in captured()
688 if (Function *F = CB.getCalledFunction()) in determinePointerAccessAttrs()
818 if (auto *CalledFunc = CB->getCalledFunction()) { in addArgumentAttrsFromCallsites()
1103 if (CB.getCalledFunction() && SCCNodes.count(CB.getCalledFunction())) in isFunctionMallocLike()
1213 Function *Callee = CB.getCalledFunction(); in isReturnNonNull()
1485 !SCCNodes.contains(CB->getCalledFunction()); in InstrBreaksNonConvergent()
1493 if (Function *Callee = CI->getCalledFunction()) { in InstrBreaksNonThrowing()
1514 if (Function *Callee = CB->getCalledFunction()) in InstrBreaksNoFree()
[all …]
H A DInliner.cpp264 if (Function *Callee = CB->getCalledFunction()) { in run()
336 Function &Callee = *CB->getCalledFunction(); in run()
408 Function *NewCallee = ICB->getCalledFunction(); in run()
417 NewCallee = ICB->getCalledFunction(); in run()
H A DSampleProfile.cpp701 if (Function *Callee = Inst.getCalledFunction()) in findCalleeFunctionSamples()
996 Function *Callee = CallInst.getCalledFunction(); in shouldInlineColdCallee()
1016 Function *CalledFunction = I->getCalledFunction(); in emitOptimizationRemarksForInlineCandidates()
1040 Function::getGUID(CB->getCalledFunction()->getName())); in findExternalInlineCandidate()
1183 Function *CalledFunction = I->getCalledFunction(); in inlineHotFunctions()
1238 Function *CalledFunction = CB.getCalledFunction(); in tryInlineCandidate()
1357 Function *Callee = Candidate.CallInstr->getCalledFunction(); in shouldInlineCandidate()
1453 Function *CalledFunction = I->getCalledFunction(); in inlineHotFunctionsWithPriority()
1546 Function *Callee = I->getCalledFunction(); in promoteMergeNotInlinedContextSamples()
1625 if (!cast<CallBase>(I).getCalledFunction()) { in generateMDProfMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInjectTLIMappings.cpp58 VecFunc->copyAttributesFrom(CI.getCalledFunction()); in addVariantDeclaration()
79 if (CI.isNoBuiltin() || !CI.getCalledFunction()) in addMappingsFromTLI()
82 StringRef ScalarName = CI.getCalledFunction()->getName(); in addMappingsFromTLI()
H A DSimplifyLibCalls.cpp485 Function *Callee = CI->getCalledFunction(); in optimizeStrChr()
726 Function *Callee = CI->getCalledFunction(); in optimizeStpCpy()
815 Function *Callee = CI->getCalledFunction(); in optimizeStrLCpy()
840 Function *Callee = CI->getCalledFunction(); in optimizeStringNCpy()
1890 Function *CalleeFn = CI->getCalledFunction(); in optimizeDoubleFP()
2063 Function *CalleeFn = BaseFn->getCalledFunction(); in replacePowWithExp()
2294 Function *Callee = Pow->getCalledFunction(); in optimizePow()
2405 Function *Callee = CI->getCalledFunction(); in optimizeExp2()
2455 Function *Callee = CI->getCalledFunction(); in optimizeFMinFMax()
2480 Function *LogFn = Log->getCalledFunction(); in optimizeLog()
[all …]
H A DLibCallsShrinkWrap.cpp61 LLVM_DEBUG(dbgs() << "CDCE calls: " << CI->getCalledFunction()->getName() in perform()
295 Function *Callee = CI.getCalledFunction(); in checkCandidate()
489 Function *Callee = CI->getCalledFunction(); in perform()
H A DCallPromotionUtils.cpp397 assert(!CB.getCalledFunction() && "Only indirect call sites can be promoted"); in isLegalToPromote()
483 assert(!CB.getCalledFunction() && "Only indirect call sites can be promoted"); in promoteCall()
597 assert(!CB.getCalledFunction()); in tryPromoteCall()
H A DInlineFunction.cpp560 if (auto *F = CI->getCalledFunction()) in HandleCallsInBlockInlinedThroughInvoke()
1101 const Function *CalledFunc = CB.getCalledFunction(); in AddAliasScopeMetadata()
1354 auto *CalledFunction = CB.getCalledFunction(); in AddParamAndFnBasicAttributes()
1470 auto *CalledFunction = CB.getCalledFunction(); in AddReturnAttributes()
1599 Function *CalledFunc = CB.getCalledFunction(); in AddAlignmentAssumptions()
1910 << CB.getCalledFunction()->getName() << "\n"); in trackInlinedStores()
2153 Function *CalledFunc = CB.getCalledFunction(); in InlineFunction()
2324 ScopedAliasMetadataDeepCloner SAMetadataCloner(CB.getCalledFunction()); in InlineFunction()
2574 CI->getCalledFunction() == ForwardVarArgsTo) || in InlineFunction()
2602 if (Function *F = CI->getCalledFunction()) in InlineFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp81 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
123 Function *Fn = Expect->getCalledFunction(); in handlePhiDef()
258 Expect->getCalledFunction()->getIntrinsicID(), Expect, 2); in handlePhiDef()
316 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect()
390 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp86 assert(CI->getCalledFunction()->getIntrinsicID() == Intrinsic::type_test || in findDevirtualizableCallsForTypeTest()
87 CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeTest()
109 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
111 CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
H A DCallGraphSCCPass.cpp289 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
306 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
330 if (ExistingNode->getFunction() == Call->getCalledFunction()) in RefreshCallGraph()
338 if (CheckingMode && Call->getCalledFunction() && in RefreshCallGraph()
348 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
372 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
H A DInlineAdvisor.cpp155 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice()
179 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
291 if (!CS2 || CS2->getCalledFunction() != Caller) { in shouldBeDeferred()
384 Function *Callee = CB.getCalledFunction(); in shouldInline()
595 auto &Callee = *CB.getCalledFunction(); in getMandatoryKind()
619 bool Advice = CB.getCaller() != CB.getCalledFunction() && in getAdvice()
H A DMemoryBuiltins.cpp160 static const Function *getCalledFunction(const Value *V, in getCalledFunction() function
172 if (const Function *Callee = CB->getCalledFunction()) in getCalledFunction()
225 if (const Function *Callee = getCalledFunction(V, IsNoBuiltinCall)) in getAllocationData()
235 if (const Function *Callee = getCalledFunction(V, IsNoBuiltinCall)) in getAllocationData()
246 getCalledFunction(V, IsNoBuiltinCall); in getAllocationSize()
514 const Function *Callee = getCalledFunction(I, IsNoBuiltin); in getAllocationFamily()
560 const Function *Callee = getCalledFunction(CB, IsNoBuiltinCall); in getFreedOperand()
913 Function *Callee = CB->getCalledFunction(); in findLoadSizeOffset()
919 if (!TLI || !TLI->getLibFunc(*CB->getCalledFunction(), TLIFn) || in findLoadSizeOffset()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAbstractCallSite.cpp36 const Function *Callee = CB.getCalledFunction(); in getCallbackUses()
86 Function *Callee = CB->getCalledFunction(); in AbstractCallSite()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DAbstractCallSite.h218 Function *getCalledFunction() const { in getCalledFunction() function
240 if (Function *Callback = ACS.getCalledFunction()) in forEachCallbackFunction()
H A DInstrTypes.h1465 Function *getCalledFunction() const {
1686 if (const Function *F = getCalledFunction())
1832 if (const Function *F = getCalledFunction())
1850 if (const Function *F = getCalledFunction())
1859 if (const Function *F = getCalledFunction())
1868 if (const Function *F = getCalledFunction())
1877 if (const Function *F = getCalledFunction())
1886 if (const Function *F = getCalledFunction())
1902 if (const Function *F = getCalledFunction())
1917 if (const Function *F = getCalledFunction()) {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSpeculateAnalyses.cpp55 auto getCalledFunction = [&CallesNames](const CallBase *Call) { in findCalles()
62 getCalledFunction(CI); in findCalles()
65 getCalledFunction(II); in findCalles()
56 auto getCalledFunction = [&CallesNames](const CallBase *Call) { findCalles() local
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp169 auto F = CI.getCalledFunction(); in visitCallInst()
197 auto *OldF = CI->getCalledFunction(); in visitCallScalToVec()
200 AttributeList Attrs = CI->getCalledFunction()->getAttributes(); in visitCallScalToVec()
H A DSPIRVEmitIntrinsics.cpp258 !CI->getCalledFunction() || CI->getCalledFunction()->isIntrinsic()) in restoreMutatedType()
260 if (Type *OriginalTy = GR->findMutated(CI->getCalledFunction())) in restoreMutatedType()
472 if (Function *CalledF = CI->getCalledFunction()) { in deduceElementTypeHelper()
715 if (Function *CalledF = CI->getCalledFunction()) { in deduceOperandElementType()
1150 !CI->getCalledFunction() || CI->getCalledFunction()->isIntrinsic()) in insertPtrCastOrAssignTypeInstr()
1155 getOclOrSpirvBuiltinDemangledName(CI->getCalledFunction()->getName()); in insertPtrCastOrAssignTypeInstr()
1156 Function *CalledF = CI->getCalledFunction(); in insertPtrCastOrAssignTypeInstr()
1427 CI->getCalledFunction() && !CI->getCalledFunction()->isIntrinsic()) { in insertAssignTypeIntrs()
1428 Function *CalledF = CI->getCalledFunction(); in insertAssignTypeIntrs()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h43 if (!CI.getCalledFunction()) in getVFABIMappings()
46 const StringRef ScalarName = CI.getCalledFunction()->getName(); in getVFABIMappings()
107 return CI.getCalledFunction(); in getVectorizedFunction()
H A DObjCARCInstKind.h106 if (const Function *F = CI->getCalledFunction()) in GetBasicARCInstKind()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DGCRootLowering.cpp155 if (Function *F = CI->getCalledFunction()) in CouldBecomeSafePoint()
214 Function *F = CI->getCalledFunction(); in DoLowering()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp221 Function *F = CI->getCalledFunction(); in convertFCmp()
265 Function *F = CI->getCalledFunction(); in convertICmp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp46 if (const Function *Callee = CB.getCalledFunction()) { in MayAutorelease()

12345678