Lines Matching refs:CurInst
291 bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst,
297 LLVM_DEBUG(dbgs() << "Evaluating Instruction: " << *CurInst << "\n");
299 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) {
372 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) {
378 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) {
384 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) {
390 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) {
396 } else if (auto *EVI = dyn_cast<ExtractValueInst>(CurInst)) {
401 } else if (auto *IVI = dyn_cast<InsertValueInst>(CurInst)) {
407 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) {
417 } else if (LoadInst *LI = dyn_cast<LoadInst>(CurInst)) {
440 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(CurInst)) {
452 } else if (isa<CallInst>(CurInst) || isa<InvokeInst>(CurInst)) {
453 CallSite CS(&*CurInst);
458 ++CurInst;
481 ++CurInst;
489 ++CurInst;
519 ++CurInst;
523 ++CurInst;
527 ++CurInst;
581 } else if (isa<TerminatorInst>(CurInst)) {
584 if (BranchInst *BI = dyn_cast<BranchInst>(CurInst)) {
594 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(CurInst)) {
599 } else if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(CurInst)) {
605 } else if (isa<ReturnInst>(CurInst)) {
624 if (!CurInst->use_empty()) {
628 setVal(&*CurInst, InstResult);
632 if (InvokeInst *II = dyn_cast<InvokeInst>(CurInst)) {
639 ++CurInst;
669 BasicBlock::iterator CurInst = CurBB->begin();
675 if (!EvaluateBlock(CurInst, NextBB))
698 for (CurInst = NextBB->begin();
699 (PN = dyn_cast<PHINode>(CurInst)); ++CurInst)