/external/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 82 Function *Caller = CS.getCaller(); in InlineCallIfPossible() local 97 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); in InlineCallIfPossible() 191 const DataLayout &DL = Caller->getParent()->getDataLayout(); in InlineCallIfPossible() 226 Function *Caller = CS.getCaller(); in emitAnalysis() local 227 LLVMContext &Ctx = Caller->getContext(); in emitAnalysis() 229 emitOptimizationRemarkAnalysis(Ctx, DEBUG_TYPE, *Caller, DLoc, Msg); in emitAnalysis() 232 bool Inliner::shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC, in shouldBeDeferred() argument 236 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred() 258 bool callerWillBeRemoved = Caller->hasLocalLinkage(); in shouldBeDeferred() 261 for (User *U : Caller->users()) { in shouldBeDeferred() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | Inliner.cpp | 80 Function *Caller = CS.getCaller(); in InlineCallIfPossible() local 90 Caller->addFnAttr(Attribute::StackProtectReq); in InlineCallIfPossible() 92 !Caller->hasFnAttr(Attribute::StackProtectReq)) in InlineCallIfPossible() 93 Caller->addFnAttr(Attribute::StackProtect); in InlineCallIfPossible() 201 Function *Caller = CS.getCaller(); in getInlineThreshold() local 202 if (Caller && !Caller->isDeclaration() && in getInlineThreshold() 203 Caller->hasFnAttr(Attribute::OptimizeForSize) && in getInlineThreshold() 234 Function *Caller = CS.getCaller(); in shouldInline() local 251 if (Caller->hasLocalLinkage()) { in shouldInline() 258 for (Value::use_iterator I = Caller->use_begin(), E =Caller->use_end(); in shouldInline() [all …]
|
D | InlineAlways.cpp | 50 void resetCachedCostInfo(Function *Caller) { in resetCachedCostInfo() argument 51 CA.resetCachedCostInfo(Caller); in resetCachedCostInfo() 53 void growCachedCostInfo(Function* Caller, Function* Callee) { in growCachedCostInfo() argument 54 CA.growCachedCostInfo(Caller, Callee); in growCachedCostInfo()
|
D | InlineSimple.cpp | 50 void resetCachedCostInfo(Function *Caller) { in resetCachedCostInfo() argument 51 CA.resetCachedCostInfo(Caller); in resetCachedCostInfo() 53 void growCachedCostInfo(Function* Caller, Function* Callee) { in growCachedCostInfo() argument 54 CA.growCachedCostInfo(Caller, Callee); in growCachedCostInfo()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | MemoryBuiltinsTest.cpp | 36 std::unique_ptr<CallInst> Caller( in TEST() local 40 EXPECT_FALSE(isNoAliasFn(Caller.get(), TLI)); in TEST() 41 EXPECT_FALSE(isMallocLikeFn(Caller.get(), TLI)); in TEST() 42 EXPECT_FALSE(isCallocLikeFn(Caller.get(), TLI)); in TEST() 43 EXPECT_FALSE(isAllocLikeFn(Caller.get(), TLI)); in TEST() 48 EXPECT_FALSE(isAllocationFn(Caller.get(), TLI)); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/configs/common/lib/IR/ |
D | AttributesCompatFunc.inc | 482 static inline bool hasCompatibleFnAttrs(const Function &Caller, 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); 496 static inline void mergeFnAttrs(Function &Caller, 498 setOR<NoImplicitFloatAttr>(Caller, Callee); 499 setOR<NoJumpTablesAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-7.0/configs/common/include/llvm/IR/ |
D | Attributes.inc | 482 static inline bool hasCompatibleFnAttrs(const Function &Caller, 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); 496 static inline void mergeFnAttrs(Function &Caller, 498 setOR<NoImplicitFloatAttr>(Caller, Callee); 499 setOR<NoJumpTablesAttr>(Caller, Callee); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUInline.cpp | 107 Function *Caller = CS.getCaller(); in getInlineThreshold() local 114 && !Caller->hasFnAttribute(Attribute::MinSize)) in getInlineThreshold() 117 const DataLayout &DL = Caller->getParent()->getDataLayout(); in getInlineThreshold() 121 const AMDGPUAS AS = AMDGPU::getAMDGPUAS(*Caller->getParent()); in getInlineThreshold() 174 Function *Caller = CS.getCaller(); in getInlineCost() local 178 !TTI.areInlineCompatible(Caller, Callee)) in getInlineCost() 193 const auto &BBs = Caller->getBasicBlockList(); in getInlineCost() 200 OptimizationRemarkEmitter ORE(Caller); in getInlineCost()
|
D | AMDGPUOpenCLEnqueuedBlockLowering.cpp | 84 auto *Caller = CI->getParent()->getParent(); in collectCallers() local 85 if (Callers.insert(Caller).second) in collectCallers() 86 collectCallers(Caller, Callers); in collectCallers()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 154 Function *Caller, InlineFunctionInfo &IFI, in mergeInlinedArrayAllocas() argument 226 const DataLayout &DL = Caller->getParent()->getDataLayout(); in mergeInlinedArrayAllocas() 272 Function *Caller = CS.getCaller(); in InlineCallIfPossible() local 282 ImportedFunctionsStats.recordInline(*Caller, *Callee); in InlineCallIfPossible() 284 AttributeFuncs::mergeAttributesForInlining(*Caller, *Callee); in InlineCallIfPossible() 287 mergeInlinedArrayAllocas(Caller, IFI, InlinedArrayAllocas, InlineHistory); in InlineCallIfPossible() 298 shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC, in shouldBeDeferred() argument 302 if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage()) in shouldBeDeferred() 324 bool callerWillBeRemoved = Caller->hasLocalLinkage(); in shouldBeDeferred() 327 for (User *U : Caller->users()) { in shouldBeDeferred() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 512 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedLandingPad() local 521 for (Function::iterator I = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad() 538 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad() 568 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedEHPad() local 599 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedEHPad() 614 ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad() 647 UnwindDestToken = ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad() 676 E = Caller->end(); in HandleInlinedEHPad() 1100 const Function *Caller = CS.getInstruction()->getParent()->getParent(); in UpdateCallGraphAfterInlining() local 1103 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 611 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedInvoke() local 628 for (Function::iterator BB = FirstNewBlock, E = Caller->end(); BB != E; ++BB){ in HandleInlinedInvoke() 673 const Function *Caller = CS.getInstruction()->getParent()->getParent(); in UpdateCallGraphAfterInlining() local 676 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() 770 Function *Caller = TheCall->getParent()->getParent(); in HandleByValArgument() local 773 &*Caller->begin()->begin()); in HandleByValArgument() 776 Function *MemCpyFn = Intrinsic::getDeclaration(Caller->getParent(), in HandleByValArgument() 914 Function *Caller = OrigBB->getParent(); in InlineFunction() local 921 if (!Caller->hasGC()) in InlineFunction() 922 Caller->setGC(CalledFunc->getGC()); in InlineFunction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 592 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedLandingPad() local 601 for (Function::iterator I = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad() 618 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedLandingPad() 648 Function *Caller = FirstNewBlock->getParent(); in HandleInlinedEHPad() local 679 for (Function::iterator BB = FirstNewBlock->getIterator(), E = Caller->end(); in HandleInlinedEHPad() 694 ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad() 727 UnwindDestToken = ConstantTokenNone::get(Caller->getContext()); in HandleInlinedEHPad() 756 E = Caller->end(); in HandleInlinedEHPad() 1178 const Function *Caller = CS.getCaller(); in UpdateCallGraphAfterInlining() local 1181 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Attributes.cpp | 1599 static bool isEqual(const Function &Caller, const Function &Callee) { in isEqual() argument 1600 return Caller.getFnAttribute(AttrClass::getKind()) == in isEqual() 1610 static void setAND(Function &Caller, const Function &Callee) { in setAND() argument 1611 if (AttrClass::isSet(Caller, AttrClass::getKind()) && in setAND() 1613 AttrClass::set(Caller, AttrClass::getKind(), false); in setAND() 1622 static void setOR(Function &Caller, const Function &Callee) { in setOR() argument 1623 if (!AttrClass::isSet(Caller, AttrClass::getKind()) && in setOR() 1625 AttrClass::set(Caller, AttrClass::getKind(), true); in setOR() 1630 static void adjustCallerSSPLevel(Function &Caller, const Function &Callee) { in adjustCallerSSPLevel() argument 1640 Caller.removeAttributes(AttributeList::FunctionIndex, OldSSPAttr); in adjustCallerSSPLevel() [all …]
|
/external/clang/lib/Sema/ |
D | SemaCUDA.cpp | 95 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument 100 (Caller != nullptr) ? IdentifyCUDATarget(Caller) : Sema::CFT_Host; in IdentifyCUDAPreference() 150 Sema &S, const FunctionDecl *Caller, llvm::SmallVectorImpl<T> &Matches, in EraseUnwantedCUDAMatchesImpl() argument 157 return S.IdentifyCUDAPreference(Caller, FetchDecl(Match)); in EraseUnwantedCUDAMatchesImpl() 172 void Sema::EraseUnwantedCUDAMatches(const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument 175 *this, Caller, Matches, [](const FunctionDecl *item) { return item; }); in EraseUnwantedCUDAMatches() 178 void Sema::EraseUnwantedCUDAMatches(const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument 181 *this, Caller, Matches, [](const DeclAccessPair &item) { in EraseUnwantedCUDAMatches() 187 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument 190 *this, Caller, Matches, in EraseUnwantedCUDAMatches()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Attributes.inc | 435 static inline bool hasCompatibleFnAttrs(const Function &Caller, 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 447 static inline void mergeFnAttrs(Function &Caller, 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 | 435 static inline bool hasCompatibleFnAttrs(const Function &Caller, 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 447 static inline void mergeFnAttrs(Function &Caller, 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 | 435 static inline bool hasCompatibleFnAttrs(const Function &Caller, 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 447 static inline void mergeFnAttrs(Function &Caller, 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/Linux/include/llvm/IR/ |
D | Attributes.gen | 435 static inline bool hasCompatibleFnAttrs(const Function &Caller, 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 447 static inline void mergeFnAttrs(Function &Caller, 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 | 435 static inline bool hasCompatibleFnAttrs(const Function &Caller, 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 447 static inline void mergeFnAttrs(Function &Caller, 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 | 435 static inline bool hasCompatibleFnAttrs(const Function &Caller, 439 Ret &= isEqual<SanitizeAddressAttr>(Caller, Callee); 440 Ret &= isEqual<SanitizeThreadAttr>(Caller, Callee); 441 Ret &= isEqual<SanitizeMemoryAttr>(Caller, Callee); 442 Ret &= isEqual<SafeStackAttr>(Caller, Callee); 447 static inline void mergeFnAttrs(Function &Caller, 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-7.0/llvm/lib/Analysis/ |
D | SyntheticCountsUtils.cpp | 63 auto Caller = E.first; in propagateFromSCC() local 65 RelFreq *= Scaled64(GetCount(Caller), 0); in propagateFromSCC() 80 auto Caller = E.first; in propagateFromSCC() local 82 RelFreq *= Scaled64(GetCount(Caller), 0); in propagateFromSCC()
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_calling_conv_main.cpp | 68 void (*Caller)(void); in testCaller() member 106 Funcs[f].Caller(); in testCaller() 129 void (*Caller)(void); in testCallee() member 156 Funcs[f].Caller(); in testCallee() 160 Funcs[f].Caller(); in testCallee()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 1003 Instruction *Caller = CS.getInstruction(); in transformConstExprCastCall() local 1011 Type *OldRetTy = Caller->getType(); in transformConstExprCastCall() 1023 OldRetTy == TD->getIntPtrType(Caller->getContext())) && in transformConstExprCastCall() 1025 NewRetTy == TD->getIntPtrType(Caller->getContext())))) in transformConstExprCastCall() 1028 if (!Caller->use_empty() && in transformConstExprCastCall() 1033 if (!CallerPAL.isEmpty() && !Caller->use_empty()) { in transformConstExprCastCall() 1043 if (!Caller->use_empty()) in transformConstExprCastCall() 1044 if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) in transformConstExprCastCall() 1085 ParamTy == TD->getIntPtrType(Caller->getContext())) && in transformConstExprCastCall() 1087 ActTy == TD->getIntPtrType(Caller->getContext())))); in transformConstExprCastCall() [all …]
|
/external/llvm/lib/IR/ |
D | Attributes.cpp | 1572 static bool isEqual(const Function &Caller, const Function &Callee) { in isEqual() argument 1573 return Caller.getFnAttribute(AttrClass::getKind()) == in isEqual() 1583 static void setAND(Function &Caller, const Function &Callee) { in setAND() argument 1584 if (AttrClass::isSet(Caller, AttrClass::getKind()) && in setAND() 1586 AttrClass::set(Caller, AttrClass::getKind(), false); in setAND() 1595 static void setOR(Function &Caller, const Function &Callee) { in setOR() argument 1596 if (!AttrClass::isSet(Caller, AttrClass::getKind()) && in setOR() 1598 AttrClass::set(Caller, AttrClass::getKind(), true); in setOR() 1603 static void adjustCallerSSPLevel(Function &Caller, const Function &Callee) { in adjustCallerSSPLevel() argument 1611 AttributeSet OldSSPAttr = AttributeSet::get(Caller.getContext(), in adjustCallerSSPLevel() [all …]
|