Home
last modified time | relevance | path

Searched refs:CallBrInst (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCallBrPrepare.cpp57 static bool SplitCriticalEdges(ArrayRef<CallBrInst *> CBRs, DominatorTree &DT);
58 static bool InsertIntrinsicCalls(ArrayRef<CallBrInst *> CBRs,
60 static void UpdateSSA(DominatorTree &DT, CallBrInst *CBR, CallInst *Intrinsic,
62 static SmallVector<CallBrInst *, 2> FindCallBrs(Function &Fn);
79 SmallVector<CallBrInst *, 2> CBRs = FindCallBrs(Fn); in run()
109 SmallVector<CallBrInst *, 2> FindCallBrs(Function &Fn) { in FindCallBrs()
110 SmallVector<CallBrInst *, 2> CBRs; in FindCallBrs()
112 if (auto *CBR = dyn_cast<CallBrInst>(BB.getTerminator())) in FindCallBrs()
118 bool SplitCriticalEdges(ArrayRef<CallBrInst *> CBRs, DominatorTree &DT) { in SplitCriticalEdges()
131 for (CallBrInst *CBR : CBRs) in SplitCriticalEdges()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp54 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) { in DemoteRegToStack()
117 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) { in DemoteRegToStack()
H A DSCCPSolver.cpp675 void visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp338 } else if (isa<CallBrInst>(this)) { in getInsertionPointAfterDef()
820 if (const CallBrInst *CI = dyn_cast<CallBrInst>(I1)) in hasSameSpecialState()
821 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() && in hasSameSpecialState()
822 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() && in hasSameSpecialState()
823 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2)); in hasSameSpecialState()
H A DInstructions.cpp306 return CallBrInst::Create(cast<CallBrInst>(CB), Bundles, InsertPt); in Create()
328 return cast<CallBrInst>(this)->getNumIndirectDests() + 1; in getNumSubclassExtraOperandsDynamic()
851 void CallBrInst::init(FunctionType *FTy, Value *Fn, BasicBlock *Fallthrough, in init()
890 CallBrInst::CallBrInst(const CallBrInst &CBI) in CallBrInst() function in CallBrInst
902 CallBrInst *CallBrInst::Create(CallBrInst *CBI, ArrayRef<OperandBundleDef> OpB, in Create()
906 auto *NewCBI = CallBrInst::Create( in Create()
4366 CallBrInst *CallBrInst::cloneImpl() const { in cloneImpl()
4369 return new (getNumOperands(), DescriptorBytes) CallBrInst(*this); in cloneImpl()
4371 return new (getNumOperands()) CallBrInst(*this); in cloneImpl()
H A DDominators.cpp163 if (isa<InvokeInst>(Def) || isa<CallBrInst>(Def) || isa<PHINode>(User)) in dominates()
H A DVerifier.cpp584 void visitCallBrInst(CallBrInst &CBI);
2533 if (auto *CallBr = dyn_cast<CallBrInst>(&Call)) { in verifyInlineAsmCall()
3184 void Verifier::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst()
4852 else if (CallBrInst *CI = dyn_cast<CallBrInst>(&I)) in visitProfMetadata()
6216 const auto *CBR = dyn_cast<CallBrInst>(Call.getOperand(0)); in visitIntrinsicCall()
6227 if (!isa<CallBrInst>(PredBB->getTerminator())) { in visitIntrinsicCall()
H A DCore.cpp3101 return wrap(unwrap<CallBrInst>(CallBr)->getDefaultDest()); in LLVMGetCallBrDefaultDest()
3105 return unwrap<CallBrInst>(CallBr)->getNumIndirectDests(); in LLVMGetCallBrNumIndirectDests()
3109 return wrap(unwrap<CallBrInst>(CallBr)->getIndirectDest(Idx)); in LLVMGetCallBrIndirectDest()
H A DAsmWriter.cpp4488 } else if (const CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) { in printInstruction()
/freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp433 } else if (isa<CallBrInst>(L)) { in diff()
434 const CallBrInst &LI = cast<CallBrInst>(*L); in diff()
435 const CallBrInst &RI = cast<CallBrInst>(*R); in diff()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstVisitor.h222 RetTy visitCallBrInst(CallBrInst &I) { DELEGATE(CallBase); } in visitCallBrInst()
268 if (isa<InvokeInst>(I) || isa<CallBrInst>(I)) in visitCallBase()
H A DInstructions.h3729 class CallBrInst : public CallBase {
3733 CallBrInst(const CallBrInst &BI);
3738 inline CallBrInst(FunctionType *Ty, Value *Func, BasicBlock *DefaultDest,
3760 CallBrInst *cloneImpl() const;
3763 static CallBrInst *Create(FunctionType *Ty, Value *Func,
3770 CallBrInst(Ty, Func, DefaultDest, IndirectDests, Args, std::nullopt,
3774 static CallBrInst *
3784 CallBrInst(Ty, Func, DefaultDest, IndirectDests, Args, Bundles,
3788 static CallBrInst *Create(FunctionCallee Func, BasicBlock *DefaultDest,
3796 static CallBrInst *Create(FunctionCallee Func, BasicBlock *DefaultDest,
[all …]
H A DInstruction.def137 HANDLE_TERM_INST (11, CallBr , CallBrInst) // A call-site terminator
H A DIRBuilder.h1202 CallBrInst *CreateCallBr(FunctionType *Ty, Value *Callee,
1207 return Insert(CallBrInst::Create(Ty, Callee, DefaultDest, IndirectDests,
1210 CallBrInst *CreateCallBr(FunctionType *Ty, Value *Callee,
1217 CallBrInst::Create(Ty, Callee, DefaultDest, IndirectDests, Args,
1221 CallBrInst *CreateCallBr(FunctionCallee Callee, BasicBlock *DefaultDest,
1228 CallBrInst *CreateCallBr(FunctionCallee Callee, BasicBlock *DefaultDest,
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DIROutliner.h418 bool visitCallBrInst(CallBrInst &CBI) { return false; } in visitCallBrInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h51 class CallBrInst; variable
539 void visitCallBr(const CallBrInst &I);
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIRSimilarityIdentifier.h586 InstrType visitCallBrInst(CallBrInst &CBI) { return Illegal; } in visitCallBrInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp3663 Instruction *InstCombinerImpl::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst()
4081 assert(!isa<CallBrInst>(Call) && in transformConstExprCastCall()
4460 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&Call)) { in transformCallThroughTrampoline()
4462 CallBrInst::Create(NewFTy, NestF, CBI->getDefaultDest(), in transformCallThroughTrampoline()
4464 cast<CallBrInst>(NewCaller)->setCallingConv(CBI->getCallingConv()); in transformCallThroughTrampoline()
4465 cast<CallBrInst>(NewCaller)->setAttributes(NewPAL); in transformCallThroughTrampoline()
H A DInstCombineInternal.h153 Instruction *visitCallBrInst(CallBrInst &CBI);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp383 isa<InvokeInst>(TI) || isa<CallBrInst>(TI))) in calcMetadataWeights()
H A DModuleSummaryAnalysis.cpp349 if (!isa<CallBrInst>(*U)) { in computeFunctionSummary()
H A DInlineCost.cpp2789 if (!isa<CallBrInst>(*U)) in analyze()
3110 if (!isa<CallBrInst>(*U)) in isInlineViable()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1889 macro(CallBrInst) \
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1620 isa<CallBrInst>(TI))) in setBranchWeights()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp263 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(V)) { in validateEndOfModule()
7670 CallBrInst *CBI = in parseCallBr()
7671 CallBrInst::Create(Ty, Callee, DefaultDest, IndirectDests, Args, in parseCallBr()

12