Home
last modified time | relevance | path

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

12345678910>>...16

/external/llvm-project/llvm/unittests/Transforms/Utils/
DCallPromotionUtilsTest.cpp64 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
70 EXPECT_EQ(F1, CI->getCalledFunction()); in TEST()
94 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
121 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
156 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
198 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
240 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
299 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
305 EXPECT_EQ(F, CI->getCalledFunction()); in TEST()
317 ASSERT_FALSE(CI->getCalledFunction()); in TEST()
[all …]
/external/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
DRenderScriptx86ABIFixups.cpp31 const auto func_name = call_inst->getCalledFunction()->getName(); in isRSAPICall()
35 if (call_inst->getCalledFunction()->isIntrinsic()) in isRSAPICall()
53 if (!call_inst || !call_inst->getCalledFunction()) in isRSLargeReturnCall()
56 return call_inst->getCalledFunction() in isRSLargeReturnCall()
91 llvm::Function *orig = call_inst->getCalledFunction(); in cloneToStructRetFnTy()
135 if (!call_inst || !call_inst->getCalledFunction()) in findRSCallSites()
160 llvm::Function *func = call_inst->getCalledFunction(); in fixupX86StructRetCalls()
234 rs_functions.insert(call_inst->getCalledFunction()); in fixupRSAllocationStructByValCalls()
/external/llvm-project/llvm/unittests/Frontend/
DOpenMPIRBuilderTest.cpp104 EXPECT_EQ(GTID->getCalledFunction()->getName(), "__kmpc_global_thread_num"); in TEST_F()
105 EXPECT_FALSE(GTID->getCalledFunction()->doesNotAccessMemory()); in TEST_F()
106 EXPECT_FALSE(GTID->getCalledFunction()->doesNotFreeMemory()); in TEST_F()
111 EXPECT_EQ(Barrier->getCalledFunction()->getName(), "__kmpc_barrier"); in TEST_F()
112 EXPECT_FALSE(Barrier->getCalledFunction()->doesNotAccessMemory()); in TEST_F()
113 EXPECT_FALSE(Barrier->getCalledFunction()->doesNotFreeMemory()); in TEST_F()
148 EXPECT_EQ(GTID->getCalledFunction()->getName(), "__kmpc_global_thread_num"); in TEST_F()
149 EXPECT_FALSE(GTID->getCalledFunction()->doesNotAccessMemory()); in TEST_F()
150 EXPECT_FALSE(GTID->getCalledFunction()->doesNotFreeMemory()); in TEST_F()
155 EXPECT_EQ(Cancel->getCalledFunction()->getName(), "__kmpc_cancel"); in TEST_F()
[all …]
/external/llvm/lib/Transforms/IPO/
DInliner.cpp81 Function *Callee = CS.getCalledFunction(); in InlineCallIfPossible()
267 if (!CS2 || CS2.getCalledFunction() != Caller) { in shouldBeDeferred()
309 emitAnalysis(CS, Twine(CS.getCalledFunction()->getName()) + in shouldInline()
317 emitAnalysis(CS, Twine(CS.getCalledFunction()->getName() + in shouldInline()
327 emitAnalysis(CS, Twine(CS.getCalledFunction()->getName() + in shouldInline()
340 CS.getCalledFunction()->getName() + in shouldInline()
350 CS, CS.getCalledFunction()->getName() + Twine(" can be inlined into ") + in shouldInline()
416 if (Function *Callee = CS.getCalledFunction()) in inlineCalls()
434 if (Function *F = CallSites[i].first.getCalledFunction()) in inlineCalls()
455 Function *Callee = CS.getCalledFunction(); in inlineCalls()
DFunctionAttrs.cpp96 if (!CS.hasOperandBundles() && CS.getCalledFunction() && in checkFunctionMemoryAccess()
97 SCCNodes.count(CS.getCalledFunction())) in checkFunctionMemoryAccess()
287 Function *F = CS.getCalledFunction(); in captured()
413 Function *F = CS.getCalledFunction(); in determinePointerReadAttrs()
726 if (CS.getCalledFunction() && SCCNodes.count(CS.getCalledFunction())) in isFunctionMallocLike()
829 Function *Callee = CS.getCalledFunction(); in isReturnNonNull()
929 SCCNodes.count(CS.getCalledFunction()) == 0) in removeConvergentAttrs()
975 Function *Callee = CS.getCalledFunction(); in addNoRecurseAttrs()
1018 if (!CS.getCalledFunction()) { in run()
/external/llvm/lib/IR/
DStatepoint.cpp21 static const Function *getCalledFunction(ImmutableCallSite CS) { in getCalledFunction() function
24 return CS.getCalledFunction(); in getCalledFunction()
28 if (auto *F = getCalledFunction(CS)) in isStatepoint()
/external/llvm/lib/Analysis/
DCallGraphSCCPass.cpp221 (CallSite(I->first).getCalledFunction() && in RefreshCallGraph()
222 CallSite(I->first).getCalledFunction()->isIntrinsic() && in RefreshCallGraph()
224 CallSite(I->first).getCalledFunction()->getIntrinsicID()))) { in RefreshCallGraph()
253 Function *Callee = CS.getCalledFunction(); in RefreshCallGraph()
269 Function *Callee = CS.getCalledFunction(); in RefreshCallGraph()
283 if (ExistingNode->getFunction() == CS.getCalledFunction()) in RefreshCallGraph()
291 if (CheckingMode && CS.getCalledFunction() && in RefreshCallGraph()
301 if (Function *Callee = CS.getCalledFunction()) { in RefreshCallGraph()
325 if (Function *Callee = CS.getCalledFunction()) { in RefreshCallGraph()
DTypeMetadataUtils.cpp66 assert(CI->getCalledFunction()->getIntrinsicID() == Intrinsic::type_test); in findDevirtualizableCallsForTypeTest()
74 Function *F = AssumeCI->getCalledFunction(); in findDevirtualizableCallsForTypeTest()
91 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCallGraphSCCPass.cpp244 (Call->getCalledFunction() && in RefreshCallGraph()
245 Call->getCalledFunction()->isIntrinsic() && in RefreshCallGraph()
246 Intrinsic::isLeaf(Call->getCalledFunction()->getIntrinsicID()))) { in RefreshCallGraph()
274 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
291 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
306 if (ExistingNode->getFunction() == Call->getCalledFunction()) in RefreshCallGraph()
314 if (CheckingMode && Call->getCalledFunction() && in RefreshCallGraph()
324 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
348 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
DTypeMetadataUtils.cpp77 assert(CI->getCalledFunction()->getIntrinsicID() == Intrinsic::type_test); in findDevirtualizableCallsForTypeTest()
84 Function *F = AssumeCI->getCalledFunction(); in findDevirtualizableCallsForTypeTest()
102 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DInjectTLIMappings.cpp54 Out << "_" << CI.getCalledFunction()->getName() << "(" << VectorName << ")"; in mangleTLIName()
86 VectorF->copyAttributesFrom(CI.getCalledFunction()); in addVariantDeclaration()
107 if (CI.isNoBuiltin() || !CI.getCalledFunction()) in addMappingsFromTLI()
110 const std::string ScalarName = CI.getCalledFunction()->getName(); in addMappingsFromTLI()
DSimplifyLibCalls.cpp147 Function *InnerCallee = FOpen->getCalledFunction(); in isLocallyOpenedFile()
156 inferLibFuncAttributes(*CI->getCalledFunction(), *TLI); in isLocallyOpenedFile()
341 Function *Callee = CI->getCalledFunction(); in optimizeStrChr()
572 Function *Callee = CI->getCalledFunction(); in optimizeStpCpy()
600 Function *Callee = CI->getCalledFunction(); in optimizeStrNCpy()
1204 Function *InnerCallee = Malloc->getCalledFunction(); in foldMallocMemset()
1299 Function *CalleeFn = CI->getCalledFunction(); in optimizeDoubleFP()
1415 return B.CreateFNeg(B.CreateCall(Call->getCalledFunction(), X)); in optimizeTrigReflections()
1422 return B.CreateCall(Call->getCalledFunction(), X, "cos"); in optimizeTrigReflections()
1476 AttributeList Attrs = Pow->getCalledFunction()->getAttributes(); in replacePowWithExp()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DCallGraphSCCPass.cpp275 (Call->getCalledFunction() && in RefreshCallGraph()
276 Call->getCalledFunction()->isIntrinsic() && in RefreshCallGraph()
277 Intrinsic::isLeaf(Call->getCalledFunction()->getIntrinsicID()))) { in RefreshCallGraph()
295 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
312 Function *Callee = Call->getCalledFunction(); in RefreshCallGraph()
336 if (ExistingNode->getFunction() == Call->getCalledFunction()) in RefreshCallGraph()
344 if (CheckingMode && Call->getCalledFunction() && in RefreshCallGraph()
354 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
378 if (Function *Callee = Call->getCalledFunction()) { in RefreshCallGraph()
DInlineAdvisor.cpp107 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice()
130 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
229 if (!CS2 || CS2->getCalledFunction() != Caller) { in shouldBeDeferred()
322 Function *Callee = CB.getCalledFunction(); in shouldInline()
446 auto &Callee = *CB.getCalledFunction(); in getAdvice()
459 auto &Callee = *CB.getCalledFunction(); in getMandatoryKind()
DTypeMetadataUtils.cpp78 assert(CI->getCalledFunction()->getIntrinsicID() == Intrinsic::type_test); in findDevirtualizableCallsForTypeTest()
85 Function *F = AssumeCI->getCalledFunction(); in findDevirtualizableCallsForTypeTest()
103 assert(CI->getCalledFunction()->getIntrinsicID() == in findDevirtualizableCallsForTypeCheckedLoad()
/external/llvm-project/llvm/lib/Transforms/Utils/
DInjectTLIMappings.cpp57 VectorF->copyAttributesFrom(CI.getCalledFunction()); in addVariantDeclaration()
78 if (CI.isNoBuiltin() || !CI.getCalledFunction()) in addMappingsFromTLI()
81 StringRef ScalarName = CI.getCalledFunction()->getName(); in addMappingsFromTLI()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp183 Function *Callee = CI->getCalledFunction(); in optimizeStrChr()
339 Function *Callee = CI->getCalledFunction(); in optimizeStpCpy()
363 Function *Callee = CI->getCalledFunction(); in optimizeStrNCpy()
816 Function *InnerCallee = Malloc->getCalledFunction(); in foldMallocMemset()
882 Function *Callee = CI->getCalledFunction(); in optimizeUnaryDoubleFP()
921 Function *Callee = CI->getCalledFunction(); in optimizeBinaryDoubleFP()
948 Function *Callee = CI->getCalledFunction(); in optimizeCos()
989 Function *Callee = CI->getCalledFunction(); in optimizePow()
1023 Function *OpCCallee = OpC->getCalledFunction(); in optimizePow()
1107 Function *Callee = CI->getCalledFunction(); in optimizeExp2()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp61 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
113 Function *Fn = CI->getCalledFunction(); in handleBranchExpect()
160 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp141 if (!Call->hasOperandBundles() && Call->getCalledFunction() && in checkFunctionMemoryAccess()
142 SCCNodes.count(Call->getCalledFunction())) in checkFunctionMemoryAccess()
371 Function *F = CS.getCalledFunction(); in captured()
499 Function *F = CS.getCalledFunction(); in determinePointerReadAttrs()
642 if (auto *CalledFunc = CS.getCalledFunction()) { in addArgumentAttrsFromCallsites()
910 if (CS.getCalledFunction() && SCCNodes.count(CS.getCalledFunction())) in isFunctionMallocLike()
1017 Function *Callee = CS.getCalledFunction(); in isReturnNonNull()
1229 return CS && CS.isConvergent() && SCCNodes.count(CS.getCalledFunction()) == 0; in InstrBreaksNonConvergent()
1237 if (Function *Callee = CI->getCalledFunction()) { in InstrBreaksNonThrowing()
1254 Function *Callee = CS.getCalledFunction(); in InstrBreaksNoFree()
[all …]
DInliner.cpp279 Function *Callee = CS.getCalledFunction(); in InlineCallIfPossible()
353 if (!CS2 || CS2.getCalledFunction() != Caller) { in shouldBeDeferred()
425 Function *Callee = CS.getCalledFunction(); in shouldInline()
573 if (Function *Callee = CS.getCalledFunction()) in inlineCallsImpl()
602 if (Function *F = CallSites[i].first.getCalledFunction()) in inlineCallsImpl()
622 Function *Callee = CS.getCalledFunction(); in inlineCallsImpl()
932 if (Function *Callee = CS.getCalledFunction()) { in run()
1011 Function &Callee = *CS.getCalledFunction(); in run()
1029 Function &Callee = *CS.getCalledFunction(); in run()
1100 if (Function *NewCallee = CS.getCalledFunction()) in run()
/external/llvm-project/llvm/lib/Transforms/IPO/
DInliner.cpp259 Function *Callee = CB.getCalledFunction(); in inlineCallIfPossible()
354 if (Function *Callee = CB->getCalledFunction()) in inlineCallsImpl()
383 if (Function *F = CallSites[I].first->getCalledFunction()) in inlineCallsImpl()
405 Function *Callee = CB.getCalledFunction(); in inlineCallsImpl()
745 if (Function *Callee = CB->getCalledFunction()) { in run()
793 if (!Calls[I].first->getCalledFunction()->hasFnAttribute( in run()
814 Function &Callee = *CB->getCalledFunction(); in run()
867 Function *NewCallee = ICB->getCalledFunction(); in run()
874 NewCallee = ICB->getCalledFunction(); in run()
DFunctionAttrs.cpp141 if (!Call->hasOperandBundles() && Call->getCalledFunction() && in checkFunctionMemoryAccess()
142 SCCNodes.count(Call->getCalledFunction())) in checkFunctionMemoryAccess()
372 Function *F = CB->getCalledFunction(); in captured()
500 Function *F = CB.getCalledFunction(); in determinePointerReadAttrs()
643 if (auto *CalledFunc = CB->getCalledFunction()) { in addArgumentAttrsFromCallsites()
911 if (CB.getCalledFunction() && SCCNodes.count(CB.getCalledFunction())) in isFunctionMallocLike()
1018 Function *Callee = CB.getCalledFunction(); in isReturnNonNull()
1236 SCCNodes.count(CB->getCalledFunction()) == 0; in InstrBreaksNonConvergent()
1244 if (Function *Callee = CI->getCalledFunction()) { in InstrBreaksNonThrowing()
1261 Function *Callee = CB->getCalledFunction(); in InstrBreaksNoFree()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUInline.cpp114 Function *Callee = CB.getCalledFunction(); in getInlineThreshold()
159 Function *Callee = CB.getCalledFunction(); in isWrapperOnlyCall()
177 Function *Callee = CB.getCalledFunction(); in getInlineCost()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUInline.cpp115 Function *Callee = CS.getCalledFunction(); in getInlineThreshold()
160 Function *Callee = CS.getCalledFunction(); in isWrapperOnlyCall()
178 Function *Callee = CS.getCalledFunction(); in getInlineCost()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp82 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
246 Expect->getCalledFunction()->getIntrinsicID(), Expect, 2); in handlePhiDef()
300 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect()
370 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()

12345678910>>...16