Lines Matching defs:IndVar
163 PHINode *IndVar, SCEVExpander &Rewriter);
1997 /// Insert an IR expression which computes the value held by the IV IndVar
2000 static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB,
2003 assert(isLoopCounter(IndVar, L, SE));
2004 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar));
2011 if (IndVar->getType()->isPointerTy() &&
2030 assert(SE->getSizeOfExpr(IntegerType::getInt64Ty(IndVar->getContext()),
2031 cast<PointerType>(IndVar->getType())
2037 return Rewriter.expandCodeFor(IVLimit, IndVar->getType(), BI);
2075 // Ensure that we generate the same type as IndVar, or a smaller integer
2077 // SCEV expression (IVInit) for a pointer type IV value (IndVar).
2079 IndVar->getType() : ExitCount->getType();
2093 PHINode *IndVar, SCEVExpander &Rewriter) {
2095 assert(isLoopCounter(IndVar, L, SE));
2097 cast<Instruction>(IndVar->getIncomingValueForBlock(L->getLoopLatch()));
2100 Value *CmpIndVar = IndVar;
2112 IndVar->getType()->isIntegerTy() ||
2142 IndVar, ExitingBB, ExitCount, UsePostInc, L, Rewriter, SE);
2144 IndVar->getType()->isPointerTy() &&
2187 ExitCnt = Builder.CreateZExt(ExitCnt, IndVar->getType(),
2194 ExitCnt = Builder.CreateSExt(ExitCnt, IndVar->getType(),
2761 PHINode *IndVar = FindLoopCounter(L, ExitingBB, ExitCount, SE, DT);
2762 if (!IndVar)
2783 ExitCount, IndVar,