Home
last modified time | relevance | path

Searched refs:CBI (Results 1 – 21 of 21) sorted by relevance

/llvm-project-15.0.7/llvm/lib/IR/
H A DDominators.cpp198 if (const auto *CBI = dyn_cast<CallBrInst>(Def)) { in dominates() local
199 BasicBlock *NormalDest = CBI->getDefaultDest(); in dominates()
315 if (const auto *CBI = dyn_cast<CallBrInst>(Def)) { in dominates() local
316 BasicBlock *NormalDest = CBI->getDefaultDest(); in dominates()
H A DInstructions.cpp969 CallBrInst::CallBrInst(const CallBrInst &CBI) in CallBrInst() argument
970 : CallBase(CBI.Attrs, CBI.FTy, CBI.getType(), Instruction::CallBr, in CallBrInst()
972 CBI.getNumOperands()) { in CallBrInst()
973 setCallingConv(CBI.getCallingConv()); in CallBrInst()
974 std::copy(CBI.op_begin(), CBI.op_end(), op_begin()); in CallBrInst()
975 std::copy(CBI.bundle_op_info_begin(), CBI.bundle_op_info_end(), in CallBrInst()
978 NumIndirectDests = CBI.NumIndirectDests; in CallBrInst()
983 std::vector<Value *> Args(CBI->arg_begin(), CBI->arg_end()); in Create()
986 CBI->getFunctionType(), CBI->getCalledOperand(), CBI->getDefaultDest(), in Create()
987 CBI->getIndirectDests(), Args, OpB, CBI->getName(), InsertPt); in Create()
[all …]
H A DAsmWriter.cpp4197 } else if (const CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) { in printInstruction() local
4198 Operand = CBI->getCalledOperand(); in printInstruction()
4199 FunctionType *FTy = CBI->getFunctionType(); in printInstruction()
4201 const AttributeList &PAL = CBI->getAttributes(); in printInstruction()
4204 if (CBI->getCallingConv() != CallingConv::C) { in printInstruction()
4206 PrintCallingConv(CBI->getCallingConv(), Out); in printInstruction()
4221 for (unsigned op = 0, Eop = CBI->arg_size(); op < Eop; ++op) { in printInstruction()
4224 writeParamOperand(CBI->getArgOperand(op), PAL.getParamAttrs(op)); in printInstruction()
4231 writeOperandBundles(CBI); in printInstruction()
4234 writeOperand(CBI->getDefaultDest(), true); in printInstruction()
[all …]
H A DVerifier.cpp529 void visitCallBrInst(CallBrInst &CBI);
2858 void Verifier::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst() argument
2859 Check(CBI.isInlineAsm(), "Callbr is currently only used for asm-goto!", &CBI); in visitCallBrInst()
2863 verifyInlineAsmCall(CBI); in visitCallBrInst()
2864 visitTerminator(CBI); in visitCallBrInst()
4644 const CallBase *CBI = dyn_cast<CallBase>(&I); in visitInstruction() local
4660 return CBI && CBI->isOperandBundleOfType( in visitInstruction()
4669 (CBI && &CBI->getCalledOperandUse() == &I.getOperandUse(i)) || in visitInstruction()
4670 IsAttachedCallOperand(F, CBI, i)), in visitInstruction()
4685 IsAttachedCallOperand(F, CBI, i), in visitInstruction()
[all …]
/llvm-project-15.0.7/bolt/lib/Passes/
H A DIdenticalCodeFolding.cpp557 for (auto &CBI : CongruentBuckets) { in runOnFunctions()
558 std::set<BinaryFunction *> &Candidates = CBI.second; in runOnFunctions()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/
H A DIROutliner.h418 bool visitCallBrInst(CallBrInst &CBI) { return false; } in visitCallBrInst()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2731 Instruction *InstCombinerImpl::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst() argument
2732 return visitCallBase(CBI); in visitCallBrInst()
3431 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(Caller)) { in transformConstExprCastCall() local
3432 NewCall = Builder.CreateCallBr(Callee, CBI->getDefaultDest(), in transformConstExprCastCall()
3433 CBI->getIndirectDests(), Args, OpBundles); in transformConstExprCastCall()
3459 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(Caller)) { in transformConstExprCastCall() local
3460 BasicBlock::iterator I = CBI->getDefaultDest()->getFirstInsertionPt(); in transformConstExprCastCall()
3610 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(&Call)) { in transformCallThroughTrampoline() local
3612 CallBrInst::Create(NewFTy, NewCallee, CBI->getDefaultDest(), in transformCallThroughTrampoline()
3613 CBI->getIndirectDests(), NewArgs, OpBundles); in transformCallThroughTrampoline()
[all …]
H A DInstCombineInternal.h146 Instruction *visitCallBrInst(CallBrInst &CBI);
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp311 void visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst() argument
312 visitCallBase(CBI); in visitCallBrInst()
313 visitTerminator(CBI); in visitCallBrInst()
H A DLocal.cpp1096 if (auto *CBI = dyn_cast<CallBrInst>(PredBB->getTerminator())) { in TryToSimplifyUncondBranchFromEmptyBlock() local
1097 if (Succ == CBI->getDefaultDest()) in TryToSimplifyUncondBranchFromEmptyBlock()
1099 for (unsigned i = 0, e = CBI->getNumIndirectDests(); i != e; ++i) in TryToSimplifyUncondBranchFromEmptyBlock()
1100 if (Succ == CBI->getIndirectDest(i)) in TryToSimplifyUncondBranchFromEmptyBlock()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp3006 const CallBrInst *CBI = cast<CallBrInst>(&I); in writeInstruction() local
3007 const Value *Callee = CBI->getCalledOperand(); in writeInstruction()
3008 FunctionType *FTy = CBI->getFunctionType(); in writeInstruction()
3010 if (CBI->hasOperandBundles()) in writeInstruction()
3011 writeOperandBundles(*CBI, InstID); in writeInstruction()
3015 Vals.push_back(VE.getAttributeListID(CBI->getAttributes())); in writeInstruction()
3017 Vals.push_back(CBI->getCallingConv() << bitc::CALL_CCONV | in writeInstruction()
3020 Vals.push_back(VE.getValueID(CBI->getDefaultDest())); in writeInstruction()
3021 Vals.push_back(CBI->getNumIndirectDests()); in writeInstruction()
3022 for (unsigned i = 0, e = CBI->getNumIndirectDests(); i != e; ++i) in writeInstruction()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DIRSimilarityIdentifier.h580 InstrType visitCallBrInst(CallBrInst &CBI) { return Illegal; } in visitCallBrInst()
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRInstrFormats.td357 // t = type (1 for SBI, 0 for CBI)
/llvm-project-15.0.7/llvm/lib/AsmParser/
H A DLLParser.cpp196 } else if (CallBrInst *CBI = dyn_cast<CallBrInst>(V)) { in validateEndOfModule() local
197 AttributeList AS = CBI->getAttributes(); in validateEndOfModule()
202 CBI->setAttributes(AS); in validateEndOfModule()
6775 CallBrInst *CBI = in parseCallBr() local
6778 CBI->setCallingConv(CC); in parseCallBr()
6779 CBI->setAttributes(PAL); in parseCallBr()
6780 ForwardRefAttrGroups[CBI] = FwdRefAttrGrps; in parseCallBr()
6781 Inst = CBI; in parseCallBr()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp2638 else if (auto *CBI = dyn_cast<CallBrInst>(Storage)) in salvageDebugInfo() local
2639 DVI->moveBefore(CBI->getDefaultDest()->getFirstNonPHI()); in salvageDebugInfo()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp825 if (auto *CBI = dyn_cast<CallBrInst>((Pred)->getTerminator())) in isMergingEmptyBlockProfitable() local
826 for (unsigned i = 0, e = CBI->getNumSuccessors(); i != e; ++i) in isMergingEmptyBlockProfitable()
827 if (DestBB == CBI->getSuccessor(i)) in isMergingEmptyBlockProfitable()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZScheduleZ13.td1297 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSB(I|IQ|CBI|CBIQ)?$")>;
H A DSystemZScheduleZ16.td1363 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSB(I|IQ|CBI|CBIQ)?$")>;
H A DSystemZScheduleZ15.td1357 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSB(I|IQ|CBI|CBIQ)?$")>;
H A DSystemZScheduleZ14.td1319 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSB(I|IQ|CBI|CBIQ)?$")>;
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstructions.h4120 static CallBrInst *Create(CallBrInst *CBI,