[llvm-commits] CVS: llvm/include/llvm/Support/ConstantRange.h

Chris Lattner lattner at cs.uiuc.edu
Mon Mar 29 14:43:02 PST 2004


Changes in directory llvm/include/llvm/Support:

ConstantRange.h updated: 1.5 -> 1.6

---
Log message:

Relax the interface a bit


---
Diffs of the changes:  (+5 -5)

Index: llvm/include/llvm/Support/ConstantRange.h
diff -u llvm/include/llvm/Support/ConstantRange.h:1.5 llvm/include/llvm/Support/ConstantRange.h:1.6
--- llvm/include/llvm/Support/ConstantRange.h:1.5	Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Support/ConstantRange.h	Mon Mar 29 14:42:38 2004
@@ -28,7 +28,7 @@
 #include <iosfwd>
 
 namespace llvm {
-
+class Constant;
 class ConstantIntegral;
 class Type;
 
@@ -40,15 +40,15 @@
   ConstantRange(const Type *Ty, bool isFullSet = true);
   
   /// Initialize a range of values explicitly... this will assert out if
-  /// Lower==Upper and Lower != Min or Max for its type (or if the two constants
-  /// have different types)
+  /// Lower==Upper and Lower != Min or Max for its type, if the two constants
+  /// have different types, or if the constant are not integral values.
   ///
-  ConstantRange(ConstantIntegral *Lower, ConstantIntegral *Upper);
+  ConstantRange(Constant *Lower, Constant *Upper);
   
   /// Initialize a set of values that all satisfy the condition with C.
   ///
   ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C);
-  
+
   /// getLower - Return the lower value for this range...
   ///
   ConstantIntegral *getLower() const { return Lower; }





More information about the llvm-commits mailing list