Lines Matching refs:CurInst

192 bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst,  in EvaluateBlock()  argument
198 DEBUG(dbgs() << "Evaluating Instruction: " << *CurInst << "\n"); in EvaluateBlock()
200 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateBlock()
273 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) { in EvaluateBlock()
279 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) { in EvaluateBlock()
285 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) { in EvaluateBlock()
291 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) { in EvaluateBlock()
297 } else if (auto *EVI = dyn_cast<ExtractValueInst>(CurInst)) { in EvaluateBlock()
302 } else if (auto *IVI = dyn_cast<InsertValueInst>(CurInst)) { in EvaluateBlock()
308 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) { in EvaluateBlock()
319 } else if (LoadInst *LI = dyn_cast<LoadInst>(CurInst)) { in EvaluateBlock()
340 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(CurInst)) { in EvaluateBlock()
351 } else if (isa<CallInst>(CurInst) || isa<InvokeInst>(CurInst)) { in EvaluateBlock()
352 CallSite CS(&*CurInst); in EvaluateBlock()
357 ++CurInst; in EvaluateBlock()
380 ++CurInst; in EvaluateBlock()
388 ++CurInst; in EvaluateBlock()
416 ++CurInst; in EvaluateBlock()
420 ++CurInst; in EvaluateBlock()
472 } else if (isa<TerminatorInst>(CurInst)) { in EvaluateBlock()
475 if (BranchInst *BI = dyn_cast<BranchInst>(CurInst)) { in EvaluateBlock()
485 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(CurInst)) { in EvaluateBlock()
490 } else if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(CurInst)) { in EvaluateBlock()
496 } else if (isa<ReturnInst>(CurInst)) { in EvaluateBlock()
514 if (!CurInst->use_empty()) { in EvaluateBlock()
518 setVal(&*CurInst, InstResult); in EvaluateBlock()
522 if (InvokeInst *II = dyn_cast<InvokeInst>(CurInst)) { in EvaluateBlock()
529 ++CurInst; in EvaluateBlock()
559 BasicBlock::iterator CurInst = CurBB->begin(); in EvaluateFunction() local
565 if (!EvaluateBlock(CurInst, NextBB)) in EvaluateFunction()
588 for (CurInst = NextBB->begin(); in EvaluateFunction()
589 (PN = dyn_cast<PHINode>(CurInst)); ++CurInst) in EvaluateFunction()