Lines Matching refs:IndVar
168 PHINode *IndVar, SCEVExpander &Rewriter);
972 static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB, in genLoopLimit() argument
975 assert(isLoopCounter(IndVar, L, SE)); in genLoopLimit()
976 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in genLoopLimit()
983 if (IndVar->getType()->isPointerTy() && in genLoopLimit()
1002 assert(SE->getSizeOfExpr(IntegerType::getInt64Ty(IndVar->getContext()), in genLoopLimit()
1003 cast<PointerType>(IndVar->getType()) in genLoopLimit()
1009 return Rewriter.expandCodeFor(IVLimit, IndVar->getType(), BI); in genLoopLimit()
1051 IndVar->getType() : ExitCount->getType(); in genLoopLimit()
1065 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument
1067 assert(isLoopCounter(IndVar, L, SE)); in linearFunctionTestReplace()
1069 cast<Instruction>(IndVar->getIncomingValueForBlock(L->getLoopLatch())); in linearFunctionTestReplace()
1072 Value *CmpIndVar = IndVar; in linearFunctionTestReplace()
1084 IndVar->getType()->isIntegerTy() || in linearFunctionTestReplace()
1114 IndVar, ExitingBB, ExitCount, UsePostInc, L, Rewriter, SE); in linearFunctionTestReplace()
1116 IndVar->getType()->isPointerTy() && in linearFunctionTestReplace()
1159 ExitCnt = Builder.CreateZExt(ExitCnt, IndVar->getType(), in linearFunctionTestReplace()
1166 ExitCnt = Builder.CreateSExt(ExitCnt, IndVar->getType(), in linearFunctionTestReplace()
1839 PHINode *IndVar = FindLoopCounter(L, ExitingBB, ExitCount, SE, DT); in run() local
1840 if (!IndVar) in run()
1861 ExitCount, IndVar, in run()