Lines Matching refs:CurInst
2496 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
2585 bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst,
2591 DEBUG(dbgs() << "Evaluating Instruction: " << *CurInst << "\n");
2593 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) {
2666 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) {
2672 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) {
2678 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) {
2684 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) {
2690 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) {
2701 } else if (LoadInst *LI = dyn_cast<LoadInst>(CurInst)) {
2722 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(CurInst)) {
2734 } else if (isa<CallInst>(CurInst) || isa<InvokeInst>(CurInst)) {
2735 CallSite CS(CurInst);
2740 ++CurInst;
2763 ++CurInst;
2771 ++CurInst;
2799 ++CurInst;
2851 } else if (isa<TerminatorInst>(CurInst)) {
2854 if (BranchInst *BI = dyn_cast<BranchInst>(CurInst)) {
2864 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(CurInst)) {
2869 } else if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(CurInst)) {
2875 } else if (isa<ReturnInst>(CurInst)) {
2893 if (!CurInst->use_empty()) {
2897 setVal(CurInst, InstResult);
2901 if (InvokeInst *II = dyn_cast<InvokeInst>(CurInst)) {
2908 ++CurInst;
2938 BasicBlock::iterator CurInst = CurBB->begin();
2944 if (!EvaluateBlock(CurInst, NextBB))
2967 for (CurInst = NextBB->begin();
2968 (PN = dyn_cast<PHINode>(CurInst)); ++CurInst)