Home
last modified time | relevance | path

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

1234567

/freebsd-14.2/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.cpp190 SCCNodes.count(Call->getCalledFunction())) { in checkFunctionMemoryAccess()
544 Function *F = CB->getCalledFunction(); in captured()
688 if (Function *F = CB.getCalledFunction()) in determinePointerAccessAttrs()
1103 if (CB.getCalledFunction() && SCCNodes.count(CB.getCalledFunction())) in isFunctionMallocLike()
1213 Function *Callee = CB.getCalledFunction(); in isReturnNonNull()
1464 !SCCNodes.contains(CB->getCalledFunction()); in InstrBreaksNonConvergent()
1493 if (Function *Callee = CB->getCalledFunction()) in InstrBreaksNoFree()
1548 if (Function *Callee = CB->getCalledFunction()) in InstrBreaksNoSync()
1676 Function *Callee = CB->getCalledFunction(); in addNoRecurseAttrs()
1802 if (!CB->getCalledFunction()) { in createSCCNodeSet()
[all …]
H A DInliner.cpp258 if (Function *Callee = CB->getCalledFunction()) { in run()
327 Function &Callee = *CB->getCalledFunction(); in run()
399 Function *NewCallee = ICB->getCalledFunction(); in run()
408 NewCallee = ICB->getCalledFunction(); in run()
H A DSampleProfile.cpp741 if (Function *Callee = Inst.getCalledFunction()) in findCalleeFunctionSamples()
1047 Function *Callee = CallInst.getCalledFunction(); in shouldInlineColdCallee()
1067 Function *CalledFunction = I->getCalledFunction(); in emitOptimizationRemarksForInlineCandidates()
1091 Function::getGUID(CB->getCalledFunction()->getName())); in findExternalInlineCandidate()
1231 Function *CalledFunction = I->getCalledFunction(); in inlineHotFunctions()
1286 Function *CalledFunction = CB.getCalledFunction(); in tryInlineCandidate()
1405 Function *Callee = Candidate.CallInstr->getCalledFunction(); in shouldInlineCandidate()
1500 Function *CalledFunction = I->getCalledFunction(); in inlineHotFunctionsWithPriority()
1593 Function *Callee = I->getCalledFunction(); in promoteMergeNotInlinedContextSamples()
1672 if (!cast<CallBase>(I).getCalledFunction()) { in generateMDProfMetadata()
[all …]
/freebsd-14.2/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.cpp476 Function *Callee = CI->getCalledFunction(); in optimizeStrChr()
717 Function *Callee = CI->getCalledFunction(); in optimizeStpCpy()
806 Function *Callee = CI->getCalledFunction(); in optimizeStrLCpy()
831 Function *Callee = CI->getCalledFunction(); in optimizeStringNCpy()
2324 Function *Callee = CI->getCalledFunction(); in optimizeExp2()
2360 Function *Callee = CI->getCalledFunction(); in optimizeFMinFMax()
2386 Function *LogFn = Log->getCalledFunction(); in optimizeLog()
2543 Function *Callee = CI->getCalledFunction(); in optimizeSqrt()
2613 Function *Callee = CI->getCalledFunction(); in optimizeTan()
2632 Function *F = OpC->getCalledFunction(); in optimizeTan()
[all …]
H A DCallPromotionUtils.cpp385 assert(!CB.getCalledFunction() && "Only indirect call sites can be promoted"); in isLegalToPromote()
471 assert(!CB.getCalledFunction() && "Only indirect call sites can be promoted"); in promoteCall()
563 assert(!CB.getCalledFunction()); in tryPromoteCall()
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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp78 assert(CI->getCalledFunction()->getIntrinsicID() == Intrinsic::type_test || in findDevirtualizableCallsForTypeTest()
79 CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeTest()
101 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
103 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.cpp154 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice()
178 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
290 if (!CS2 || CS2->getCalledFunction() != Caller) { in shouldBeDeferred()
383 Function *Callee = CB.getCalledFunction(); in shouldInline()
594 auto &Callee = *CB.getCalledFunction(); in getMandatoryKind()
618 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-14.2/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()
314 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect()
388 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()
/freebsd-14.2/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()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp117 FuncToReplace = CI->getCalledFunction(); in replaceWithCallToVeclib()
215 return (Ty->isVectorTy() || Ty->isVoidTy()) && CI->getCalledFunction() && in isSupportedInstruction()
216 CI->getCalledFunction()->getIntrinsicID() != in isSupportedInstruction()
H A DGCRootLowering.cpp152 if (Function *F = CI->getCalledFunction()) in CouldBecomeSafePoint()
211 Function *F = CI->getCalledFunction(); in DoLowering()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSpeculateAnalyses.cpp55 auto getCalledFunction = [&CallesNames](const CallBase *Call) { in findCalles() local
62 getCalledFunction(CI); in findCalles()
65 getCalledFunction(II); in findCalles()
/freebsd-14.2/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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h42 if (!CI.getCalledFunction()) in getVFABIMappings()
45 const StringRef ScalarName = CI.getCalledFunction()->getName(); in getVFABIMappings()
105 return CI.getCalledFunction(); in getVectorizedFunction()
H A DObjCARCInstKind.h106 if (const Function *F = CI->getCalledFunction()) in GetBasicARCInstKind()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64SMEAttributes.cpp43 if (auto *F = CB.getCalledFunction()) { in SMEAttrs()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp46 if (const Function *Callee = CB.getCalledFunction()) { in MayAutorelease()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsOs16.cpp101 Function &F_ = *CI->getCalledFunction(); in needsFP()

1234567