Home
last modified time | relevance | path

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

1234567

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DCallGraphSCCPass.cpp277 (Call->getCalledFunction() && in RefreshCallGraph()
278 Call->getCalledFunction()->isIntrinsic() && in RefreshCallGraph()
279 Intrinsic::isLeaf(Call->getCalledFunction()->getIntrinsicID()))) { in RefreshCallGraph()
297 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
314 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
338 if (ExistingNode->getFunction() == Call->getCalledFunction()) in RefreshCallGraph()
346 if (CheckingMode && Call->getCalledFunction() && in RefreshCallGraph()
356 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
380 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
H A DInlineAdvisor.cpp95 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice()
118 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
235 if (!CS2 || CS2->getCalledFunction() != Caller) { in shouldBeDeferred()
328 Function *Callee = CB.getCalledFunction(); in shouldInline()
481 auto &Callee = *CB.getCalledFunction(); in getMandatoryKind()
505 bool Advice = CB.getCaller() != CB.getCalledFunction() && in getAdvice()
H A DMLInlineAdvisor.cpp58 if (Function *Callee = CS->getCalledFunction()) { in getInlinableCS()
89 auto *Called = CS->getCalledFunction(); in MLInlineAdvisor()
177 auto &Callee = *CB.getCalledFunction(); in getAdviceImpl()
H A DTypeMetadataUtils.cpp79 assert(CI->getCalledFunction()->getIntrinsicID() == Intrinsic::type_test); in findDevirtualizableCallsForTypeTest()
100 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
H A DMemoryBuiltins.cpp117 static const Function *getCalledFunction(const Value *V, bool LookThroughBitCast, in getCalledFunction() function
132 if (const Function *Callee = CB->getCalledFunction()) in getCalledFunction()
183 getCalledFunction(V, LookThroughBitCast, IsNoBuiltinCall)) in getAllocationData()
195 getCalledFunction(V, LookThroughBitCast, IsNoBuiltinCall)) in getAllocationData()
206 getCalledFunction(V, /*LookThroughBitCast=*/false, IsNoBuiltinCall); in getAllocationSize()
489 getCalledFunction(I, /*LookThroughBitCast=*/false, IsNoBuiltinCall); in isFreeCall()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp144 if (!Call->hasOperandBundles() && Call->getCalledFunction() && in checkFunctionMemoryAccess()
145 SCCNodes.count(Call->getCalledFunction())) in checkFunctionMemoryAccess()
382 Function *F = CB->getCalledFunction(); in captured()
510 Function *F = CB.getCalledFunction(); in determinePointerReadAttrs()
653 if (auto *CalledFunc = CB->getCalledFunction()) { in addArgumentAttrsFromCallsites()
921 if (CB.getCalledFunction() && SCCNodes.count(CB.getCalledFunction())) in isFunctionMallocLike()
1028 Function *Callee = CB.getCalledFunction(); in isReturnNonNull()
1246 SCCNodes.count(CB->getCalledFunction()) == 0; in InstrBreaksNonConvergent()
1254 if (Function *Callee = CI->getCalledFunction()) { in InstrBreaksNonThrowing()
1275 if (Function *Callee = CB->getCalledFunction()) in InstrBreaksNoFree()
[all …]
H A DInliner.cpp248 Function *Callee = CB.getCalledFunction(); in inlineCallIfPossible()
343 if (Function *Callee = CB->getCalledFunction()) in inlineCallsImpl()
372 if (Function *F = CallSites[I].first->getCalledFunction()) in inlineCallsImpl()
394 Function *Callee = CB.getCalledFunction(); in inlineCallsImpl()
730 if (Function *Callee = CB->getCalledFunction()) { in run()
795 Function &Callee = *CB->getCalledFunction(); in run()
851 Function *NewCallee = ICB->getCalledFunction(); in run()
858 NewCallee = ICB->getCalledFunction(); in run()
H A DAlwaysInliner.cpp63 if (CB->getCalledFunction() == &F) in run()
186 Function *Callee = CB.getCalledFunction(); in getInlineCost()
H A DAttributor.cpp223 if (!ACS.getCalledFunction()) in getAssociatedArgument()
233 assert(ACS.getCalledFunction()->arg_size() > u && in getAssociatedArgument()
239 CBCandidateArg = ACS.getCalledFunction()->getArg(u); in getAssociatedArgument()
249 const Function *Callee = CB.getCalledFunction(); in getAssociatedArgument()
358 if (const Function *Callee = CB->getCalledFunction()) in SubsumingPositionIterator()
366 if (const Function *Callee = CB->getCalledFunction()) { in SubsumingPositionIterator()
386 const Function *Callee = CB->getCalledFunction(); in SubsumingPositionIterator()
841 assert(&Fn == ACS.getCalledFunction() && "Expected known callee"); in checkForAllCallSites()
1291 Function *Fn = CB->getCalledFunction(); in cleanupIR()
1588 if (!ACS.getCalledFunction() || in isValidFunctionSignatureRewrite()
[all …]
H A DPruneEH.cpp121 if (Function *Callee = CI->getCalledFunction()) { in runImpl()
241 const Function *Callee = Call->getCalledFunction(); in DeleteBasicBlock()
H A DSampleProfile.cpp634 if (Function *Callee = Inst.getCalledFunction()) in findCalleeFunctionSamples()
926 Function *Callee = CallInst.getCalledFunction(); in shouldInlineColdCallee()
946 Function *CalledFunction = I->getCalledFunction(); in emitOptimizationRemarksForInlineCandidates()
1070 Function *CalledFunction = I->getCalledFunction(); in inlineHotFunctions()
1120 Function *Callee = I->getCalledFunction(); in inlineHotFunctions()
1167 Function *CalledFunction = CB.getCalledFunction(); in tryInlineCandidate()
1272 Function *Callee = Candidate.CallInstr->getCalledFunction(); in shouldInlineCandidate()
1346 Function *CalledFunction = I->getCalledFunction(); in inlineHotFunctionsWithPriority()
1447 if (!cast<CallBase>(I).getCalledFunction()) { in generateMDProfMetadata()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DInjectTLIMappings.cpp57 VectorF->copyAttributesFrom(CI.getCalledFunction()); in addVariantDeclaration()
78 if (CI.isNoBuiltin() || !CI.getCalledFunction()) in addMappingsFromTLI()
81 StringRef ScalarName = CI.getCalledFunction()->getName(); in addMappingsFromTLI()
H A DSimplifyLibCalls.cpp288 Function *Callee = CI->getCalledFunction(); in optimizeStrChr()
521 Function *Callee = CI->getCalledFunction(); in optimizeStpCpy()
550 Function *Callee = CI->getCalledFunction(); in optimizeStrNCpy()
1174 Function *InnerCallee = Malloc->getCalledFunction(); in foldMallocMemset()
1271 Function *CalleeFn = CI->getCalledFunction(); in optimizeDoubleFP()
1387 return B.CreateFNeg(B.CreateCall(Call->getCalledFunction(), X)); in optimizeTrigReflections()
1394 return B.CreateCall(Call->getCalledFunction(), X, "cos"); in optimizeTrigReflections()
1472 Function *CalleeFn = BaseFn->getCalledFunction(); in replacePowWithExp()
1673 Function *Callee = Pow->getCalledFunction(); in optimizePow()
1740 Sqrt = getSqrtCall(Base, Pow->getCalledFunction()->getAttributes(), in optimizePow()
[all …]
H A DInlineFunction.cpp565 if (auto *F = CI->getCalledFunction()) in HandleCallsInBlockInlinedThroughInvoke()
946 const Function *CalledFunc = CB.getCalledFunction(); in AddAliasScopeMetadata()
1218 auto *CalledFunction = CB.getCalledFunction(); in AddReturnAttributes()
1281 Function *CalledFunc = CB.getCalledFunction(); in AddAlignmentAssumptions()
1313 const Function *Callee = CB.getCalledFunction(); in UpdateCallGraphAfterInlining()
1349 if (NewCall->getCalledFunction() && in UpdateCallGraphAfterInlining()
1350 NewCall->getCalledFunction()->isIntrinsic()) in UpdateCallGraphAfterInlining()
1363 if (Function *F = NewCall->getCalledFunction()) { in UpdateCallGraphAfterInlining()
1768 Function *CalledFunc = CB.getCalledFunction(); in InlineFunction()
1904 ScopedAliasMetadataDeepCloner SAMetadataCloner(CB.getCalledFunction()); in InlineFunction()
[all …]
H A DCallPromotionUtils.cpp384 assert(!CB.getCalledFunction() && "Only indirect call sites can be promoted"); in isLegalToPromote()
443 assert(!CB.getCalledFunction() && "Only indirect call sites can be promoted"); in promoteCall()
537 assert(!CB.getCalledFunction()); in tryPromoteCall()
H A DLibCallsShrinkWrap.cpp82 LLVM_DEBUG(dbgs() << "CDCE calls: " << CI->getCalledFunction()->getName() in perform()
301 Function *Callee = CI.getCalledFunction(); in checkCandidate()
507 Function *Callee = CI->getCalledFunction(); in perform()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp45 Function *OldFunc = CI.getCalledFunction(); in replaceWithTLIFunction()
95 if (!CI.getCalledFunction()) { in replaceWithCallToVeclib()
99 auto IntrinsicID = CI.getCalledFunction()->getIntrinsicID(); in replaceWithCallToVeclib()
H A DGCRootLowering.cpp134 if (Function *F = CI->getCalledFunction()) in CouldBecomeSafePoint()
200 Function *F = CI->getCalledFunction(); in DoLowering()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp83 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
247 Expect->getCalledFunction()->getIntrinsicID(), Expect, 2); in handlePhiDef()
301 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect()
371 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DAbstractCallSite.h218 Function *getCalledFunction() const { in getCalledFunction() function
240 if (Function *Callback = ACS.getCalledFunction()) in forEachCallbackFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DAbstractCallSite.cpp37 const Function *Callee = CB.getCalledFunction(); in getCallbackUses()
87 Function *Callee = CB->getCalledFunction(); in AbstractCallSite()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DSpeculateAnalyses.cpp56 auto getCalledFunction = [&CallesNames](const CallBase *Call) { in findCalles() local
63 getCalledFunction(CI); in findCalles()
66 getCalledFunction(II); in findCalles()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DCallGraph.h244 assert(!Call || !Call->getCalledFunction() || in addCalledFunction()
245 !Call->getCalledFunction()->isIntrinsic() || in addCalledFunction()
246 !Intrinsic::isLeaf(Call->getCalledFunction()->getIntrinsicID())); in addCalledFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp528 Function *Callee = aCI->getCalledFunction(); in useNative()
561 auto *Callee = CI->getCalledFunction(); in fold_read_write_pipe()
622 Function *Callee = CI->getCalledFunction(); in fold()
1265 if (!AMDGPULibFunc::parse(CI->getCalledFunction()->getName(), fInfo)) in fold_sincos()
1303 Function *UCallee = XI->getCalledFunction(); in fold_sincos()
1402 Function *UCallee = UI->getCalledFunction(); in insertAlloca()
1726 Function *Callee = CI->getCalledFunction(); in runOnFunction()
1759 Function *Callee = CI->getCalledFunction(); in run()
1785 Function *Callee = CI->getCalledFunction(); in runOnFunction()
1813 Function *Callee = CI->getCalledFunction(); in run()
H A DAMDGPUFixFunctionBitcasts.cpp36 if (CB.getCalledFunction()) in visitCallBase()

1234567