Add function GetConstantValueAsUnsignedInt.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 4 Aug 2002 20:55:59 +0000 (20:55 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 4 Aug 2002 20:55:59 +0000 (20:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3249 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/InstrSelectionSupport.h

index adfad6bd36c4e0b634c411a53986966ccd4e0c80..3f41fb464778b4772cda011288cbf2a8e0d5e8b1 100644 (file)
@@ -21,11 +21,13 @@ class TargetMachine;
 
 
 //---------------------------------------------------------------------------
+// Function GetConstantValueAsUnsignedInt
 // Function GetConstantValueAsSignedInt
 // 
-// Convenience function to get the value of an integer constant, for an
-// appropriate integer or non-integer type that can be held in an integer.
-// The type of the argument must be the following:
+// Convenience functions to get the value of an integer constant, for an
+// appropriate integer or non-integer type that can be held in a signed
+// or unsigned integer respectively.  The type of the argument must be
+// the following:
 //      Signed or unsigned integer
 //      Boolean
 //      Pointer
@@ -33,6 +35,9 @@ class TargetMachine;
 // isValidConstant is set to true if a valid constant was found.
 //---------------------------------------------------------------------------
 
+uint64_t        GetConstantValueAsUnsignedInt   (const Value *V,
+                                                 bool &isValidConstant);
+
 int64_t         GetConstantValueAsSignedInt     (const Value *V,
                                                  bool &isValidConstant);