Searched refs:CBI (Results 1 - 15 of 15) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSimplifyCFGPass.cpp112 if (auto *CBI = dyn_cast<CallBrInst>((*PI)->getTerminator()))
113 for (unsigned i = 0, e = CBI->getNumSuccessors(); i != e; ++i)
114 if (RetBlock == CBI->getSuccessor(i)) {
H A DSCCP.cpp645 void visitCallBrInst (CallBrInst &CBI) { argument
646 visitCallSite(&CBI);
647 visitTerminator(CBI);
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DCallSite.h65 CallSiteBase(CallBrTy *CBI) : I(CBI, 2) { assert(CBI); } argument
680 CallSite(CallBrInst *CBI) : CallSiteBase(CBI) {} argument
702 ImmutableCallSite(const CallBrInst *CBI) : CallSiteBase(CBI) {} argument
H A DInstructions.h4055 /// Create a clone of \p CBI with a different set of operand bundles and
4058 /// The returned callbr instruction is identical to \p CBI in every way
4061 static CallBrInst *Create(CallBrInst *CBI,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp831 CallBrInst::CallBrInst(const CallBrInst &CBI) argument
832 : CallBase(CBI.Attrs, CBI.FTy, CBI.getType(), Instruction::CallBr,
833 OperandTraits<CallBase>::op_end(this) - CBI.getNumOperands(),
834 CBI.getNumOperands()) {
835 setCallingConv(CBI.getCallingConv());
836 std::copy(CBI.op_begin(), CBI.op_end(), op_begin());
837 std::copy(CBI
843 Create(CallBrInst *CBI, ArrayRef<OperandBundleDef> OpB, Instruction *InsertPt) argument
[all...]
H A DVerifier.cpp474 void visitCallBrInst(CallBrInst &CBI);
2522 void Verifier::visitCallBrInst(CallBrInst &CBI) { argument
2523 Assert(CBI.isInlineAsm(), "Callbr is currently only used for asm-goto!",
2524 &CBI);
2525 Assert(CBI.getType()->isVoidTy(), "Callbr return value is not supported!",
2526 &CBI);
2527 for (unsigned i = 0, e = CBI.getNumSuccessors(); i != e; ++i)
2528 Assert(CBI.getSuccessor(i)->getType()->isLabelTy(),
2529 "Callbr successors must all have pointer type!", &CBI);
2530 for (unsigned i = 0, e = CBI
4132 const CallBase *CBI = dyn_cast<CallBase>(&I); local
[all...]
H A DAsmWriter.cpp3936 } else if (const CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) {
3937 Operand = CBI->getCalledValue();
3938 FunctionType *FTy = CBI->getFunctionType();
3940 const AttributeList &PAL = CBI->getAttributes();
3943 if (CBI->getCallingConv() != CallingConv::C) {
3945 PrintCallingConv(CBI->getCallingConv(), Out);
3960 for (unsigned op = 0, Eop = CBI->getNumArgOperands(); op < Eop; ++op) {
3963 writeParamOperand(CBI->getArgOperand(op), PAL.getParamAttributes(op));
3970 writeOperandBundles(CBI);
3973 writeOperand(CBI
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp554 for (auto CBI = CatchBlocks.rbegin(), CBE = CatchBlocks.rend();
555 CBI != CBE; ++CBI, FollowerState = CatchState) {
556 const BasicBlock *CatchBlock = *CBI;
H A DCodeGenPrepare.cpp689 if (auto *CBI = dyn_cast<CallBrInst>((*PI)->getTerminator()))
690 for (unsigned i = 0, e = CBI->getNumSuccessors(); i != e; ++i)
691 if (DestBB == CBI->getSuccessor(i))
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.cpp622 if (const VPInstruction *CBI = dyn_cast<VPInstruction>(CBV)) {
623 CBI->printAsOperand(OS);
624 OS << " (" << DOT::EscapeString(CBI->getParent()->getName()) << ")\\l\"";
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp4217 Instruction *InstCombiner::visitCallBrInst(CallBrInst &CBI) { argument
4218 return visitCallBase(CBI);
4765 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(Caller)) {
4766 NewCall = Builder.CreateCallBr(Callee, CBI->getDefaultDest(),
4767 CBI->getIndirectDests(), Args, OpBundles);
4796 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(Caller)) {
4797 BasicBlock::iterator I = CBI->getDefaultDest()->getFirstInsertionPt();
4947 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&Call)) {
4949 CallBrInst::Create(NewFTy, NewCallee, CBI->getDefaultDest(),
4950 CBI
[all...]
H A DInstCombineInternal.h427 Instruction *visitCallBrInst(CallBrInst &CBI);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2834 const CallBrInst *CBI = cast<CallBrInst>(&I); local
2835 const Value *Callee = CBI->getCalledValue();
2836 FunctionType *FTy = CBI->getFunctionType();
2838 if (CBI->hasOperandBundles())
2839 writeOperandBundles(CBI, InstID);
2843 Vals.push_back(VE.getAttributeListID(CBI->getAttributes()));
2845 Vals.push_back(CBI->getCallingConv() << bitc::CALL_CCONV |
2848 Vals.push_back(VE.getValueID(CBI->getDefaultDest()));
2849 Vals.push_back(CBI->getNumIndirectDests());
2850 for (unsigned i = 0, e = CBI
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp992 if (auto *CBI = dyn_cast<CallBrInst>((*I)->getTerminator())) {
993 if (Succ == CBI->getDefaultDest())
995 for (unsigned i = 0, e = CBI->getNumIndirectDests(); i != e; ++i)
996 if (Succ == CBI->getIndirectDest(i))
/freebsd-12-stable/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp166 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(V)) {
167 AttributeList AS = CBI->getAttributes();
173 CBI->setAttributes(AS);
6459 CallBrInst *CBI =
6462 CBI->setCallingConv(CC);
6463 CBI->setAttributes(PAL);
6464 ForwardRefAttrGroups[CBI] = FwdRefAttrGrps;
6465 Inst = CBI;

Completed in 337 milliseconds