Home
last modified time | relevance | path

Searched refs:IBI (Results 1 – 8 of 8) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DLocal.cpp186 if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(T)) { in ConstantFoldTerminator() local
189 dyn_cast<BlockAddress>(IBI->getAddress()->stripPointerCasts())) { in ConstantFoldTerminator()
194 for (unsigned i = 0, e = IBI->getNumDestinations(); i != e; ++i) { in ConstantFoldTerminator()
195 if (IBI->getDestination(i) == TheOnlyDest) in ConstantFoldTerminator()
198 IBI->getDestination(i)->removePredecessor(IBI->getParent()); in ConstantFoldTerminator()
200 Value *Address = IBI->getAddress(); in ConstantFoldTerminator()
201 IBI->eraseFromParent(); in ConstantFoldTerminator()
DSimplifyCFG.cpp74 bool SimplifyIndirectBr(IndirectBrInst *IBI);
442 } else if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(TI)) { in EraseTerminatorInstAndDCECond() local
443 Cond = dyn_cast<Instruction>(IBI->getAddress()); in EraseTerminatorInstAndDCECond()
2024 static bool SimplifyIndirectBrOnSelect(IndirectBrInst *IBI, SelectInst *SI) { in SimplifyIndirectBrOnSelect() argument
2036 return SimplifyTerminatorOnSelect(IBI, SI->getCondition(), TrueBB, FalseBB); in SimplifyIndirectBrOnSelect()
2704 bool SimplifyCFGOpt::SimplifyIndirectBr(IndirectBrInst *IBI) { in SimplifyIndirectBr() argument
2705 BasicBlock *BB = IBI->getParent(); in SimplifyIndirectBr()
2710 for (unsigned i = 0, e = IBI->getNumDestinations(); i != e; ++i) { in SimplifyIndirectBr()
2711 BasicBlock *Dest = IBI->getDestination(i); in SimplifyIndirectBr()
2714 IBI->removeDestination(i); in SimplifyIndirectBr()
[all …]
/external/llvm/lib/VMCore/
DInstructions.cpp3279 IndirectBrInst::IndirectBrInst(const IndirectBrInst &IBI) in IndirectBrInst() argument
3280 : TerminatorInst(Type::getVoidTy(IBI.getContext()), Instruction::IndirectBr, in IndirectBrInst()
3281 allocHungoffUses(IBI.getNumOperands()), in IndirectBrInst()
3282 IBI.getNumOperands()) { in IndirectBrInst()
3283 Use *OL = OperandList, *InOL = IBI.OperandList; in IndirectBrInst()
3284 for (unsigned i = 0, E = IBI.getNumOperands(); i != E; ++i) in IndirectBrInst()
3286 SubclassOptionalData = IBI.SubclassOptionalData; in IndirectBrInst()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2305 IndirectBrInst *IBI = IndirectBrInst::Create(Address, NumDests); in ParseFunctionBody() local
2306 InstructionList.push_back(IBI); in ParseFunctionBody()
2309 IBI->addDestination(DestBB); in ParseFunctionBody()
2311 delete IBI; in ParseFunctionBody()
2315 I = IBI; in ParseFunctionBody()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp1118 const IndirectBrInst *IBI = cast<IndirectBrInst>(I); in printInstruction() local
1120 << opNames[0] << ", " << IBI->getNumDestinations() << ");"; in printInstruction()
1122 for (unsigned i = 1; i != IBI->getNumOperands(); ++i) { in printInstruction()
/external/llvm/lib/AsmParser/
DLLParser.cpp3152 IndirectBrInst *IBI = IndirectBrInst::Create(Address, DestList.size()); in ParseIndirectBr() local
3154 IBI->addDestination(DestList[i]); in ParseIndirectBr()
3155 Inst = IBI; in ParseIndirectBr()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp2587 } else if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(CurInst)) { in EvaluateBlock() local
2588 Value *Val = getVal(IBI->getAddress())->stripPointerCasts(); in EvaluateBlock()
/external/llvm/include/llvm/
DInstructions.h2742 IndirectBrInst(const IndirectBrInst &IBI);