/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 271 Function *Callee = CS.getCalledFunction(); in InlineCallIfPossible() local 274 AAResults &AAR = AARGetter(*Callee); in InlineCallIfPossible() 282 ImportedFunctionsStats.recordInline(*Caller, *Callee); in InlineCallIfPossible() 284 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); in InlineCallIfPossible() 378 Function *Callee = CS.getCalledFunction(); in shouldInline() local 392 << NV("Callee", Callee) << " not inlined into " in shouldInline() 405 << NV("Callee", Callee) << " not inlined into " in shouldInline() 421 << "Not inlining. Cost of inlining " << NV("Callee", Callee) in shouldInline() 509 if (Function *Callee = CS.getCalledFunction()) in inlineCallsImpl() local 510 if (Callee->isDeclaration()) { in inlineCallsImpl() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUInline.cpp | 110 Function *Callee = CS.getCalledFunction(); in getInlineThreshold() local 111 bool InlineHint = Callee && !Callee->isDeclaration() && in getInlineThreshold() 112 Callee->hasFnAttribute(Attribute::InlineHint); in getInlineThreshold() 118 if (!Callee) in getInlineThreshold() 155 Function *Callee = CS.getCalledFunction(); in isWrapperOnlyCall() local 156 if (!Callee || Callee->size() != 1) in isWrapperOnlyCall() 158 const BasicBlock &BB = Callee->getEntryBlock(); in isWrapperOnlyCall() 165 << Callee->getName() << '\n'); in isWrapperOnlyCall() 173 Function *Callee = CS.getCalledFunction(); in getInlineCost() local 175 TargetTransformInfo &TTI = TTIWP->getTTI(*Callee); in getInlineCost() [all …]
|
D | AMDGPUAnnotateKernelFeatures.cpp | 188 static bool handleAttr(Function &Parent, const Function &Callee, in handleAttr() argument 190 if (Callee.hasFnAttribute(Name)) { in handleAttr() 198 static void copyFeaturesToFunction(Function &Parent, const Function &Callee, in copyFeaturesToFunction() argument 214 if (handleAttr(Parent, Callee, "amdgpu-queue-ptr")) in copyFeaturesToFunction() 218 handleAttr(Parent, Callee, AttrName); in copyFeaturesToFunction() 236 Function *Callee = CS.getCalledFunction(); in addFeatureAttributes() local 239 if (!Callee) { in addFeatureAttributes() 245 Intrinsic::ID IID = Callee->getIntrinsicID(); in addFeatureAttributes() 248 copyFeaturesToFunction(F, *Callee, NeedQueuePtr); in addFeatureAttributes()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | CallPromotionUtils.cpp | 257 static Instruction *versionCallSite(CallSite CS, Value *Callee, in versionCallSite() argument 266 if (CS.getCalledValue()->getType() != Callee->getType()) in versionCallSite() 267 Callee = Builder.CreateBitCast(Callee, CS.getCalledValue()->getType()); in versionCallSite() 268 auto *Cond = Builder.CreateICmpEQ(CS.getCalledValue(), Callee); in versionCallSite() 320 bool llvm::isLegalToPromote(CallSite CS, Function *Callee, in isLegalToPromote() argument 327 Type *FuncRetTy = Callee->getReturnType(); in isLegalToPromote() 336 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote() 340 if (CS.arg_size() != NumParams && !Callee->isVarArg()) { in isLegalToPromote() 350 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote() 364 Instruction *llvm::promoteCall(CallSite CS, Function *Callee, in promoteCall() argument [all …]
|
D | SimplifyLibCalls.cpp | 229 Function *Callee = CI->getCalledFunction(); in optimizeStrChr() local 230 FunctionType *FT = Callee->getFunctionType(); in optimizeStrChr() 385 Function *Callee = CI->getCalledFunction(); in optimizeStpCpy() local 397 Type *PT = Callee->getFunctionType()->getParamType(0); in optimizeStpCpy() 409 Function *Callee = CI->getCalledFunction(); in optimizeStrNCpy() local 439 Type *PT = Callee->getFunctionType()->getParamType(0); in optimizeStrNCpy() 955 Function *Callee = CI->getCalledFunction(); in optimizeUnaryDoubleFP() local 982 if (!Callee->isIntrinsic()) { in optimizeUnaryDoubleFP() 985 StringRef CalleeName = Callee->getName(); in optimizeUnaryDoubleFP() 997 if (Callee->isIntrinsic()) { in optimizeUnaryDoubleFP() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-xray/ |
D | trie-node.h | 65 for (auto *Callee : Left.Callees) { in mergeTrieNodes() 66 LeftCalleesByFuncId[Callee->FuncId] = Callee; in mergeTrieNodes() 73 for (auto *Callee : Right.Callees) { in mergeTrieNodes() 74 auto iter = LeftCalleesByFuncId.find(Callee->FuncId); in mergeTrieNodes() 77 mergeTrieNodes(*(iter->second), *Callee, Node, NodeStore, MergeFn)); in mergeTrieNodes() 80 Node->Callees.push_back(Callee); in mergeTrieNodes()
|
/external/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 81 Function *Callee = CS.getCalledFunction(); in InlineCallIfPossible() local 86 BasicAAResult BAR(createLegacyPMBasicAAResult(P, *Callee)); in InlineCallIfPossible() 90 AAResults AAR(createLegacyPMAAResults(P, *Callee, BAR)); in InlineCallIfPossible() 97 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); in InlineCallIfPossible() 416 if (Function *Callee = CS.getCalledFunction()) in inlineCalls() local 417 if (Callee->isDeclaration()) in inlineCalls() 455 Function *Callee = CS.getCalledFunction(); in inlineCalls() local 470 if (!Callee || Callee->isDeclaration()) continue; in inlineCalls() 479 InlineHistoryIncludes(Callee, InlineHistoryID, InlineHistory)) in inlineCalls() 491 Twine(Callee->getName() + in inlineCalls() [all …]
|
D | InlineAlways.cpp | 93 Function *Callee = CS.getCalledFunction(); in getInlineCost() local 98 if (Callee && !Callee->isDeclaration() && in getInlineCost() 99 CS.hasFnAttr(Attribute::AlwaysInline) && isInlineViable(*Callee)) in getInlineCost()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 183 Function *Callee = CI->getCalledFunction(); in optimizeStrChr() local 184 FunctionType *FT = Callee->getFunctionType(); in optimizeStrChr() 339 Function *Callee = CI->getCalledFunction(); in optimizeStpCpy() local 351 Type *PT = Callee->getFunctionType()->getParamType(0); in optimizeStpCpy() 363 Function *Callee = CI->getCalledFunction(); in optimizeStrNCpy() local 393 Type *PT = Callee->getFunctionType()->getParamType(0); in optimizeStrNCpy() 882 Function *Callee = CI->getCalledFunction(); in optimizeUnaryDoubleFP() local 906 if (Callee->isIntrinsic()) { in optimizeUnaryDoubleFP() 908 Intrinsic::ID IID = Callee->getIntrinsicID(); in optimizeUnaryDoubleFP() 913 V = emitUnaryFloatFnCall(V, Callee->getName(), B, Callee->getAttributes()); in optimizeUnaryDoubleFP() [all …]
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_calling_conv_main.cpp | 49 CalleePtrTy Callee; variable 70 CalleePtrTy Callee; in testCaller() member 97 Callee = Funcs[f].Callee; in testCaller() 130 CalleePtrTy Callee, Subzero_Callee; in testCallee() member 155 Callee = Funcs[f].Callee; in testCallee() 159 Callee = Funcs[f].Subzero_Callee; in testCallee()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CallGraph.cpp | 78 const Function *Callee = CS.getCalledFunction(); in addToCallGraph() local 79 if (!Callee || !Intrinsic::isLeaf(Callee->getIntrinsicID())) in addToCallGraph() 84 else if (!Callee->isIntrinsic()) in addToCallGraph() 85 Node->addCalledFunction(CS, getOrInsertFunction(Callee)); in addToCallGraph() 204 void CallGraphNode::removeAnyCallEdgeTo(CallGraphNode *Callee) { in removeAnyCallEdgeTo() argument 206 if (CalledFunctions[i].second == Callee) { in removeAnyCallEdgeTo() 207 Callee->DropRef(); in removeAnyCallEdgeTo() 216 void CallGraphNode::removeOneAbstractEdgeTo(CallGraphNode *Callee) { in removeOneAbstractEdgeTo() argument 220 if (CR.second == Callee && CR.first == nullptr) { in removeOneAbstractEdgeTo() 221 Callee->DropRef(); in removeOneAbstractEdgeTo()
|
D | CallGraphSCCPass.cpp | 265 Function *Callee = CS.getCalledFunction(); in RefreshCallGraph() local 267 if (!Callee || !(Callee->isIntrinsic())) in RefreshCallGraph() 281 Function *Callee = CS.getCalledFunction(); in RefreshCallGraph() local 282 if (Callee && Callee->isIntrinsic()) continue; in RefreshCallGraph() 313 if (Function *Callee = CS.getCalledFunction()) { in RefreshCallGraph() local 314 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph() 320 << Callee->getName() << "'\n"); in RefreshCallGraph() 337 if (Function *Callee = CS.getCalledFunction()) { in RefreshCallGraph() local 338 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
|
D | SyntheticCountsUtils.cpp | 64 auto Callee = CGT::edge_dest(E.second); in propagateFromSCC() local 67 AdditionalCounts[Callee] += AdditionalCount; in propagateFromSCC() 81 auto Callee = CGT::edge_dest(E.second); in propagateFromSCC() local 83 AddCount(Callee, RelFreq.toInt<uint64_t>()); in propagateFromSCC()
|
/external/llvm/lib/Analysis/ |
D | CallGraph.cpp | 86 const Function *Callee = CS.getCalledFunction(); in addToCallGraph() local 87 if (!Callee || !Intrinsic::isLeaf(Callee->getIntrinsicID())) in addToCallGraph() 92 else if (!Callee->isIntrinsic()) in addToCallGraph() 93 Node->addCalledFunction(CS, getOrInsertFunction(Callee)); in addToCallGraph() 218 void CallGraphNode::removeAnyCallEdgeTo(CallGraphNode *Callee) { in removeAnyCallEdgeTo() argument 220 if (CalledFunctions[i].second == Callee) { in removeAnyCallEdgeTo() 221 Callee->DropRef(); in removeAnyCallEdgeTo() 230 void CallGraphNode::removeOneAbstractEdgeTo(CallGraphNode *Callee) { in removeOneAbstractEdgeTo() argument 234 if (CR.second == Callee && CR.first == nullptr) { in removeOneAbstractEdgeTo() 235 Callee->DropRef(); in removeOneAbstractEdgeTo()
|
D | CallGraphSCCPass.cpp | 253 Function *Callee = CS.getCalledFunction(); in RefreshCallGraph() local 255 if (!Callee || !(Callee->isIntrinsic())) in RefreshCallGraph() 269 Function *Callee = CS.getCalledFunction(); in RefreshCallGraph() local 270 if (Callee && Callee->isIntrinsic()) continue; in RefreshCallGraph() 301 if (Function *Callee = CS.getCalledFunction()) { in RefreshCallGraph() local 302 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph() 308 << Callee->getName() << "'\n"); in RefreshCallGraph() 325 if (Function *Callee = CS.getCalledFunction()) { in RefreshCallGraph() local 326 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph()
|
/external/swiftshader/third_party/llvm-7.0/configs/common/include/llvm/IR/ |
D | Attributes.inc | 483 const Function &Callee) { 486 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 487 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 488 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 489 Ret &= isEqual<SanitizeHWAddressAttr>(Caller, Callee); 490 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 491 Ret &= isEqual<ShadowCallStackAttr>(Caller, Callee); 497 const Function &Callee) { 498 setOR<NoImplicitFloatAttr>(Caller, Callee); 499 setOR<NoJumpTablesAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-7.0/configs/common/lib/IR/ |
D | AttributesCompatFunc.inc | 483 const Function &Callee) { 486 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 487 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 488 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 489 Ret &= isEqual<SanitizeHWAddressAttr>(Caller, Callee); 490 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 491 Ret &= isEqual<ShadowCallStackAttr>(Caller, Callee); 497 const Function &Callee) { 498 setOR<NoImplicitFloatAttr>(Caller, Callee); 499 setOR<NoJumpTablesAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 273 bool canLongjmp(Module &M, const Value *Callee) const; 455 Value *Callee = CI->getCalledValue(); in getInvokeWrapper() local 457 if (auto *F = dyn_cast<Function>(Callee)) in getInvokeWrapper() 460 auto *CalleeTy = cast<PointerType>(Callee->getType())->getElementType(); in getInvokeWrapper() 482 const Value *Callee) const { in canLongjmp() 483 if (auto *CalleeF = dyn_cast<Function>(Callee)) in canLongjmp() 492 if (Callee == SetjmpF || Callee == MallocF || Callee == FreeF) in canLongjmp() 496 if (Callee == ResumeF || Callee == EHTypeIDF || Callee == SaveSetjmpF || in canLongjmp() 497 Callee == TestSetjmpF) in canLongjmp() 501 if (Callee->getName().startswith(FindMatchingCatchPrefix)) in canLongjmp() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | CallPromotionUtils.h | 29 bool isLegalToPromote(CallSite CS, Function *Callee, 39 Instruction *promoteCall(CallSite CS, Function *Callee, 49 Instruction *promoteCallWithIfThenElse(CallSite CS, Function *Callee,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/ |
D | Coroutines.cpp | 180 const Function *Callee = CS.getCalledFunction(); in buildCGN() local 181 if (!Callee || !Intrinsic::isLeaf(Callee->getIntrinsicID())) in buildCGN() 186 else if (!Callee->isIntrinsic()) in buildCGN() 187 Node->addCalledFunction(CS, CG.getOrInsertFunction(Callee)); in buildCGN() 203 CallGraphNode *Callee = CG.getOrInsertFunction(F); in updateCallGraph() local 204 Nodes.push_back(Callee); in updateCallGraph() 205 buildCGN(CG, Callee); in updateCallGraph()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Attributes.inc | 436 const Function &Callee) { 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 448 const Function &Callee) { 449 adjustCallerSSPLevel(Caller, Callee); 450 setAND<LessPreciseFPMADAttr>(Caller, Callee); 451 setAND<NoInfsFPMathAttr>(Caller, Callee); 452 setAND<NoNansFPMathAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/ |
D | Attributes.gen | 436 const Function &Callee) { 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 448 const Function &Callee) { 449 adjustCallerSSPLevel(Caller, Callee); 450 setAND<LessPreciseFPMADAttr>(Caller, Callee); 451 setAND<NoInfsFPMathAttr>(Caller, Callee); 452 setAND<NoNansFPMathAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/ |
D | Attributes.gen | 436 const Function &Callee) { 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 448 const Function &Callee) { 449 adjustCallerSSPLevel(Caller, Callee); 450 setAND<LessPreciseFPMADAttr>(Caller, Callee); 451 setAND<NoInfsFPMathAttr>(Caller, Callee); 452 setAND<NoNansFPMathAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/ |
D | Attributes.gen | 436 const Function &Callee) { 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 448 const Function &Callee) { 449 adjustCallerSSPLevel(Caller, Callee); 450 setAND<LessPreciseFPMADAttr>(Caller, Callee); 451 setAND<NoInfsFPMathAttr>(Caller, Callee); 452 setAND<NoNansFPMathAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/ |
D | Attributes.gen | 436 const Function &Callee) { 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 448 const Function &Callee) { 449 adjustCallerSSPLevel(Caller, Callee); 450 setAND<LessPreciseFPMADAttr>(Caller, Callee); 451 setAND<NoInfsFPMathAttr>(Caller, Callee); 452 setAND<NoNansFPMathAttr>(Caller, Callee); [all …]
|