/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ObjCARCUtil.h | 29 inline bool hasAttachedCallOpBundle(const CallBase *CB) { in hasAttachedCallOpBundle() 43 inline std::optional<Function *> getAttachedARCFunction(const CallBase *CB) { in getAttachedARCFunction() 60 inline ARCInstKind getAttachedARCFunctionKind(const CallBase *CB) { in getAttachedARCFunctionKind()
|
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | CallSiteSplitting.cpp | 86 static void addNonNullAttribute(CallBase &CB, Value *Op) { in addNonNullAttribute() argument 95 static void setConstantInArgument(CallBase &CB, Value *Op, in setConstantInArgument() argument 109 static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) { in isCondRelevantToAnyCallArgument() argument 129 recordCondition(CallBase & CB,BasicBlock * From,BasicBlock * To,ConditionsTy & Conditions) recordCondition() argument 152 recordConditions(CallBase & CB,BasicBlock * Pred,ConditionsTy & Conditions,BasicBlock * StopAt) recordConditions() argument 165 addConditions(CallBase & CB,const ConditionsTy & Conditions) addConditions() argument 184 canSplitCallSite(CallBase & CB,TargetTransformInfo & TTI) canSplitCallSite() argument 302 splitCallSite(CallBase & CB,ArrayRef<std::pair<BasicBlock *,ConditionsTy>> Preds,DomTreeUpdater & DTU) splitCallSite() argument 416 isPredicatedOnPHI(CallBase & CB) isPredicatedOnPHI() argument 443 shouldSplitOnPHIPredicatedArgument(CallBase & CB) shouldSplitOnPHIPredicatedArgument() argument 454 shouldSplitOnPredicatedArgument(CallBase & CB,DomTreeUpdater & DTU) shouldSplitOnPredicatedArgument() argument 486 tryToSplitCallSite(CallBase & CB,TargetTransformInfo & TTI,DomTreeUpdater & DTU) tryToSplitCallSite() argument 515 CallBase *CB = dyn_cast<CallBase>(&*II++); doCallSiteSplitting() local [all...] |
/llvm-project/llvm/lib/IR/ |
H A D | ConvergenceVerifier.cpp | 20 const auto *CB = dyn_cast<CallBase>(&I); in getConvOp() local 45 auto *CB = dyn_cast<CallBase>(&I); in findAndCheckConvergenceTokenUsed() local 86 if (auto *CB = dyn_cast<CallBase>(&I)) { in isConvergent() local
|
H A D | Assumptions.cpp | 76 bool llvm::hasAssumption(const CallBase &CB, in hasAssumption() argument 91 DenseSet<StringRef> llvm::getAssumptions(const CallBase &CB) { in getAssumptions() argument 100 bool llvm::addAssumptions(CallBase &CB, in addAssumptions() argument
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | ClangdServer.cpp | 418 codeComplete(PathRef File,Position Pos,const clangd::CodeCompleteOptions & Opts,Callback<CodeCompleteResult> CB) codeComplete() argument 482 signatureHelp(PathRef File,Position Pos,MarkupKind DocumentationFormat,Callback<SignatureHelp> CB) signatureHelp() argument 510 formatFile(PathRef File,std::optional<Range> Rng,Callback<tooling::Replacements> CB) formatFile() argument 549 formatOnType(PathRef File,Position Pos,StringRef TriggerText,Callback<std::vector<TextEdit>> CB) formatOnType() argument 573 prepareRename(PathRef File,Position Pos,std::optional<std::string> NewName,const RenameOptions & RenameOpts,Callback<RenameResult> CB) prepareRename() argument 598 rename(PathRef File,Position Pos,llvm::StringRef NewName,const RenameOptions & Opts,Callback<RenameResult> CB) rename() argument 675 codeAction(const CodeActionInputs & Params,Callback<CodeActionResult> CB) codeAction() argument 737 applyTweak(PathRef File,Range Sel,StringRef TweakID,Callback<Tweak::Effect> CB) applyTweak() argument 784 locateSymbolAt(PathRef File,Position Pos,Callback<std::vector<LocatedSymbol>> CB) locateSymbolAt() argument 796 switchSourceHeader(PathRef Path,Callback<std::optional<clangd::Path>> CB) switchSourceHeader() argument 816 findDocumentHighlights(PathRef File,Position Pos,Callback<std::vector<DocumentHighlight>> CB) findDocumentHighlights() argument 828 findHover(PathRef File,Position Pos,Callback<std::optional<HoverInfo>> CB) findHover() argument 843 typeHierarchy(PathRef File,Position Pos,int Resolve,TypeHierarchyDirection Direction,Callback<std::vector<TypeHierarchyItem>> CB) typeHierarchy() argument 857 superTypes(const TypeHierarchyItem & Item,Callback<std::optional<std::vector<TypeHierarchyItem>>> CB) superTypes() argument 865 subTypes(const TypeHierarchyItem & Item,Callback<std::vector<TypeHierarchyItem>> CB) subTypes() argument 873 resolveTypeHierarchy(TypeHierarchyItem Item,int Resolve,TypeHierarchyDirection Direction,Callback<std::optional<TypeHierarchyItem>> CB) resolveTypeHierarchy() argument 882 prepareCallHierarchy(PathRef File,Position Pos,Callback<std::vector<CallHierarchyItem>> CB) prepareCallHierarchy() argument 894 incomingCalls(const CallHierarchyItem & Item,Callback<std::vector<CallHierarchyIncomingCall>> CB) incomingCalls() argument 902 inlayHints(PathRef File,std::optional<Range> RestrictRange,Callback<std::vector<InlayHint>> CB) inlayHints() argument 919 workspaceSymbols(llvm::StringRef Query,int Limit,Callback<std::vector<SymbolInformation>> CB) workspaceSymbols() argument 929 documentSymbols(llvm::StringRef File,Callback<std::vector<DocumentSymbol>> CB) documentSymbols() argument 941 foldingRanges(llvm::StringRef File,Callback<std::vector<FoldingRange>> CB) foldingRanges() argument 957 findType(llvm::StringRef File,Position Pos,Callback<std::vector<LocatedSymbol>> CB) findType() argument 968 findImplementations(PathRef File,Position Pos,Callback<std::vector<LocatedSymbol>> CB) findImplementations() argument 981 findReferences(PathRef File,Position Pos,uint32_t Limit,bool AddContainer,Callback<ReferencesResult> CB) findReferences() argument 993 symbolInfo(PathRef File,Position Pos,Callback<std::vector<SymbolDetails>> CB) symbolInfo() argument 1006 semanticRanges(PathRef File,const std::vector<Position> & Positions,Callback<std::vector<SelectionRange>> CB) semanticRanges() argument 1024 documentLinks(PathRef File,Callback<std::vector<DocumentLink>> CB) documentLinks() argument 1036 semanticHighlights(PathRef File,Callback<std::vector<HighlightingToken>> CB) semanticHighlights() argument 1053 getAST(PathRef File,std::optional<Range> R,Callback<std::optional<ASTNode>> CB) getAST() argument 1096 diagnostics(PathRef File,Callback<std::vector<Diag>> CB) diagnostics() argument [all...] |
/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UnreachableCodeChecker.cpp | 78 const CFGBlock *CB = BE->getBlock(); in checkEndAnalysis() local 179 void UnreachableCodeChecker::FindUnreachableEntryPoints(const CFGBlock *CB, in FindUnreachableEntryPoints() 200 const Stmt *UnreachableCodeChecker::getUnreachableStmt(const CFGBlock *CB) { in getUnreachableStmt() 215 bool UnreachableCodeChecker::isInvalidPath(const CFGBlock *CB, in isInvalidPath() 247 bool UnreachableCodeChecker::isEmptyCFGBlock(const CFGBlock *CB) { in isEmptyCFGBlock()
|
H A D | AnalyzerStatsChecker.cpp | 64 const CFGBlock *CB = BE->getBlock(); in checkEndAnalysis() local 76 const CFGBlock *CB = *I; in checkEndAnalysis() local
|
/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/ |
H A D | SPIRVMCCodeEmitter.cpp | 77 emitOperand(const MCOperand & Op,SmallVectorImpl<char> & CB) emitOperand() argument 93 emitTypedInstrOperands(const MCInst & MI,SmallVectorImpl<char> & CB) emitTypedInstrOperands() argument 103 emitUntypedInstrOperands(const MCInst & MI,SmallVectorImpl<char> & CB) emitUntypedInstrOperands() argument 109 encodeInstruction(const MCInst & MI,SmallVectorImpl<char> & CB,SmallVectorImpl<MCFixup> & Fixups,const MCSubtargetInfo & STI) const encodeInstruction() argument [all...] |
/llvm-project/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceOpcodes.cpp | 76 static bool callLooksLikeLoadStore(CallBase *CB, Value *&DataArg, in callLooksLikeLoadStore() argument 121 if (!callLooksLikeLoadStore(CB, DataArg, PtrArg) || O.shouldKeep()) in tryReplaceCallWithLoadStore() argument 133 callLooksLikeOperator(CallBase * CB,SmallVectorImpl<Value * > & OperatorArgs) callLooksLikeOperator() argument 152 tryReplaceCallWithOperator(Oracle & O,Module & M,CallBase * CB) tryReplaceCallWithOperator() argument 229 CallBase *CB = cast<CallBase>(&I); reduceInstruction() local [all...] |
/llvm-project/llvm/lib/Analysis/ |
H A D | InlineOrder.cpp | 45 llvm::InlineCost getInlineCostWrapper(CallBase &CB, in getInlineCostWrapper() argument 77 SizePriority(const CallBase *CB, FunctionAnalysisManager &, in SizePriority() argument 94 CostPriority(const CallBase *CB, FunctionAnalysisManager &FAM, in CostPriority() argument 114 CostBenefitPriority(const CallBase *CB, FunctionAnalysisManage argument 185 MLPriority(const CallBase * CB,FunctionAnalysisManager & FAM,const InlineParams & Params) MLPriority() argument 213 updateAndCheckDecreased(const CallBase * CB) updateAndCheckDecreased() argument 247 CallBase *CB = Elt.first; push() local 260 CallBase *CB = Heap.pop_back_val(); pop() local 267 __anondb7e2c310602(CallBase *CB) erase_if() argument [all...] |
H A D | InlineAdvisor.cpp | 74 MandatoryInlineAdvice(InlineAdvisor *Advisor, CallBase &CB, in MandatoryInlineAdvice() argument 136 CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) { in getDefaultInlineAdvice() argument 154 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice() argument 169 DefaultInlineAdvisor::getAdviceImpl(CallBase &CB) { in getAdviceImpl() argument 176 InlineAdvice(InlineAdvisor * Advisor,CallBase & CB,OptimizationRemarkEmitter & ORE,bool IsInliningRecommended) InlineAdvice() argument 213 __anonf7600c6d0902(CallBase &CB) tryCreate() argument 364 setInlineRemark(CallBase & CB,StringRef Message) setInlineRemark() argument 377 shouldInline(CallBase & CB,function_ref<InlineCost (CallBase & CB)> GetInlineCost,OptimizationRemarkEmitter & ORE,bool EnableDeferral) shouldInline() argument 544 getMandatoryAdvice(CallBase & CB,bool Advice) getMandatoryAdvice() argument 593 getMandatoryKind(CallBase & CB,FunctionAnalysisManager & FAM,OptimizationRemarkEmitter & ORE) getMandatoryKind() argument 615 getAdvice(CallBase & CB,bool MandatoryOnly) getAdvice() argument 625 getCallerORE(CallBase & CB) getCallerORE() argument [all...] |
H A D | MLInlineAdvisor.cpp | 342 if (auto Skip = getSkipAdviceIfUnreachableCallsite(CB)) in getAdviceImpl() argument 452 getAdviceFromModel(CallBase & CB,OptimizationRemarkEmitter & ORE) getAdviceFromModel() argument 459 getSkipAdviceIfUnreachableCallsite(CallBase & CB) getSkipAdviceIfUnreachableCallsite() argument 466 getMandatoryAdvice(CallBase & CB,bool Advice) getMandatoryAdvice() argument 482 getMandatoryAdviceImpl(CallBase & CB) getMandatoryAdviceImpl() argument 506 MLInlineAdvice(MLInlineAdvisor * Advisor,CallBase & CB,OptimizationRemarkEmitter & ORE,bool Recommendation) MLInlineAdvice() argument [all...] |
H A D | CallGraph.cpp | 108 forEachCallbackFunction(*Call, [=](Function *CB) { in populateCallGraphNode() 218 forEachCallbackFunction(Call, [=](Function *CB) { in removeCallEdgeFor() 271 forEachCallbackFunction(Call, [this, &OldCBs](Function *CB) { in replaceCallEdge() 274 forEachCallbackFunction(NewCall, [this, &NewCBs](Function *CB) { in replaceCallEdge()
|
/llvm-project/llvm/unittests/Analysis/ |
H A D | InlineCostTest.cpp | 28 if (auto *CB = dyn_cast<llvm::CallBase>(&I)) in getCallInFunction() local 34 std::optional<InlineCostFeatures> getInliningCostFeaturesForCall(CallBase &CB) { in getInliningCostFeaturesForCall() 78 CallBase *CB = getCallInFunction(G); in TEST() local 139 CallBase *CB = getCallInFunction(G); in TEST() local
|
H A D | FunctionPropertiesAnalysisTest.cpp | 68 if (auto *CB = dyn_cast<CallBase>(&I)) in findCall() local 234 CallBase* CB = findCall(*F1, "b"); in TEST_F() local 287 CallBase* CB = findCall(*F1, "b"); in TEST_F() local 349 CallBase* CB = findCall(*F1, "b"); TEST_F() local 411 CallBase* CB = findCall(*F1); TEST_F() local 464 CallBase* CB = findCall(*F1); TEST_F() local 518 CallBase* CB = findCall(*F1); TEST_F() local 570 CallBase* CB = findCall(*F1); TEST_F() local 626 CallBase* CB = findCall(*F1); TEST_F() local 680 CallBase *CB = findCall(*F1); TEST_F() local 750 CallBase *CB = findCall(*F1); TEST_F() local 810 CallBase *CB = findCall(*F1); TEST_F() local [all...] |
/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CallPromotionUtils.cpp | 166 createRetBitCast(CallBase & CB,Type * RetTy,CastInst ** RetBitCast) createRetBitCast() argument 285 versionCallSiteWithCond(CallBase & CB,Value * Cond,MDNode * BranchWeights) versionCallSiteWithCond() argument 381 versionCallSite(CallBase & CB,Value * Callee,MDNode * BranchWeights) versionCallSite() argument 395 isLegalToPromote(const CallBase & CB,Function * Callee,const char ** FailureReason) isLegalToPromote() argument 481 promoteCall(CallBase & CB,Function * Callee,CastInst ** RetBitCast) promoteCall() argument 563 promoteCallWithIfThenElse(CallBase & CB,Function * Callee,MDNode * BranchWeights) promoteCallWithIfThenElse() argument 575 promoteCallWithVTableCmp(CallBase & CB,Instruction * VPtr,Function * Callee,ArrayRef<Constant * > AddressPoints,MDNode * BranchWeights) promoteCallWithVTableCmp() argument 596 tryPromoteCall(CallBase & CB) tryPromoteCall() argument [all...] |
/llvm-project/clang/unittests/Interpreter/ |
H A D | IncrementalCompilerBuilderTest.cpp | 32 auto CB = clang::IncrementalCompilerBuilder(); in TEST() local 40 auto CB = clang::IncrementalCompilerBuilder(); in TEST() local
|
H A D | InterpreterExtensionsTest.cpp | 109 clang::IncrementalCompilerBuilder CB; TEST_F() local 142 IncrementalCompilerBuilder CB; TEST_F() local 156 IncrementalCompilerBuilder CB; TEST_F() local
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/ |
H A D | definitions-in-headers.hpp | 44 struct CB { struct 54 void CB<T>::f1() { // OK: Member function definition of a class template. in f1() argument 75 template class CB<int>; // OK: explicitly instantiated static data member of a class template. variable
|
/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/ |
H A D | CSKYMCCodeEmitter.cpp | 60 static void writeData(uint32_t Bin, unsigned Size, SmallVectorImpl<char> &CB) { in writeData() argument 68 void CSKYMCCodeEmitter::expandJBTF(const MCInst &MI, SmallVectorImpl<char> &CB, in expandJBTF() argument 94 void CSKYMCCodeEmitter::expandNEG(const MCInst &MI, SmallVectorImpl<char> &CB, in expandNEG() argument 116 void CSKYMCCodeEmitter::expandRSUBI(const MCInst &MI, SmallVectorImpl<char> &CB, in expandRSUBI() argument 139 encodeInstruction(const MCInst & MI,SmallVectorImpl<char> & CB,SmallVectorImpl<MCFixup> & Fixups,const MCSubtargetInfo & STI) const encodeInstruction() argument [all...] |
/llvm-project/clang/tools/libclang/ |
H A D | CIndexInclusionStack.cpp | 24 CXInclusionVisitor CB, CXClientData clientData) { in getInclusions() 68 void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB, in clang_getInclusions()
|
/llvm-project/llvm/lib/MCA/ |
H A D | Context.cpp | 33 CustomBehaviour &CB) { in createDefaultPipeline() 74 CustomBehaviour &CB) { in createInOrderPipeline()
|
/llvm-project/llvm/lib/Transforms/CFGuard/ |
H A D | CFGuard.cpp | 172 void CFGuardImpl::insertCFGuardCheck(CallBase *CB) { in insertCFGuardCheck() argument 201 insertCFGuardDispatch(CallBase * CB) insertCFGuardDispatch() argument 277 auto *CB = dyn_cast<CallBase>(&I); runOnFunction() local [all...] |
/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | IndirectCallPromotion.cpp | 414 getPromotionCandidatesForCallSite(const CallBase & CB,ArrayRef<InstrProfValueData> ValueDataRef,uint64_t TotalCount,uint32_t NumCandidates) getPromotionCandidatesForCallSite() argument 507 computeVTableInfos(const CallBase * CB,VTableGUIDCountsMap & GUIDCountsMap,std::vector<PromotionCandidate> & Candidates) computeVTableInfos() argument 606 promoteIndirectCall(CallBase & CB,Function * DirectCallee,uint64_t Count,uint64_t TotalCount,bool AttachProfToDirectCall,OptimizationRemarkEmitter * ORE) promoteIndirectCall() argument 632 tryToPromoteWithFuncCmp(CallBase & CB,Instruction * VPtr,ArrayRef<PromotionCandidate> Candidates,uint64_t TotalCount,ArrayRef<InstrProfValueData> ICallProfDataRef,uint32_t NumCandidates,VTableGUIDCountsMap & VTableGUIDCounts) tryToPromoteWithFuncCmp() argument 678 updateFuncValueProfiles(CallBase & CB,ArrayRef<InstrProfValueData> CallVDs,uint64_t TotalCount,uint32_t MaxMDCount) updateFuncValueProfiles() argument 713 tryToPromoteWithVTableCmp(CallBase & CB,Instruction * VPtr,ArrayRef<PromotionCandidate> Candidates,uint64_t TotalFuncCount,uint32_t NumCandidates,MutableArrayRef<InstrProfValueData> ICallProfDataRef,VTableGUIDCountsMap & VTableGUIDCounts) tryToPromoteWithVTableCmp() argument 808 for (auto *CB : findIndirectCalls(F)) { processFunction() local 839 isProfitableToCompareVTables(const CallBase & CB,ArrayRef<PromotionCandidate> Candidates,uint64_t TotalCount) isProfitableToCompareVTables() argument 948 CallBase &CB = DevirtCall.CB; computeVirtualCallSiteTypeInfoMap() local [all...] |
/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMCCodeEmitter.cpp | 120 expandFunctionCall(const MCInst & MI,SmallVectorImpl<char> & CB,SmallVectorImpl<MCFixup> & Fixups,const MCSubtargetInfo & STI) const expandFunctionCall() argument 166 expandTLSDESCCall(const MCInst & MI,SmallVectorImpl<char> & CB,SmallVectorImpl<MCFixup> & Fixups,const MCSubtargetInfo & STI) const expandTLSDESCCall() argument 187 expandAddTPRel(const MCInst & MI,SmallVectorImpl<char> & CB,SmallVectorImpl<MCFixup> & Fixups,const MCSubtargetInfo & STI) const expandAddTPRel() argument 246 expandLongCondBr(const MCInst & MI,SmallVectorImpl<char> & CB,SmallVectorImpl<MCFixup> & Fixups,const MCSubtargetInfo & STI) const expandLongCondBr() argument 301 encodeInstruction(const MCInst & MI,SmallVectorImpl<char> & CB,SmallVectorImpl<MCFixup> & Fixups,const MCSubtargetInfo & STI) const encodeInstruction() argument [all...] |