/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | CallPromotionUtils.h | 18 class CallBase; variable 30 bool isLegalToPromote(const CallBase &CB, Function *Callee, 40 CallBase &promoteCall(CallBase &CB, Function *Callee, 50 CallBase &promoteCallWithIfThenElse(CallBase &CB, Function *Callee, 74 bool tryPromoteCall(CallBase &CB);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | AliasAnalysis.h | 411 ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx); 414 FunctionModRefBehavior getModRefBehavior(const CallBase *Call); 430 bool doesNotAccessMemory(const CallBase *Call) { in doesNotAccessMemory() 458 bool onlyReadsMemory(const CallBase *Call) { in onlyReadsMemory() 524 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc); 527 ModRefInfo getModRefInfo(const CallBase *Call, const Value *P, in getModRefInfo() 637 ModRefInfo getModRefInfo(Instruction *I, const CallBase *Call); 642 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2); 697 ModRefInfo getModRefInfo(Instruction *I, const CallBase *Call2, 699 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, [all …]
|
D | TypeBasedAliasAnalysis.h | 47 FunctionModRefBehavior getModRefBehavior(const CallBase *Call); 49 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, 51 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2,
|
D | ConstantFolding.h | 25 class CallBase; variable 146 bool canConstantFoldCallTo(const CallBase *Call, const Function *F); 150 Constant *ConstantFoldCall(const CallBase *Call, Function *F, 162 bool isMathLibCallNoop(const CallBase *Call, const TargetLibraryInfo *TLI);
|
D | InlineCost.h | 25 class CallBase; variable 202 int getCallsiteCost(CallBase &Call, const DataLayout &DL); 216 CallBase &Call, const InlineParams &Params, TargetTransformInfo &CalleeTTI, 227 getInlineCost(CallBase &Call, Function *Callee, const InlineParams &Params,
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | AliasAnalysis.h | 463 ModRefInfo getArgModRefInfo(const CallBase *Call, unsigned ArgIdx); 466 FunctionModRefBehavior getModRefBehavior(const CallBase *Call); 482 bool doesNotAccessMemory(const CallBase *Call) { in doesNotAccessMemory() 510 bool onlyReadsMemory(const CallBase *Call) { in onlyReadsMemory() 576 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc); 579 ModRefInfo getModRefInfo(const CallBase *Call, const Value *P, in getModRefInfo() 689 ModRefInfo getModRefInfo(Instruction *I, const CallBase *Call); 694 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2); 746 ModRefInfo getModRefInfo(Instruction *I, const CallBase *Call2, 748 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, [all …]
|
D | InlineAdvisor.h | 22 class CallBase; variable 59 InlineAdvice(InlineAdvisor *Advisor, CallBase &CB, 136 virtual std::unique_ptr<InlineAdvice> getAdvice(CallBase &CB) = 0; 181 std::unique_ptr<InlineAdvice> getAdvice(CallBase &CB) override; 190 std::unique_ptr<InlineAdvice> getAdvice(CallBase &CB) override; 197 static MandatoryInliningKind getMandatoryKind(CallBase &CB, 236 std::function<bool(CallBase &)> GetDefaultAdvice); 247 shouldInline(CallBase &CB, function_ref<InlineCost(CallBase &CB)> GetInlineCost, 264 void setInlineRemark(CallBase &CB, StringRef Message);
|
D | TypeBasedAliasAnalysis.h | 25 class CallBase; variable 47 FunctionModRefBehavior getModRefBehavior(const CallBase *Call); 49 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, 51 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2,
|
D | InlineCost.h | 25 class CallBase; variable 212 int getCallsiteCost(CallBase &Call, const DataLayout &DL); 226 getInlineCost(CallBase &Call, const InlineParams &Params, 240 getInlineCost(CallBase &Call, Function *Callee, const InlineParams &Params, 255 CallBase &Call, Function *Callee, TargetTransformInfo &CalleeTTI, 267 CallBase &Call, TargetTransformInfo &CalleeTTI,
|
D | IndirectCallVisitor.h | 21 std::vector<CallBase *> IndirectCalls; 24 void visitCallBase(CallBase &Call) { in visitCallBase() 31 inline std::vector<CallBase *> findIndirectCalls(Function &F) { in findIndirectCalls()
|
D | MLInlineAdvisor.h | 34 std::unique_ptr<InlineAdvice> getAdvice(CallBase &CB) override; 46 getMandatoryAdvice(CallBase &CB, OptimizationRemarkEmitter &ORE); 49 getAdviceFromModel(CallBase &CB, OptimizationRemarkEmitter &ORE); 72 MLInlineAdvice(MLInlineAdvisor *Advisor, CallBase &CB, in MLInlineAdvice()
|
D | ConstantFolding.h | 25 class CallBase; variable 150 bool canConstantFoldCallTo(const CallBase *Call, const Function *F); 154 Constant *ConstantFoldCall(const CallBase *Call, Function *F, 166 bool isMathLibCallNoop(const CallBase *Call, const TargetLibraryInfo *TLI);
|
/external/llvm-project/llvm/lib/Transforms/CFGuard/ |
D | CFGuard.cpp | 101 void insertCFGuardCheck(CallBase *CB); 142 void insertCFGuardDispatch(CallBase *CB); 158 void CFGuard::insertCFGuardCheck(CallBase *CB) { in insertCFGuardCheck() 182 void CFGuard::insertCFGuardDispatch(CallBase *CB) { in insertCFGuardDispatch() 209 CallBase *NewCB = CallBase::Create(CB, Bundles, CB); in insertCFGuardDispatch() 256 SmallVector<CallBase *, 8> IndirectCalls; in runOnFunction() 264 auto *CB = dyn_cast<CallBase>(&I); in runOnFunction() 279 for (CallBase *CB : IndirectCalls) { in runOnFunction() 283 for (CallBase *CB : IndirectCalls) { in runOnFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/CFGuard/ |
D | CFGuard.cpp | 101 void insertCFGuardCheck(CallBase *CB); 142 void insertCFGuardDispatch(CallBase *CB); 158 void CFGuard::insertCFGuardCheck(CallBase *CB) { in insertCFGuardCheck() 182 void CFGuard::insertCFGuardDispatch(CallBase *CB) { in insertCFGuardDispatch() 207 CallBase *NewCB; in insertCFGuardDispatch() 261 SmallVector<CallBase *, 8> IndirectCalls; in runOnFunction() 269 auto *CB = dyn_cast<CallBase>(&I); in runOnFunction() 284 for (CallBase *CB : IndirectCalls) { in runOnFunction() 288 for (CallBase *CB : IndirectCalls) { in runOnFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Statepoint.cpp | 20 bool llvm::isStatepoint(const CallBase *Call) { in isStatepoint() 27 if (auto *Call = dyn_cast<CallBase>(V)) in isStatepoint() 36 bool llvm::isGCRelocate(const CallBase *Call) { in isGCRelocate() 41 if (auto *Call = dyn_cast<CallBase>(V)) in isGCRelocate() 46 bool llvm::isGCResult(const CallBase *Call) { return isa<GCResultInst>(Call); } in isGCResult() 49 if (auto *Call = dyn_cast<CallBase>(V)) in isGCResult()
|
/external/llvm-project/llvm/tools/llvm-reduce/deltas/ |
D | ReduceOperandBundles.cpp | 43 DenseMap<CallBase *, std::vector<unsigned>> CallsToRefine; 50 void visitCallBase(CallBase &Call) { in visitCallBase() 70 void visitCallBase(CallBase &Call) { in visitCallBase() 79 CallBase *OrigCall, ArrayRef<unsigned> OperandBundlesToKeepIndexes) { in maybeRewriteCallWithDifferentBundles() 93 CallBase *NewCall = CallBase::Create(OrigCall, NewBundles, OrigCall); in maybeRewriteCallWithDifferentBundles()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CallPromotionUtils.cpp | 164 static void createRetBitCast(CallBase &CB, Type *RetTy, CastInst **RetBitCast) { in createRetBitCast() 286 static CallBase &versionCallSite(CallBase &CB, Value *Callee, in versionCallSite() 290 CallBase *OrigInst = &CB; in versionCallSite() 306 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() 351 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() 386 bool llvm::isLegalToPromote(const CallBase &CB, Function *Callee, in isLegalToPromote() 445 CallBase &llvm::promoteCall(CallBase &CB, Function *Callee, in promoteCall() 528 CallBase &llvm::promoteCallWithIfThenElse(CallBase &CB, Function *Callee, in promoteCallWithIfThenElse() 534 CallBase &NewInst = versionCallSite(CB, Callee, BranchWeights); in promoteCallWithIfThenElse() 540 bool llvm::tryPromoteCall(CallBase &CB) { in tryPromoteCall()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | InlineAdvisor.cpp | 54 DefaultInlineAdvice(DefaultInlineAdvisor *Advisor, CallBase &CB, in DefaultInlineAdvice() 81 CallBase *const OriginalCB; 88 CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) { in getDefaultInlineAdvice() 106 auto GetInlineCost = [&](CallBase &CB) { in getDefaultInlineAdvice() 120 std::unique_ptr<InlineAdvice> DefaultInlineAdvisor::getAdvice(CallBase &CB) { in getAdvice() 127 InlineAdvice::InlineAdvice(InlineAdvisor *Advisor, CallBase &CB, in InlineAdvice() 167 llvm::getDevelopmentModeAdvisor(M, MAM, [&FAM, Params](CallBase &CB) { in tryCreate() 189 function_ref<InlineCost(CallBase &CB)> GetInlineCost) { in shouldBeDeferred() 224 CallBase *CS2 = dyn_cast<CallBase>(U); in shouldBeDeferred() 302 void llvm::setInlineRemark(CallBase &CB, StringRef Message) { in setInlineRemark() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Statepoint.h | 58 bool isStatepoint(const CallBase *Call); 62 bool isGCRelocate(const CallBase *Call); 65 bool isGCResult(const CallBase *Call); 294 const CallBase> { 296 const CallBase>; 300 explicit ImmutableStatepoint(const CallBase *Call) : Base(Call) {} in ImmutableStatepoint() 306 : public StatepointBase<Function, Instruction, Value, CallBase> { 307 using Base = StatepointBase<Function, Instruction, Value, CallBase>; 311 explicit Statepoint(CallBase *Call) : Base(Call) {} in Statepoint() 336 const CallBase *getStatepoint() const { in getStatepoint() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | CallSiteSplitting.cpp | 88 static void addNonNullAttribute(CallBase &CB, Value *Op) { in addNonNullAttribute() 97 static void setConstantInArgument(CallBase &CB, Value *Op, in setConstantInArgument() 111 static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) { in isCondRelevantToAnyCallArgument() 131 static void recordCondition(CallBase &CB, BasicBlock *From, BasicBlock *To, in recordCondition() 154 static void recordConditions(CallBase &CB, BasicBlock *Pred, in recordConditions() 167 static void addConditions(CallBase &CB, const ConditionsTy &Conditions) { in addConditions() 186 static bool canSplitCallSite(CallBase &CB, TargetTransformInfo &TTI) { in canSplitCallSite() 305 CallBase &CB, in splitCallSite() 335 cast<CallBase>(&*std::prev(SplitBlock->getTerminator()->getIterator())); in splitCallSite() 417 static bool isPredicatedOnPHI(CallBase &CB) { in isPredicatedOnPHI() [all …]
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | AlwaysInliner.cpp | 46 SmallSetVector<CallBase *, 16> Calls; in run() 62 if (auto *CB = dyn_cast<CallBase>(U)) in run() 66 for (CallBase *CB : Calls) { in run() 71 [&](CallBase &CB) { in run() 150 InlineCost getInlineCost(CallBase &CB) override; 185 InlineCost AlwaysInlinerLegacyPass::getInlineCost(CallBase &CB) { in getInlineCost()
|
D | ArgumentPromotion.cpp | 108 Optional<function_ref<void(CallBase &OldCS, CallBase &NewCS)>> in doPromotion() 242 CallBase &CB = cast<CallBase>(*F->user_back()); in doPromotion() 325 CallBase *NewCS = nullptr; in doPromotion() 490 CallBase &CB = cast<CallBase>(*U); in allCallersPassValidPointerForArgument() 850 CallBase *CB = dyn_cast<CallBase>(U.getUser()); in areFunctionArgsABICompatible() 869 Optional<function_ref<void(CallBase &OldCS, CallBase &NewCS)>> in promoteArguments() 908 CallBase *CB = dyn_cast<CallBase>(U.getUser()); in promoteArguments() 945 CallBase &CB = cast<CallBase>(*U.getUser()); in promoteArguments() 1138 auto ReplaceCallSite = [&](CallBase &OldCS, CallBase &NewCS) { in runOnSCC() 1143 CallerNode->replaceCallEdge(cast<CallBase>(OldCS), in runOnSCC() [all …]
|
D | Inliner.cpp | 255 CallBase &CB, InlineFunctionInfo &IFI, in inlineCallIfPossible() 314 function_ref<InlineCost(CallBase &CB)> GetInlineCost, in inlineCallsImpl() 329 SmallVector<std::pair<CallBase *, int>, 16> CallSites; in inlineCallsImpl() 345 auto *CB = dyn_cast<CallBase>(&I); in inlineCallsImpl() 401 CallBase &CB = *P.first; in inlineCallsImpl() 488 DenseSet<CallBase *> DbgCallSites; in inlineCallsImpl() 495 assert(DbgCallSites.count(dyn_cast<CallBase>(Ptr)) == 0); in inlineCallsImpl() 498 std::make_pair(dyn_cast<CallBase>(Ptr), NewHistoryID)); in inlineCallsImpl() 556 [&](CallBase &CB) { return getInlineCost(CB); }, LegacyAARGetter(*this), in inlineCalls() 732 SmallVector<std::pair<CallBase *, int>, 16> Calls; in run() [all …]
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | AbstractCallSite.h | 76 CallBase *CB; 105 static void getCallbackUses(const CallBase &CB, 112 CallBase *getInstruction() const { return CB; } in getInstruction() 226 void forEachCallbackCallSite(const CallBase &CB, UnaryFunction Func) { in forEachCallbackCallSite() 238 void forEachCallbackFunction(const CallBase &CB, UnaryFunction Func) { in forEachCallbackFunction()
|
/external/llvm-project/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCAPElim.cpp | 44 bool MayAutorelease(const CallBase &CB, unsigned Depth = 0) { in MayAutorelease() 50 if (const CallBase *JCB = dyn_cast<CallBase>(&I)) in MayAutorelease() 90 if (MayAutorelease(cast<CallBase>(*Inst))) in OptimizeBB()
|