/openbsd-current/gnu/llvm/llvm/lib/Transforms/CFGuard/ |
H A D | CFGuard.cpp | 100 /// \param CB indirect call to instrument. 101 void insertCFGuardCheck(CallBase *CB); 141 /// \param CB indirect call to instrument. 142 void insertCFGuardDispatch(CallBase *CB); 158 void CFGuard::insertCFGuardCheck(CallBase *CB) { argument 160 assert(Triple(CB->getModule()->getTargetTriple()).isOSWindows() && 162 assert(CB->isIndirectCall() && 165 IRBuilder<> B(CB); 166 Value *CalledOperand = CB->getCalledOperand(); 171 if (auto Bundle = CB 188 insertCFGuardDispatch(CallBase *CB) argument 277 auto *CB = dyn_cast<CallBase>(&I); local [all...] |
/openbsd-current/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
H A D | CallPromotionUtils.h | 31 bool isLegalToPromote(const CallBase &CB, Function *Callee, 41 CallBase &promoteCall(CallBase &CB, Function *Callee, 51 CallBase &promoteCallWithIfThenElse(CallBase &CB, Function *Callee, 75 bool tryPromoteCall(CallBase &CB); 84 CallBase &versionCallSite(CallBase &CB, Value *Callee, MDNode *BranchWeights);
|
/openbsd-current/gnu/llvm/llvm/include/llvm/Analysis/ |
H A D | ObjCARCUtil.h | 29 inline bool hasAttachedCallOpBundle(const CallBase *CB) { argument 36 return !CB->getFunctionType()->getReturnType()->isVoidTy() && 37 CB->getOperandBundle(LLVMContext::OB_clang_arc_attachedcall) 43 inline std::optional<Function *> getAttachedARCFunction(const CallBase *CB) { argument 44 auto B = CB->getOperandBundle(LLVMContext::OB_clang_arc_attachedcall); 60 inline ARCInstKind getAttachedARCFunctionKind(const CallBase *CB) { argument 61 std::optional<Function *> Fn = getAttachedARCFunction(CB);
|
/openbsd-current/gnu/llvm/llvm/include/llvm/IR/ |
H A D | AbstractCallSite.h | 59 /// site CB is the callback callee. The remaining elements map parameters 76 CallBase *CB; member in class:llvm::AbstractCallSite 100 /// Add operand uses of \p CB that represent callback uses into 105 static void getCallbackUses(const CallBase &CB, 109 explicit operator bool() const { return CB != nullptr; } 112 CallBase *getInstruction() const { return CB; } 116 return !isCallbackCall() && !CB->isIndirectCall(); 121 return !isCallbackCall() && CB->isIndirectCall(); 139 return CB->isCallee(U); 150 return (int)CB 226 forEachCallbackCallSite(const CallBase &CB, UnaryFunction Func) argument 238 forEachCallbackFunction(const CallBase &CB, UnaryFunction Func) argument [all...] |
H A D | Assumptions.h | 55 /// Return true if \p CB or the callee has the assumption \p AssumptionStr 57 bool hasAssumption(const CallBase &CB, 63 /// Return the set of all assumptions for the call \p CB. 64 DenseSet<StringRef> getAssumptions(const CallBase &CB); 69 /// Appends the set of assumptions \p Assumptions to \CB. 70 bool addAssumptions(CallBase &CB, const DenseSet<StringRef> &Assumptions);
|
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UnreachableCodeChecker.cpp | 40 static inline const Stmt *getUnreachableStmt(const CFGBlock *CB); 41 static void FindUnreachableEntryPoints(const CFGBlock *CB, 44 static bool isInvalidPath(const CFGBlock *CB, const ParentMap &PM); 45 static inline bool isEmptyCFGBlock(const CFGBlock *CB); 79 const CFGBlock *CB = BE->getBlock(); local 80 reachable.insert(CB->getBlockID()); 97 const CFGBlock *CB = *I; local 99 if (reachable.count(CB->getBlockID())) 103 if (isEmptyCFGBlock(CB)) 107 if (!visited.count(CB 179 FindUnreachableEntryPoints(const CFGBlock *CB, CFGBlocksSet &reachable, CFGBlocksSet &visited) argument 201 getUnreachableStmt(const CFGBlock *CB) argument 219 isInvalidPath(const CFGBlock *CB, const ParentMap &PM) argument 251 isEmptyCFGBlock(const CFGBlock *CB) argument [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | CallSiteSplitting.cpp | 88 static void addNonNullAttribute(CallBase &CB, Value *Op) { argument 90 for (auto &I : CB.args()) { 92 CB.addParamAttr(ArgNo, Attribute::NonNull); 97 static void setConstantInArgument(CallBase &CB, Value *Op, argument 100 for (auto &I : CB.args()) { 104 CB.removeParamAttr(ArgNo, Attribute::NonNull); 105 CB.setArgOperand(ArgNo, ConstValue); 111 static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) { argument 115 for (auto I = CB.arg_begin(), E = CB 131 recordCondition(CallBase &CB, BasicBlock *From, BasicBlock *To, ConditionsTy &Conditions) argument 154 recordConditions(CallBase &CB, BasicBlock *Pred, ConditionsTy &Conditions, BasicBlock *StopAt) argument 167 addConditions(CallBase &CB, const ConditionsTy &Conditions) argument 186 canSplitCallSite(CallBase &CB, TargetTransformInfo &TTI) argument 304 splitCallSite(CallBase &CB, ArrayRef<std::pair<BasicBlock *, ConditionsTy>> Preds, DomTreeUpdater &DTU) argument 416 isPredicatedOnPHI(CallBase &CB) argument 443 shouldSplitOnPHIPredicatedArgument(CallBase &CB) argument 454 shouldSplitOnPredicatedArgument(CallBase &CB, DomTreeUpdater &DTU) argument 486 tryToSplitCallSite(CallBase &CB, TargetTransformInfo &TTI, DomTreeUpdater &DTU) argument 515 CallBase *CB = dyn_cast<CallBase>(&*II++); local [all...] |
/openbsd-current/gnu/llvm/llvm/lib/IR/ |
H A D | AbstractCallSite.cpp | 35 const CallBase &CB, SmallVectorImpl<const Use *> &CallbackUses) { 36 const Function *Callee = CB.getCalledFunction(); 49 if (CBCalleeIdx < CB.arg_size()) 50 CallbackUses.push_back(CB.arg_begin() + CBCalleeIdx); 56 : CB(dyn_cast<CallBase>(U->getUser())) { 59 if (!CB) { 64 // cast expression and afterwards re-initializing CB accordingly. 68 CB = dyn_cast<CallBase>(U->getUser()); 71 if (!CB) { 78 // call site CB i 34 getCallbackUses( const CallBase &CB, SmallVectorImpl<const Use *> &CallbackUses) argument [all...] |
H A D | Assumptions.cpp | 76 bool llvm::hasAssumption(const CallBase &CB, argument 78 if (Function *F = CB.getCalledFunction()) 82 const Attribute &A = CB.getFnAttr(AssumptionAttrKey); 91 DenseSet<StringRef> llvm::getAssumptions(const CallBase &CB) { argument 92 const Attribute &A = CB.getFnAttr(AssumptionAttrKey); 100 bool llvm::addAssumptions(CallBase &CB, argument 102 return ::addAssumptionsImpl(CB, Assumptions);
|
/openbsd-current/gnu/llvm/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyOptimizeReturned.cpp | 45 void visitCallBase(CallBase &CB); 58 void OptimizeReturned::visitCallBase(CallBase &CB) { argument 59 for (unsigned I = 0, E = CB.arg_size(); I < E; ++I) 60 if (CB.paramHasAttr(I, Attribute::Returned)) { 61 Value *Arg = CB.getArgOperand(I); 66 Arg->replaceUsesWithIf(&CB, 67 [&](Use &U) { return DT->dominates(&CB, U); });
|
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | CallPromotionUtils.cpp | 162 static void createRetBitCast(CallBase &CB, Type *RetTy, CastInst **RetBitCast) { argument 166 SmallVector<User *, 16> UsersToUpdate(CB.users()); 171 if (auto *Invoke = dyn_cast<InvokeInst>(&CB)) 175 InsertBefore = &*std::next(CB.getIterator()); 178 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); 184 U->replaceUsesOfWith(&CB, Cast); 282 CallBase &llvm::versionCallSite(CallBase &CB, Value *Callee, argument 285 IRBuilder<> Builder(&CB); 286 CallBase *OrigInst = &CB; 291 if (CB 382 isLegalToPromote(const CallBase &CB, Function *Callee, const char **FailureReason) argument 468 promoteCall(CallBase &CB, Function *Callee, CastInst **RetBitCast) argument 549 promoteCallWithIfThenElse(CallBase &CB, Function *Callee, MDNode *BranchWeights) argument 561 tryPromoteCall(CallBase &CB) argument [all...] |
/openbsd-current/gnu/llvm/llvm/tools/opt/ |
H A D | AnalysisWrappers.cpp | 42 CallBase *CB = dyn_cast<CallBase>(UI); variable 43 if (!CB) 46 for (auto AI = CB->arg_begin(), E = CB->arg_end(); AI != E; ++AI) {
|
/openbsd-current/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceOpcodes.cpp | 76 static bool callLooksLikeLoadStore(CallBase *CB, Value *&DataArg, argument 78 const bool IsStore = CB->getType()->isVoidTy(); 82 for (Value *Arg : CB->args()) { 93 if (!IsStore && !PT->isOpaqueOrPointeeTypeMatches(CB->getType())) 108 DataArg = ConstantInt::get(IntegerType::getInt32Ty(CB->getContext()), 0); 113 unsigned AS = CB->getModule()->getDataLayout().getAllocaAddrSpace(); 117 : IntegerType::getInt32Ty(CB->getContext()), 133 static Value *tryReplaceCallWithLoadStore(Oracle &O, Module &M, CallBase *CB) { argument 136 if (!callLooksLikeLoadStore(CB, DataArg, PtrArg) || O.shouldKeep()) 139 IRBuilder<> B(CB); 145 callLooksLikeOperator(CallBase *CB, SmallVectorImpl<Value *> &OperatorArgs) argument 164 tryReplaceCallWithOperator(Oracle &O, Module &M, CallBase *CB) argument [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | AlwaysInliner.cpp | 56 if (auto *CB = dyn_cast<CallBase>(U)) 57 if (CB->getCalledFunction() == &F && 58 CB->hasFnAttr(Attribute::AlwaysInline) && 59 !CB->getAttributes().hasFnAttr(Attribute::NoInline)) 60 Calls.insert(CB); 62 for (CallBase *CB : Calls) { 63 Function *Caller = CB->getCaller(); 65 DebugLoc DLoc = CB->getDebugLoc(); 66 BasicBlock *Block = CB->getParent(); 74 InlineFunction(*CB, IF 191 getInlineCost(CallBase &CB) argument [all...] |
H A D | InlineSimple.cpp | 48 InlineCost getInlineCost(CallBase &CB) override { 49 Function *Callee = CB.getCalledFunction(); 53 const auto &BBs = *CB.getCaller(); 59 OptimizationRemarkEmitter ORE(CB.getCaller()); 65 return llvm::getInlineCost(CB, Params, TTI, GetAssumptionCache, GetTLI,
|
H A D | DeadArgumentElimination.cpp | 177 CallBase *CB = dyn_cast<CallBase>(U); local 178 if (!CB) 182 Args.assign(CB->arg_begin(), CB->arg_begin() + NumArgs); 185 AttributeList PAL = CB->getAttributes(); 195 CB->getOperandBundlesAsDefs(OpBundles); 198 if (InvokeInst *II = dyn_cast<InvokeInst>(CB)) { 200 Args, OpBundles, "", CB); 202 NewCB = CallInst::Create(NF, Args, OpBundles, "", CB); 204 cast<CallInst>(CB) 309 CallBase *CB = dyn_cast<CallBase>(U.getUser()); local 550 const auto *CB = dyn_cast<CallBase>(U.getUser()); local 871 CallBase &CB = cast<CallBase>(*F->user_back()); local [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Analysis/ |
H A D | InlineOrder.cpp | 46 llvm::InlineCost getInlineCostWrapper(CallBase &CB, argument 49 Function &Caller = *CB.getCaller(); 53 *CB.getParent()->getParent()->getParent()); 66 Function &Callee = *CB.getCalledFunction(); 71 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, 78 SizePriority(const CallBase *CB, FunctionAnalysisManager &, argument 80 Function *Callee = CB->getCalledFunction(); 95 CostPriority(const CallBase *CB, FunctionAnalysisManager &FAM, argument 97 auto IC = getInlineCostWrapper(const_cast<CallBase &>(*CB), FAM, Params); 115 CostBenefitPriority(const CallBase *CB, FunctionAnalysisManage argument 183 MLPriority(const CallBase *CB, FunctionAnalysisManager &FAM, const InlineParams &Params) argument 211 updateAndCheckDecreased(const CallBase *CB) argument 244 CallBase *CB = Elt.first; variable 257 CallBase *CB = Heap.front(); variable [all...] |
H A D | InlineAdvisor.cpp | 72 MandatoryInlineAdvice(InlineAdvisor *Advisor, CallBase &CB, argument 75 : InlineAdvice(Advisor, CB, ORE, IsInliningMandatory) {} 134 CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) { 135 Function &Caller = *CB.getCaller(); 139 *CB.getParent()->getParent()->getParent()); 152 auto GetInlineCost = [&](CallBase &CB) { 153 Function &Callee = *CB.getCalledFunction(); 158 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, 162 CB, GetInlineCost, ORE, 167 DefaultInlineAdvisor::getAdviceImpl(CallBase &CB) { argument 133 getDefaultInlineAdvice( CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) argument 174 InlineAdvice(InlineAdvisor *Advisor, CallBase &CB, OptimizationRemarkEmitter &ORE, bool IsInliningRecommended) argument 364 setInlineRemark(CallBase &CB, StringRef Message) argument 377 shouldInline(CallBase &CB, function_ref<InlineCost(CallBase &CB)> GetInlineCost, OptimizationRemarkEmitter &ORE, bool EnableDeferral) argument 544 getMandatoryAdvice(CallBase &CB, bool Advice) argument 593 getMandatoryKind(CallBase &CB, FunctionAnalysisManager &FAM, OptimizationRemarkEmitter &ORE) argument 615 getAdvice(CallBase &CB, bool MandatoryOnly) argument 625 getCallerORE(CallBase &CB) argument [all...] |
H A D | MLInlineAdvisor.cpp | 282 std::unique_ptr<InlineAdvice> MLInlineAdvisor::getAdviceImpl(CallBase &CB) { argument 283 if (auto Skip = getSkipAdviceIfUnreachableCallsite(CB)) 286 auto &Caller = *CB.getCaller(); 287 auto &Callee = *CB.getCalledFunction(); 295 auto MandatoryKind = InlineAdvisor::getMandatoryKind(CB, FAM, ORE); 302 return getMandatoryAdvice(CB, false); 311 return OptimizationRemarkMissed(DEBUG_TYPE, "ForceStop", &CB) 314 return std::make_unique<InlineAdvice>(this, CB, ORE, Mandatory); 320 llvm::getInliningCostEstimate(CB, TIR, GetAssumptionCache); 325 return std::make_unique<InlineAdvice>(this, CB, OR 379 getAdviceFromModel(CallBase &CB, OptimizationRemarkEmitter &ORE) argument 386 getSkipAdviceIfUnreachableCallsite(CallBase &CB) argument 393 getMandatoryAdvice(CallBase &CB, bool Advice) argument 409 getMandatoryAdviceImpl(CallBase &CB) argument 425 MLInlineAdvice(MLInlineAdvisor *Advisor, CallBase &CB, OptimizationRemarkEmitter &ORE, bool Recommendation) argument [all...] |
H A D | ReplayInlineAdvisor.cpp | 93 std::unique_ptr<InlineAdvice> ReplayInlineAdvisor::getAdviceImpl(CallBase &CB) { argument 96 Function &Caller = *CB.getCaller(); 100 if (!hasInlineAdvice(*CB.getFunction())) { 103 return OriginalAdvisor->getAdvice(CB); 110 formatCallSiteLocation(CB.getDebugLoc(), ReplaySettings.ReplayFormat); 111 StringRef Callee = CB.getCalledFunction()->getName(); 121 this, CB, llvm::InlineCost::getAlways("previously inlined"), ORE, 127 return std::make_unique<DefaultInlineAdvice>(this, CB, std::nullopt, ORE, 136 this, CB, llvm::InlineCost::getAlways("AlwaysInline Fallback"), ORE, 141 return std::make_unique<DefaultInlineAdvice>(this, CB, st [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
H A D | IndirectCallPromotion.cpp | 136 const CallBase &CB, const ArrayRef<InstrProfValueData> &ValueDataRef, 141 uint32_t tryToPromote(CallBase &CB, 161 const CallBase &CB, const ArrayRef<InstrProfValueData> &ValueDataRef, 165 LLVM_DEBUG(dbgs() << " \nWork on callsite #" << NumOfPGOICallsites << CB 182 if (ICPInvokeOnly && isa<CallInst>(CB)) { 185 return OptimizationRemarkMissed(DEBUG_TYPE, "UserOptions", &CB) 190 if (ICPCallOnly && isa<InvokeInst>(CB)) { 193 return OptimizationRemarkMissed(DEBUG_TYPE, "UserOptions", &CB) 201 return OptimizationRemarkMissed(DEBUG_TYPE, "CutOffReached", &CB) 218 return OptimizationRemarkMissed(DEBUG_TYPE, "UnableToFindTarget", &CB) 160 getPromotionCandidatesForCallSite( const CallBase &CB, const ArrayRef<InstrProfValueData> &ValueDataRef, uint64_t TotalCount, uint32_t NumCandidates) argument 244 promoteIndirectCall(CallBase &CB, Function *DirectCallee, uint64_t Count, uint64_t TotalCount, bool AttachProfToDirectCall, OptimizationRemarkEmitter *ORE) argument 279 tryToPromote( CallBase &CB, const std::vector<PromotionCandidate> &Candidates, uint64_t &TotalCount) argument [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/ |
H A D | pmf7.C | 10 template<class SP, class CB> SP& call_dummy(SP* sp, CB cb) {
|
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
H A D | MPIBugReporter.h | 27 MPIBugReporter(const CheckerBase &CB) { argument 28 UnmatchedWaitBugType.reset(new BugType(&CB, "Unmatched wait", MPIError)); 30 new BugType(&CB, "Double nonblocking", MPIError)); 31 MissingWaitBugType.reset(new BugType(&CB, "Missing wait", MPIError));
|
/openbsd-current/gnu/llvm/clang/tools/libclang/ |
H A D | CIndexInclusionStack.cpp | 23 CXInclusionVisitor CB, CXClientData clientData) { 62 CB(static_cast<CXFile>(const_cast<FileEntry *>( 69 void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB, argument 85 getInclusions(/*IsLocal=*/false, SM.loaded_sloc_entry_size(), TU, CB, 93 getInclusions(/*IsLocal=*/true, n, TU, CB, clientData); 22 getInclusions(bool IsLocal, unsigned n, CXTranslationUnit TU, CXInclusionVisitor CB, CXClientData clientData) argument
|
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
H A D | CoroEarly.cpp | 28 void lowerResumeOrDestroy(CallBase &CB, CoroSubFnInst::ResumeKind); 47 void Lowerer::lowerResumeOrDestroy(CallBase &CB, argument 49 Value *ResumeAddr = makeSubFnCall(CB.getArgOperand(0), Index, &CB); 50 CB.setCalledOperand(ResumeAddr); 51 CB.setCallingConv(CallingConv::Fast); 165 if (auto *CB = dyn_cast<CoroBeginInst>(U)) 166 CB->setCannotDuplicate(); 174 auto *CB = dyn_cast<CallBase>(&I); local 175 if (!CB) [all...] |