/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/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/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/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 …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | InlineCost.h | 171 void resetCachedCostInfo(Function* Caller) { in resetCachedCostInfo() argument 172 CachedFunctionInfo[Caller] = FunctionInfo(); in resetCachedCostInfo() 178 void growCachedCostInfo(Function* Caller, Function* Callee);
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 68 CallSite Caller; // Holds the call that called subframes. member 78 Caller(O.Caller), Values(std::move(O.Values)), in ExecutionContext() 85 Caller = O.Caller;
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/IPO/ |
D | InlinerPass.h | 76 virtual void resetCachedCostInfo(Function* Caller) = 0; 80 virtual void growCachedCostInfo(Function *Caller, Function *Callee) = 0;
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InlineCost.cpp | 482 Function *Caller = TheCall->getParent()->getParent(); in getInlineCost() local 512 FunctionInfo &CallerFI = CachedFunctionInfo[Caller]; in getInlineCost() 516 CallerFI.analyzeFunction(Caller, TD); in getInlineCost() 600 InlineCostAnalyzer::growCachedCostInfo(Function *Caller, Function *Callee) { in growCachedCostInfo() argument 601 CodeMetrics &CallerMetrics = CachedFunctionInfo[Caller].Metrics; in growCachedCostInfo() 605 resetCachedCostInfo(Caller); in growCachedCostInfo() 622 resetCachedCostInfo(Caller); in growCachedCostInfo()
|
/external/spirv-llvm/lib/SPIRV/ |
D | OCLTypeToSPIRV.cpp | 257 auto Caller = cast<Argument>(SamplerArg)->getParent(); in adaptArgumentsBySamplerUse() local 258 addWork(Caller); in adaptArgumentsBySamplerUse() 259 TraceArg(Caller, getArgIndex(Caller, SamplerArg)); in adaptArgumentsBySamplerUse()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 2624 Instruction *Caller = CS.getInstruction(); in transformConstExprCastCall() local 2632 Type *OldRetTy = Caller->getType(); in transformConstExprCastCall() 2645 if (!Caller->use_empty() && in transformConstExprCastCall() 2651 if (!CallerPAL.isEmpty() && !Caller->use_empty()) { in transformConstExprCastCall() 2661 if (!Caller->use_empty()) in transformConstExprCastCall() 2662 if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) in transformConstExprCastCall() 2771 attrVec.push_back(AttributeSet::get(Caller->getContext(), in transformConstExprCastCall() 2787 attrVec.push_back(AttributeSet::get(Caller->getContext(), i + 1, in transformConstExprCastCall() 2826 Caller->setName(""); // Void type should not have a name. in transformConstExprCastCall() 2835 if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) { in transformConstExprCastCall() [all …]
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ScopeRequestIntegrationTest.java | 118 Callable<SomeObject> callable = injector.getInstance(Caller.class); in testNullReplacement() 129 callable = ServletScopes.scopeRequest(injector.getInstance(Caller.class), map); in testNullReplacement() 161 private static class Caller implements Callable<SomeObject> { class in ScopeRequestIntegrationTest
|
/external/llvm/include/llvm/Analysis/ |
D | LazyCallGraph.h | 816 void insertEdge(Node &Caller, Function &Callee, Edge::Kind EK); 819 void insertEdge(Function &Caller, Function &Callee, Edge::Kind EK) { in insertEdge() argument 820 return insertEdge(get(Caller), Callee, EK); in insertEdge() 824 void removeEdge(Node &Caller, Function &Callee); 827 void removeEdge(Function &Caller, Function &Callee) { in removeEdge() argument 828 return removeEdge(get(Caller), Callee); in removeEdge()
|
D | TargetTransformInfoImpl.h | 377 bool areInlineCompatible(const Function *Caller, in areInlineCompatible() argument 379 return (Caller->getFnAttribute("target-cpu") == in areInlineCompatible() 381 (Caller->getFnAttribute("target-features") == in areInlineCompatible()
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 622 Function *Caller = CS.getCaller(); in updateThreshold() local 630 if (Caller->optForMinSize() && OptMinSizeThreshold < Threshold) in updateThreshold() 632 else if (Caller->optForSize() && OptSizeThreshold < Threshold) in updateThreshold() 648 if (InlineHint && HintThreshold > Threshold && !Caller->optForMinSize()) in updateThreshold() 1274 Function *Caller = CS.getInstruction()->getParent()->getParent(); in analyzeCall() local 1276 for (User *U : Caller->users()) { in analyzeCall() 1281 if (I->getParent()->getParent() == Caller) { in analyzeCall() 1440 static bool functionsHaveCompatibleAttributes(Function *Caller, in functionsHaveCompatibleAttributes() argument 1443 return TTI.areInlineCompatible(Caller, Callee) && in functionsHaveCompatibleAttributes() 1444 AttributeFuncs::areInlineCompatible(*Caller, *Callee); in functionsHaveCompatibleAttributes()
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 603 if (Instruction *I = CallingSF.Caller.getInstruction()) { in popStackAndReturnValueToCaller() 605 if (!CallingSF.Caller.getType()->isVoidTy()) in popStackAndReturnValueToCaller() 609 CallingSF.Caller = CallSite(); // We returned from the call... in popStackAndReturnValueToCaller() 635 Inst = ECStack.back().Caller.getInstruction(); in visitUnwindInst() 640 InvokingSF.Caller = CallSite(); in visitUnwindInst() 879 SF.Caller = CS; in visitCallSite() 881 const unsigned NumArgs = SF.Caller.arg_size(); in visitCallSite() 884 for (CallSite::arg_iterator i = SF.Caller.arg_begin(), in visitCallSite() 885 e = SF.Caller.arg_end(); i != e; ++i, ++pNum) { in visitCallSite() 892 GenericValue SRC = getOperandValue(SF.Caller.getCalledValue(), SF); in visitCallSite() [all …]
|
/external/llvm/test/Transforms/Inline/ |
D | 2003-09-14-InlineValue.ll | 11 define i32 @Caller() personality i32 (...)* @__gxx_personality_v0 {
|
/external/swiftshader/third_party/LLVM/test/Transforms/Inline/ |
D | 2003-09-14-InlineValue.ll | 11 define i32 @Caller() {
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | InlinerPass.h | 84 bool shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC,
|
/external/llvm/test/Instrumentation/MemorySanitizer/ |
D | byval-alignment.ll | 13 define void @Caller() sanitize_memory {
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
D | PathDiagnostic.h | 553 : PathDiagnosticPiece(Call), Caller(callerD), Callee(nullptr), in PathDiagnosticCallPiece() 557 : PathDiagnosticPiece(Call), Caller(caller), Callee(nullptr), in PathDiagnosticCallPiece() 560 const Decl *Caller; variable 579 const Decl *getCaller() const { return Caller; } in getCaller()
|