Add LoopQueue. This is used by loop pass manager to manage loop nest.
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolutionExpander.h
index 8a994b322ab4cb23a3c5cfa6db4c9a5753ffb393..fad2da9b9b6ab0f562aefc4e45c1a846218d9d68 100644 (file)
@@ -60,8 +60,7 @@ namespace llvm {
     /// loop (inserting one if there is none).  A canonical induction variable
     /// starts at zero and steps by one on each iteration.
     Value *getOrInsertCanonicalInductionVariable(const Loop *L, const Type *Ty){
-      assert((Ty->isIntegral() || Ty->isFloatingPoint()) &&
-             "Can only insert integer or floating point induction variables!");
+      assert(Ty->isInteger() && "Can only insert integer induction variables!");
       SCEVHandle H = SCEVAddRecExpr::get(SCEVUnknown::getIntegerSCEV(0, Ty),
                                          SCEVUnknown::getIntegerSCEV(1, Ty), L);
       return expand(H);
@@ -106,9 +105,9 @@ namespace llvm {
     Value *expandInTy(SCEV *S, const Type *Ty) {
       Value *V = expand(S);
       if (Ty && V->getType() != Ty) {
-        if (isa<PointerType>(Ty) && V->getType()->isIntegral())
+        if (isa<PointerType>(Ty) && V->getType()->isInteger())
           return InsertCastOfTo(Instruction::IntToPtr, V, Ty);
-        else if (Ty->isIntegral() && isa<PointerType>(V->getType()))
+        else if (Ty->isInteger() && isa<PointerType>(V->getType()))
           return InsertCastOfTo(Instruction::PtrToInt, V, Ty);
         else if (Ty->getPrimitiveSizeInBits() == 
                  V->getType()->getPrimitiveSizeInBits())