Home
last modified time | relevance | path

Searched refs:CB (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DCallSiteSplitting.cpp90 for (auto &I : CB.args()) { in addNonNullAttribute()
100 for (auto &I : CB.args()) { in setConstantInArgument()
115 for (auto I = CB.arg_begin(), E = CB.arg_end(); I != E; ++I, ++ArgNo) { in isCondRelevantToAnyCallArgument()
187 if (CB.isConvergent() || CB.cannotDuplicate()) in canSplitCallSite()
192 if (!isa<CallInst>(CB)) in canSplitCallSite()
305 CallBase &CB, in splitCallSite() argument
423 for (auto &Arg : CB.args()) { in isPredicatedOnPHI()
445 if (!isPredicatedOnPHI(CB)) in shouldSplitOnPHIPredicatedArgument()
473 recordCondition(CB, Pred, CB.getParent(), Conditions); in shouldSplitOnPredicatedArgument()
490 if (!CB.arg_size() || !canSplitCallSite(CB, TTI)) in tryToSplitCallSite()
[all …]
H A DSCCP.cpp133 CallBase *CB = dyn_cast<CallBase>(V); in tryToReplaceWithConstant() local
134 if (CB && ((CB->isMustTailCall() && !CB->isSafeToRemove()) || in tryToReplaceWithConstant()
136 Function *F = CB->getCalledFunction(); in tryToReplaceWithConstant()
499 auto *CB = dyn_cast<CallBase>(U); in runIPSCCP() local
500 if (!CB || CB->getCalledFunction() != &F) in runIPSCCP()
589 auto *CB = dyn_cast<CallBase>(User); in runIPSCCP() local
590 if (!CB || CB->getCalledFunction() != F) in runIPSCCP()
597 if (!isGuaranteedNotToBeUndefOrPoison(CB, nullptr, CB)) in runIPSCCP()
646 CallBase *CB = cast<CallBase>(U.getUser()); in runIPSCCP() local
647 for (Use &Arg : CB->args()) in runIPSCCP()
[all …]
H A DConstraintElimination.cpp342 LLVM_DEBUG(dbgs() << "CB: " << CB.NumIn << " " << CB.NumOut << "\n"); in eliminateConstraints()
343 assert(E.NumIn <= CB.NumIn); in eliminateConstraints()
344 if (CB.NumOut <= E.NumOut) in eliminateConstraints()
354 if (CB.IsBlock) in eliminateConstraints()
355 dbgs() << *CB.BB; in eliminateConstraints()
357 dbgs() << *CB.Condition; in eliminateConstraints()
363 if (CB.IsBlock) { in eliminateConstraints()
427 if (CB.Not && CI) in eliminateConstraints()
430 if (CB.Not) { in eliminateConstraints()
449 LLVM_DEBUG(dbgs() << "Adding " << *CB.Condition << " " << CB.Not << "\n"); in eliminateConstraints()
[all …]
/netbsd/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DUnreachableCodeChecker.cpp79 reachable.insert(CB->getBlockID()); in checkEndAnalysis()
96 const CFGBlock *CB = *I; in checkEndAnalysis() local
102 if (isEmptyCFGBlock(CB)) in checkEndAnalysis()
114 if (isInvalidPath(CB, *PM)) in checkEndAnalysis()
128 if (!CB->empty()) { in checkEndAnalysis()
130 for (CFGBlock::const_iterator ci = CB->begin(), ce = CB->end(); in checkEndAnalysis()
181 visited.insert(CB->getBlockID()); in FindUnreachableEntryPoints()
183 for (CFGBlock::const_pred_iterator I = CB->pred_begin(), E = CB->pred_end(); in FindUnreachableEntryPoints()
201 for (CFGBlock::const_iterator I = CB->begin(), E = CB->end(); I != E; ++I) { in getUnreachableStmt()
223 if (CB->pred_size() > 1) in isInvalidPath()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp162 assert(CB->isIndirectCall() && in insertCFGuardCheck()
165 IRBuilder<> B(CB); in insertCFGuardCheck()
186 assert(CB->isIndirectCall() && in insertCFGuardDispatch()
189 IRBuilder<> B(CB); in insertCFGuardDispatch()
207 assert((isa<CallInst>(CB) || isa<InvokeInst>(CB)) && in insertCFGuardDispatch()
209 CallBase *NewCB = CallBase::Create(CB, Bundles, CB); in insertCFGuardDispatch()
215 CB->replaceAllUsesWith(NewCB); in insertCFGuardDispatch()
218 CB->eraseFromParent(); in insertCFGuardDispatch()
265 if (CB && CB->isIndirectCall() && !CB->hasFnAttr("guard_nocf")) { in runOnFunction()
280 insertCFGuardDispatch(CB); in runOnFunction()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp184 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast()
285 IRBuilder<> Builder(&CB); in versionCallSite()
286 CallBase *OrigInst = &CB; in versionCallSite()
390 Type *CallRetTy = CB.getType(); in isLegalToPromote()
403 unsigned NumArgs = CB.arg_size(); in isLegalToPromote()
447 CB.setCalledOperand(Callee); in promoteCall()
458 return CB; in promoteCall()
485 CB.setArgOperand(ArgNo, Cast); in promoteCall()
521 return CB; in promoteCall()
537 assert(!CB.getCalledFunction()); in tryPromoteCall()
[all …]
H A DInlineFunction.cpp1759 assert(CB.getParent() && CB.getFunction() && "Instruction not in function!"); in InlineFunction()
1762 if (isa<CallBrInst>(CB)) in InlineFunction()
2405 bool NeedBitCast = !CB.use_empty() && CB.getType() != NewRetTy; in InlineFunction()
2468 if (!CB.use_empty()) { in InlineFunction()
2471 CB.replaceAllUsesWith(UndefValue::get(CB.getType())); in InlineFunction()
2476 CB.eraseFromParent(); in InlineFunction()
2542 if (!CB.use_empty()) { in InlineFunction()
2579 if (!CB.use_empty()) { in InlineFunction()
2581 CB.replaceAllUsesWith(UndefValue::get(CB.getType())); in InlineFunction()
2604 CB.replaceAllUsesWith(UndefValue::get(CB.getType())); in InlineFunction()
[all …]
H A DSCCPSolver.cpp254 handleCallResult(*CB); in markUsersAsChanged()
1137 handleCallResult(CB); in visitCallBase()
1138 handleCallArguments(CB); in visitCallBase()
1145 if (CB.getType()->isVoidTy()) in handleCallOverdefined()
1156 for (auto AI = CB.arg_begin(), E = CB.arg_end(); AI != E; ++AI) { in handleCallOverdefined()
1183 mergeInValue(&CB, getValueFromMetadata(&CB)); in handleCallOverdefined()
1196 auto CAI = CB.arg_begin(); in handleCallArguments()
1233 mergeInValue(ValueState[&CB], &CB, CopyOfVal); in handleCallResult()
1282 mergeInValue(IV, &CB, in handleCallResult()
1295 mergeInValue(IV, &CB, in handleCallResult()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DInlineAdvisor.cpp77 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice()
111 this, CB, OIC, in getAdviceImpl()
118 : Advisor(Advisor), Caller(CB.getCaller()), Callee(CB.getCalledFunction()), in InlineAdvice()
119 DLoc(CB.getDebugLoc()), Block(CB.getParent()), ORE(ORE), in InlineAdvice()
321 llvm::shouldInline(CallBase &CB, in shouldInline() argument
326 InlineCost IC = GetInlineCost(CB); in shouldInline()
327 Instruction *Call = &CB; in shouldInline()
475 return std::make_unique<InlineAdvice>(this, CB, getCallerORE(CB), Advice); in getMandatoryAdvice()
504 return getAdviceImpl(CB); in getAdvice()
505 bool Advice = CB.getCaller() != CB.getCalledFunction() && in getAdvice()
[all …]
H A DMLInlineAdvisor.cpp176 auto &Caller = *CB.getCaller(); in getAdviceImpl()
177 auto &Callee = *CB.getCalledFunction(); in getAdviceImpl()
192 return getMandatoryAdvice(CB, false); in getAdviceImpl()
221 return getMandatoryAdvice(CB, true); in getAdviceImpl()
224 for (auto I = CB.arg_begin(), E = CB.arg_end(); I != E; ++I) { in getAdviceImpl()
247 return getAdviceFromModel(CB, ORE); in getAdviceImpl()
251 MLInlineAdvisor::getAdviceFromModel(CallBase &CB, in getAdviceFromModel() argument
260 return getMandatoryAdviceImpl(CB); in getMandatoryAdvice()
266 return std::make_unique<InlineAdvice>(this, CB, getCallerORE(CB), Advice); in getMandatoryAdvice()
270 MLInlineAdvisor::getMandatoryAdviceImpl(CallBase &CB) { in getMandatoryAdviceImpl() argument
[all …]
H A DReplayInlineAdvisor.cpp60 std::unique_ptr<InlineAdvice> ReplayInlineAdvisor::getAdviceImpl(CallBase &CB) { in getAdviceImpl() argument
63 Function &Caller = *CB.getCaller(); in getAdviceImpl()
67 return std::make_unique<DefaultInlineAdvice>(this, CB, None, ORE, in getAdviceImpl()
70 std::string CallSiteLoc = getCallSiteLocation(CB.getDebugLoc()); in getAdviceImpl()
71 StringRef Callee = CB.getCalledFunction()->getName(); in getAdviceImpl()
80 return std::make_unique<DefaultInlineAdvice>(this, CB, InlineRecommended, ORE, in getAdviceImpl()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DAbstractCallSite.h76 CallBase *CB;
105 static void getCallbackUses(const CallBase &CB,
109 explicit operator bool() const { return CB != nullptr; }
112 CallBase *getInstruction() const { return CB; } in getInstruction()
116 return !isCallbackCall() && !CB->isIndirectCall(); in isDirectCall()
121 return !isCallbackCall() && CB->isIndirectCall(); in isIndirectCall()
139 return CB->isCallee(U); in isCallee()
156 return CB->getNumArgOperands(); in getNumArgOperands()
185 return CB->getArgOperand(ArgNo); in getCallArgOperand()
212 return CB->getCalledOperand(); in getCalledOperand()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp180 if (!CB) in DeleteDeadVarargs()
184 Args.assign(CB->arg_begin(), CB->arg_begin() + NumArgs); in DeleteDeadVarargs()
214 if (!CB->use_empty()) in DeleteDeadVarargs()
217 NewCB->takeName(CB); in DeleteDeadVarargs()
221 CB->eraseFromParent(); in DeleteDeadVarargs()
307 if (!CB || !CB->isCallee(&U)) in RemoveDeadArgumentsFromCallers()
447 assert(CB->getArgOperand(ArgNo) == CB->getOperand(U->getOperandNo()) && in SurveyUse()
560 if (!CB || !CB->isCallee(&U)) { in SurveyFunction()
956 if (!CB.use_empty() || CB.isUsedByMetadata()) { in RemoveDeadStuffFromFunction()
965 CB.replaceAllUsesWith(UndefValue::get(CB.getType())); in RemoveDeadStuffFromFunction()
[all …]
H A DAlwaysInliner.cpp62 if (auto *CB = dyn_cast<CallBase>(U)) in run() local
63 if (CB->getCalledFunction() == &F) in run()
64 Calls.insert(CB); in run()
66 for (CallBase *CB : Calls) { in run()
67 Function *Caller = CB->getCaller(); in run()
70 *CB, in run()
71 [&](CallBase &CB) { in run() argument
76 emitInlinedInto(ORE, CB->getDebugLoc(), CB->getParent(), F, *Caller, in run()
150 InlineCost getInlineCost(CallBase &CB) override;
186 Function *Callee = CB.getCalledFunction(); in getInlineCost()
[all …]
H A DInliner.cpp244 CallBase &CB, InlineFunctionInfo &IFI, in inlineCallIfPossible() argument
249 Function *Caller = CB.getCaller(); in inlineCallIfPossible()
337 if (!CB || isa<IntrinsicInst>(I)) in inlineCallsImpl()
390 CallBase &CB = *P.first; in inlineCallsImpl() local
393 Function *Caller = CB.getCaller(); in inlineCallsImpl()
435 CB.eraseFromParent(); in inlineCallsImpl()
439 DebugLoc DLoc = CB.getDebugLoc(); in inlineCallsImpl()
545 [&](CallBase &CB) { return getInlineCost(CB); }, LegacyAARGetter(*this), in inlineCalls() argument
732 Calls.push_back({CB, -1}); in run()
793 CallBase *CB = P.first; in run() local
[all …]
H A DFunctionAttrs.cpp377 if (!CB) { in captured()
504 CallBase &CB = cast<CallBase>(*I); in determinePointerReadAttrs() local
505 if (CB.doesNotAccessMemory()) { in determinePointerReadAttrs()
512 if (CB.onlyReadsMemory()) { in determinePointerReadAttrs()
552 if (!CB.onlyReadsMemory() && !CB.onlyReadsMemory(UseIndex)) in determinePointerReadAttrs()
921 if (CB.getCalledFunction() && SCCNodes.count(CB.getCalledFunction())) in isFunctionMallocLike()
1245 return CB && CB->isConvergent() && in InstrBreaksNonConvergent()
1268 if (!CB) in InstrBreaksNoFree()
1511 auto *CB = dyn_cast<CallBase>(&I); in InstrBreaksNoSync() local
1512 if (!CB) in InstrBreaksNoSync()
[all …]
H A DArgumentPromotion.cpp251 IRBuilder<NoFolder> IRB(&CB); in doPromotion()
255 auto AI = CB.arg_begin(); in doPromotion()
354 (*ReplaceCallSite)(CB, *NewCS); in doPromotion()
356 if (!CB.use_empty()) { in doPromotion()
357 CB.replaceAllUsesWith(NewCS); in doPromotion()
358 NewCS->takeName(&CB); in doPromotion()
363 CB.eraseFromParent(); in doPromotion()
491 CallBase &CB = cast<CallBase>(*U); in allCallersPassValidPointerForArgument() local
844 if (!CB) in areFunctionArgsABICompatible()
903 if (CB == nullptr || !CB->isCallee(&U)) in promoteArguments()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/IR/
H A DAbstractCallSite.cpp50 if (CBCalleeIdx < CB.arg_size()) in getCallbackUses()
57 : CB(dyn_cast<CallBase>(U->getUser())) { in AbstractCallSite()
60 if (!CB) { in AbstractCallSite()
69 CB = dyn_cast<CallBase>(U->getUser()); in AbstractCallSite()
72 if (!CB) { in AbstractCallSite()
80 if (CB->isCallee(U)) { in AbstractCallSite()
87 Function *Callee = CB->getCalledFunction(); in AbstractCallSite()
90 CB = nullptr; in AbstractCallSite()
97 CB = nullptr; in AbstractCallSite()
101 unsigned UseIdx = CB->getArgOperandNo(U); in AbstractCallSite()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp201 uint32_t tryToPromote(CallBase &CB,
241 if (ICPInvokeOnly && isa<CallInst>(CB)) { in getPromotionCandidatesForCallSite()
249 if (ICPCallOnly && isa<InvokeInst>(CB)) { in getPromotionCandidatesForCallSite()
285 if (!isLegalToPromote(CB, TargetFunction, &Reason)) { in getPromotionCandidatesForCallSite()
311 MDBuilder MDB(CB.getContext()); in promoteIndirectCall()
316 promoteCallWithIfThenElse(CB, DirectCallee, BranchWeights); in promoteIndirectCall()
329 return OptimizationRemark(DEBUG_TYPE, "Promoted", &CB) in promoteIndirectCall()
360 for (auto *CB : findIndirectCalls(F)) { in processFunction() local
364 CB, NumVals, TotalCount, NumCandidates); in processFunction()
369 *CB, ICallProfDataRef, TotalCount, NumCandidates); in processFunction()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DInlineAdvisor.h55 InlineAdvice(InlineAdvisor *Advisor, CallBase &CB,
122 DefaultInlineAdvice(InlineAdvisor *Advisor, CallBase &CB,
125 : InlineAdvice(Advisor, CB, ORE, OIC.hasValue()), OriginalCB(&CB),
151 std::unique_ptr<InlineAdvice> getAdvice(CallBase &CB,
166 virtual std::unique_ptr<InlineAdvice> getAdviceImpl(CallBase &CB) = 0;
167 virtual std::unique_ptr<InlineAdvice> getMandatoryAdvice(CallBase &CB,
189 static MandatoryInliningKind getMandatoryKind(CallBase &CB,
193 OptimizationRemarkEmitter &getCallerORE(CallBase &CB);
211 std::unique_ptr<InlineAdvice> getAdviceImpl(CallBase &CB) override;
264 shouldInline(CallBase &CB, function_ref<InlineCost(CallBase &CB)> GetInlineCost,
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroEarly.cpp46 void Lowerer::lowerResumeOrDestroy(CallBase &CB, in lowerResumeOrDestroy() argument
48 Value *ResumeAddr = makeSubFnCall(CB.getArgOperand(0), Index, &CB); in lowerResumeOrDestroy()
49 CB.setCalledOperand(ResumeAddr); in lowerResumeOrDestroy()
50 CB.setCallingConv(CallingConv::Fast); in lowerResumeOrDestroy()
144 if (auto *CB = dyn_cast<CoroBeginInst>(U)) in setCannotDuplicate() local
145 CB->setCannotDuplicate(); in setCannotDuplicate()
154 if (auto *CB = dyn_cast<CallBase>(&I)) { in lowerEarlyIntrinsics() local
155 switch (CB->getIntrinsicID()) { in lowerEarlyIntrinsics()
165 CB->setCannotDuplicate(); in lowerEarlyIntrinsics()
172 CB->setCannotDuplicate(); in lowerEarlyIntrinsics()
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyOptimizeReturned.cpp45 void visitCallBase(CallBase &CB);
58 void OptimizeReturned::visitCallBase(CallBase &CB) { in visitCallBase() argument
59 for (unsigned I = 0, E = CB.getNumArgOperands(); I < E; ++I) in visitCallBase()
60 if (CB.paramHasAttr(I, Attribute::Returned)) { in visitCallBase()
61 Value *Arg = CB.getArgOperand(I); in visitCallBase()
66 Arg->replaceUsesWithIf(&CB, in visitCallBase()
67 [&](Use &U) { return DT->dominates(&CB, U); }); in visitCallBase()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUFixFunctionBitcasts.cpp35 void visitCallBase(CallBase &CB) { in visitCallBase() argument
36 if (CB.getCalledFunction()) in visitCallBase()
39 dyn_cast<Function>(CB.getCalledOperand()->stripPointerCasts()); in visitCallBase()
40 if (Callee && isLegalToPromote(CB, Callee)) { in visitCallBase()
41 promoteCall(CB, Callee); in visitCallBase()
/netbsd/external/gpl3/gdb/dist/zlib/contrib/dotzlib/
H A DDotZLib.sln2 …F4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}"
12 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET
13 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET
14 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET
15 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET
/netbsd/external/gpl3/binutils/dist/zlib/contrib/dotzlib/
H A DDotZLib.sln2 …F4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}"
12 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET
13 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET
14 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET
15 {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET

12345678910>>...16