/external/llvm/include/llvm/Analysis/ |
D | CFGPrinter.h | 91 if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) { 98 SwitchInst::ConstCaseIt Case = 99 SwitchInst::ConstCaseIt::fromSuccessorIndex(SI, SuccNo);
|
/external/llvm/lib/Transforms/Utils/ |
D | LowerExpectIntrinsic.cpp | 44 bool HandleSwitchExpect(SwitchInst *SI); 59 bool LowerExpectIntrinsic::HandleSwitchExpect(SwitchInst *SI) { in HandleSwitchExpect() 76 SwitchInst::CaseIt Case = SI->findCaseValue(ExpectedValue); in HandleSwitchExpect() 151 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) { in runOnFunction()
|
D | LowerSwitch.cpp | 61 void processSwitchInst(SwitchInst *SI); 67 unsigned Clusterify(CaseVector& Cases, SwitchInst *SI); 100 if (SwitchInst *SI = dyn_cast<SwitchInst>(Cur->getTerminator())) { in runOnFunction() 236 unsigned LowerSwitch::Clusterify(CaseVector& Cases, SwitchInst *SI) { in Clusterify() 240 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); i != e; ++i) in Clusterify() 276 void LowerSwitch::processSwitchInst(SwitchInst *SI) { in processSwitchInst()
|
D | SimplifyCFG.cpp | 73 bool SimplifySwitch(SwitchInst *SI, IRBuilder<> &Builder); 437 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in EraseTerminatorInstAndDCECond() 454 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in isValueEqualityComparison() 481 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in GetValueEqualityComparisonCases() 483 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); i != e; ++i) in GetValueEqualityComparisonCases() 599 SwitchInst *SI = cast<SwitchInst>(TI); in SimplifyEqualityComparisonWithOnlyPredecessor() 608 for (SwitchInst::CaseIt i = SI->case_end(), e = SI->case_begin(); i != e;) { in SimplifyEqualityComparisonWithOnlyPredecessor() 791 SwitchInst *NewSI = Builder.CreateSwitch(CV, PredDefault, in FoldValueComparisonIntoPredecessors() 2003 static bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select) { in SimplifySwitchOnSelect() 2072 if (Pred == 0 || !isa<SwitchInst>(Pred->getTerminator())) return false; in TryToSimplifyUncondBranchWithICmpInIt() [all …]
|
D | LowerInvoke.cpp | 98 SwitchInst *CatchSwitch); 204 SwitchInst *CatchSwitch) { in rewriteExpensiveInvoke() 477 SwitchInst *CatchSwitch = in insertExpensiveEHSupport() 478 SwitchInst::Create(CatchLoad, UnwindBB, Invokes.size(), CatchBB); in insertExpensiveEHSupport()
|
D | Local.cpp | 105 if (SwitchInst *SI = dyn_cast<SwitchInst>(T)) { in ConstantFoldTerminator() 113 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); in ConstantFoldTerminator() 171 SwitchInst::CaseIt FirstCase = SI->case_begin(); in ConstantFoldTerminator()
|
D | CloneFunction.cpp | 318 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) { in CloneBlock() 326 SwitchInst::ConstCaseIt Case = SI->findCaseValue(Cond); in CloneBlock()
|
D | CodeExtractor.cpp | 467 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() 468 SwitchInst::Create(Constant::getNullValue(Type::getInt16Ty(Context)), in emitCallAndSwitchStatement() 621 TheSwitch->removeCase(SwitchInst::CaseIt(TheSwitch, NumExitBlocks-1)); in emitCallAndSwitchStatement()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 72 typedef DenseMap<const SwitchInst*, SmallPtrSet<const Value *, 8> > 112 void setUnswitched(const SwitchInst* SI, const Value* V); 115 bool isUnswitched(const SwitchInst* SI, const Value* V); 286 void LUAnalysisCache::setUnswitched(const SwitchInst* SI, const Value* V) { in setUnswitched() 291 bool LUAnalysisCache::isUnswitched(const SwitchInst* SI, const Value* V) { in isUnswitched() 318 const SwitchInst* OldInst = I->first; in cloneData() 320 const SwitchInst* NewInst = cast_or_null<SwitchInst>(NewI); in cloneData() 452 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in processCurrentLoop() 465 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); in processCurrentLoop() 585 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(HeaderTerm)) { in IsTrivialUnswitchCondition() [all …]
|
D | CorrelatedValuePropagation.cpp | 41 bool processSwitch(SwitchInst *SI); 186 bool CorrelatedValuePropagation::processSwitch(SwitchInst *SI) { in processSwitch() 202 for (SwitchInst::CaseIt CI = SI->case_end(), CE = SI->case_begin(); CI-- != CE; in processSwitch() 289 BBChanged |= processSwitch(cast<SwitchInst>(Term)); in runOnFunction()
|
D | SCCP.cpp | 552 if (SwitchInst *SI = dyn_cast<SwitchInst>(&TI)) { in getFeasibleSuccessors() 616 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in isEdgeFeasible() 1482 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in ResolvedUndefsIn() 1866 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(I)) { in runOnModule()
|
D | TailRecursionElimination.cpp | 293 if (SwitchInst *SI = dyn_cast<SwitchInst>(UniquePred->getTerminator())) in isDynamicConstant()
|
D | JumpThreading.cpp | 256 if (isa<SwitchInst>(I)) in getJumpThreadDuplicationCost() 670 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(Terminator)) { in ProcessBlock() 1100 else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) { in ProcessThreadableEdges()
|
/external/clang/lib/CodeGen/ |
D | CGCleanup.cpp | 273 llvm::SwitchInst *Switch, in ResolveAllBranchFixups() 309 static llvm::SwitchInst *TransitionToCleanupSwitch(CodeGenFunction &CGF, in TransitionToCleanupSwitch() 320 llvm::SwitchInst *Switch = in TransitionToCleanupSwitch() 321 llvm::SwitchInst::Create(Load, Br->getSuccessor(0), 4, Block); in TransitionToCleanupSwitch() 325 return cast<llvm::SwitchInst>(Term); in TransitionToCleanupSwitch() 357 llvm::SwitchInst *Switch = TransitionToCleanupSwitch(*this, BranchBB); in ResolveBranchFixups() 476 llvm::SwitchInst *Switch = cast<llvm::SwitchInst>(Term); in ForwardPrebranchedFallthrough() 504 llvm::SwitchInst *si = cast<llvm::SwitchInst>(use.getUser()); in destroyOptimisticNormalEntry() 729 llvm::SwitchInst *Switch = in PopCleanupBlock() 730 llvm::SwitchInst::Create(Load, Default, SwitchCapacity); in PopCleanupBlock()
|
/external/llvm/tools/llvm-diff/ |
D | DifferenceEngine.cpp | 310 } else if (isa<SwitchInst>(L)) { in diff() 311 SwitchInst *LI = cast<SwitchInst>(L); in diff() 312 SwitchInst *RI = cast<SwitchInst>(R); in diff() 323 for (SwitchInst::CaseIt I = LI->case_begin(), E = LI->case_end(); in diff() 327 for (SwitchInst::CaseIt I = RI->case_begin(), E = RI->case_end(); in diff()
|
/external/llvm/lib/Analysis/ |
D | SparsePropagation.cpp | 173 SwitchInst &SI = cast<SwitchInst>(TI); in getFeasibleSuccessors() 197 SwitchInst::CaseIt Case = SI.findCaseValue(cast<ConstantInt>(C)); in getFeasibleSuccessors()
|
D | LazyValueInfo.cpp | 857 if (SwitchInst *SI = dyn_cast<SwitchInst>(BBFrom->getTerminator())) { in getEdgeValue() 869 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); in getEdgeValue()
|
/external/llvm/include/llvm/ |
D | Instructions.h | 2440 class SwitchInst : public TerminatorInst { 2447 SwitchInst(const SwitchInst &SI); 2458 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, 2465 SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, 2468 virtual SwitchInst *clone_impl() const; 2562 typedef CaseIteratorT<const SwitchInst, const ConstantInt, const BasicBlock> 2565 class CaseIt : public CaseIteratorT<SwitchInst, ConstantInt, BasicBlock> { 2567 typedef CaseIteratorT<SwitchInst, ConstantInt, BasicBlock> ParentTy; 2572 CaseIt(SwitchInst *SI, unsigned CaseNum) : ParentTy(SI, CaseNum) {} 2586 static SwitchInst *Create(Value *Value, BasicBlock *Default, [all …]
|
D | Instruction.def | 99 HANDLE_TERM_INST ( 3, Switch , SwitchInst)
|
/external/llvm/lib/VMCore/ |
D | Instructions.cpp | 3120 void SwitchInst::init(Value *Value, BasicBlock *Default, unsigned NumReserved) { in init() 3134 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() function in SwitchInst 3145 SwitchInst::SwitchInst(Value *Value, BasicBlock *Default, unsigned NumCases, in SwitchInst() function in SwitchInst 3152 SwitchInst::SwitchInst(const SwitchInst &SI) in SwitchInst() function in SwitchInst 3164 SwitchInst::~SwitchInst() { in ~SwitchInst() 3171 void SwitchInst::addCase(ConstantInt *OnVal, BasicBlock *Dest) { in addCase() 3186 void SwitchInst::removeCase(CaseIt i) { in removeCase() 3209 void SwitchInst::growOperands() { in growOperands() 3224 BasicBlock *SwitchInst::getSuccessorV(unsigned idx) const { in getSuccessorV() 3227 unsigned SwitchInst::getNumSuccessorsV() const { in getNumSuccessorsV() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 68 class SwitchInst; variable 200 size_t Clusterify(CaseVector &Cases, const SwitchInst &SI); 430 void visitSwitch(const SwitchInst &I);
|
/external/llvm/include/llvm/Support/ |
D | InstVisitor.h | 163 RetTy visitSwitchInst(SwitchInst &I) { DELEGATE(TerminatorInst);} in visitSwitchInst()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 143 void visitSwitchInst(SwitchInst &I);
|
/external/llvm/examples/ExceptionDemo/ |
D | ExceptionDemo.cpp | 1021 llvm::SwitchInst *theSwitch = builder.CreateSwitch(builder.CreateLoad( in createFinallyBlock() 1329 llvm::SwitchInst *switchToCatchBlock = builder.CreateSwitch(retTypeInfoIndex, in createCatchWrappedInvokeFunction() 1428 llvm::SwitchInst *theSwitch = builder.CreateSwitch(exceptionType, in createThrowExceptionFunction()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1243 Instruction *InstCombiner::visitSwitchInst(SwitchInst &SI) { in visitSwitchInst() 1250 for (SwitchInst::CaseIt i = SI.case_begin(), e = SI.case_end(); in visitSwitchInst() 1874 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { in AddReachableCodeToWorklist() 1877 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); in AddReachableCodeToWorklist()
|