| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CallBrPrepare.cpp | 57 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 D | DemoteRegToStack.cpp | 54 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) { in DemoteRegToStack() 117 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) { in DemoteRegToStack()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Use.h | 26 class CallBrInst; variable 48 friend class CallBrInst; // For constructor variable
|
| H A D | Context.h | 193 LLVM_ABI CallBrInst *createCallBrInst(llvm::CallBrInst *I); 194 friend CallBrInst; // For createCallBrInst()
|
| H A D | Values.def | 79 DEF_INSTR(CallBr, OP(CallBr), CallBrInst)
|
| H A D | Instruction.h | 77 friend class CallBrInst; // For getTopmostLLVMInstruction(). variable 1302 friend class CallBrInst; // For constructor. variable 1482 class CallBrInst final : public CallBase { 1485 CallBrInst(llvm::Instruction *I, Context &Ctx) in CallBrInst() function 1491 LLVM_ABI static CallBrInst *create(FunctionType *FTy, Value *Func, 1500 return cast<llvm::CallBrInst>(Val)->getNumIndirectDests(); in getNumIndirectDests() 1511 return cast<llvm::CallBrInst>(Val)->getNumSuccessors(); in getNumSuccessors()
|
| H A D | Value.h | 127 friend class CallBrInst; // For getting `Val`. variable
|
| H A D | Tracker.h | 57 class CallBrInst; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Instruction.cpp | 570 CallBrInst *CallBrInst::create(FunctionType *FTy, Value *Func, in create() 586 llvm::CallBrInst *CallBr = in create() 593 Value *CallBrInst::getIndirectDestLabel(unsigned Idx) const { in getIndirectDestLabel() 594 return Ctx.getValue(cast<llvm::CallBrInst>(Val)->getIndirectDestLabel(Idx)); in getIndirectDestLabel() 596 Value *CallBrInst::getIndirectDestLabelUse(unsigned Idx) const { in getIndirectDestLabelUse() 598 cast<llvm::CallBrInst>(Val)->getIndirectDestLabelUse(Idx)); in getIndirectDestLabelUse() 600 BasicBlock *CallBrInst::getDefaultDest() const { in getDefaultDest() 602 Ctx.getValue(cast<llvm::CallBrInst>(Val)->getDefaultDest())); in getDefaultDest() 604 BasicBlock *CallBrInst::getIndirectDest(unsigned Idx) const { in getIndirectDest() 606 Ctx.getValue(cast<llvm::CallBrInst>(Val)->getIndirectDest(Idx))); in getIndirectDest() [all …]
|
| H A D | Context.cpp | 148 auto *LLVMCallBr = cast<llvm::CallBrInst>(LLVMV); in getOrCreateValueInternal() 150 std::unique_ptr<CallBrInst>(new CallBrInst(LLVMCallBr, *this)); in getOrCreateValueInternal() 540 CallBrInst *Context::createCallBrInst(llvm::CallBrInst *I) { in createCallBrInst() 541 auto NewPtr = std::unique_ptr<CallBrInst>(new CallBrInst(I, *this)); in createCallBrInst() 542 return cast<CallBrInst>(registerValue(std::move(NewPtr))); in createCallBrInst()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/ |
| H A D | DifferenceEngine.cpp | 433 } 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/lib/IR/ |
| H A D | Instruction.cpp | 353 } else if (isa<CallBrInst>(this)) { in getInsertionPointAfterDef() 892 if (const CallBrInst *CI = dyn_cast<CallBrInst>(I1)) in hasSameSpecialState() 893 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() && in hasSameSpecialState() 894 CheckAttrsSame(CI, cast<CallBrInst>(I2)) && in hasSameSpecialState() 895 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2)); in hasSameSpecialState()
|
| H A D | Instructions.cpp | 310 return CallBrInst::Create(cast<CallBrInst>(CB), Bundles, InsertPt); in Create() 332 return cast<CallBrInst>(this)->getNumIndirectDests() + 1; in getNumSubclassExtraOperandsDynamic() 919 void CallBrInst::init(FunctionType *FTy, Value *Fn, BasicBlock *Fallthrough, in init() 958 CallBrInst::CallBrInst(const CallBrInst &CBI, AllocInfo AllocInfo) in CallBrInst() function in CallBrInst 971 CallBrInst *CallBrInst::Create(CallBrInst *CBI, ArrayRef<OperandBundleDef> OpB, in Create() 975 auto *NewCBI = CallBrInst::Create( in Create() 4506 CallBrInst *CallBrInst::cloneImpl() const { in cloneImpl() 4511 return new (AllocMarker) CallBrInst(*this, AllocMarker); in cloneImpl() 4514 return new (AllocMarker) CallBrInst(*this, AllocMarker); in cloneImpl()
|
| H A D | Dominators.cpp | 176 if (isa<InvokeInst>(Def) || isa<CallBrInst>(Def) || isa<PHINode>(User)) in dominates()
|
| H A D | Verifier.cpp | 593 void visitCallBrInst(CallBrInst &CBI); 2673 if (auto *CallBr = dyn_cast<CallBrInst>(&Call)) { in verifyInlineAsmCall() 3323 void Verifier::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst() 5004 else if (CallBrInst *CI = dyn_cast<CallBrInst>(&I)) in visitProfMetadata() 6502 const auto *CBR = dyn_cast<CallBrInst>(Call.getOperand(0)); in visitIntrinsicCall() 6513 if (!isa<CallBrInst>(PredBB->getTerminator())) { in visitIntrinsicCall()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | InstVisitor.h | 216 RetTy visitCallBrInst(CallBrInst &I) { DELEGATE(CallBase); } in visitCallBrInst() 262 if (isa<InvokeInst>(I) || isa<CallBrInst>(I)) in visitCallBase()
|
| H A D | Instructions.h | 3873 class CallBrInst : public CallBase { 3877 CallBrInst(const CallBrInst &BI, AllocInfo AllocInfo); 3882 inline CallBrInst(FunctionType *Ty, Value *Func, BasicBlock *DefaultDest, 3905 LLVM_ABI CallBrInst *cloneImpl() const; 3908 static CallBrInst *Create(FunctionType *Ty, Value *Func, 3916 CallBrInst(Ty, Func, DefaultDest, IndirectDests, Args, {}, AllocMarker, 3920 static CallBrInst * 3931 CallBrInst(Ty, Func, DefaultDest, IndirectDests, Args, Bundles, 3935 static CallBrInst *Create(FunctionCallee Func, BasicBlock *DefaultDest, 3943 static CallBrInst *Create(FunctionCallee Func, BasicBlock *DefaultDest, [all …]
|
| H A D | Instruction.def | 137 HANDLE_TERM_INST (11, CallBr , CallBrInst) // A call-site terminator
|
| H A D | IRBuilder.h | 1278 CallBrInst *CreateCallBr(FunctionType *Ty, Value *Callee, 1283 return Insert(CallBrInst::Create(Ty, Callee, DefaultDest, IndirectDests, 1286 CallBrInst *CreateCallBr(FunctionType *Ty, Value *Callee, 1293 CallBrInst::Create(Ty, Callee, DefaultDest, IndirectDests, Args, 1297 CallBrInst *CreateCallBr(FunctionCallee Callee, BasicBlock *DefaultDest, 1304 CallBrInst *CreateCallBr(FunctionCallee Callee, BasicBlock *DefaultDest,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | IROutliner.h | 418 bool visitCallBrInst(CallBrInst &CBI) { return false; } in visitCallBrInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.h | 51 class CallBrInst; variable 538 void visitCallBr(const CallBrInst &I);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IRSimilarityIdentifier.h | 585 InstrType visitCallBrInst(CallBrInst &CBI) { return Illegal; } in visitCallBrInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 3948 Instruction *InstCombinerImpl::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst() 4380 assert(!isa<CallBrInst>(Call) && in transformConstExprCastCall() 4741 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&Call)) { in transformCallThroughTrampoline() 4743 CallBrInst::Create(NewFTy, NestF, CBI->getDefaultDest(), in transformCallThroughTrampoline() 4745 cast<CallBrInst>(NewCaller)->setCallingConv(CBI->getCallingConv()); in transformCallThroughTrampoline() 4746 cast<CallBrInst>(NewCaller)->setAttributes(NewPAL); in transformCallThroughTrampoline()
|
| H A D | InstCombineInternal.h | 154 Instruction *visitCallBrInst(CallBrInst &CBI);
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ModuleSummaryAnalysis.cpp | 357 if (!isa<CallBrInst>(*U)) { in computeFunctionSummary()
|