For PR1297:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 1 Apr 2007 07:17:45 +0000 (07:17 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 1 Apr 2007 07:17:45 +0000 (07:17 +0000)
Add an "iAny" ValueType as a place holder for an integer type of any
bit width. This is used for intrinsics overloading on integer type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35538 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ValueTypes.h
include/llvm/CodeGen/ValueTypes.td

index f35f460a1be5175e3720e8a26a41abe194554045..cbf37a60e1f6eb11b76346587cfb1b99b33f23cc 100644 (file)
@@ -66,6 +66,11 @@ namespace MVT {  // MVT = Machine Value Types
 
     LAST_VALUETYPE =  25,   // This always remains at the end of the list.
 
+    // iAny - An integer value of any bit width. This is used for intrinsics
+    // that have overloadings based on integer bit widths. This is only for
+    // tblgen's consumption!
+    iAny           = 254,   
+
     // iPTR - An int value the size of the pointer of the current
     // target.  This should only be used internal to tblgen!
     iPTR           = 255
index 8c4758321d3d9ecb7eca2550da73d70f1789e50e..0541785e3eb5d553525878801eb384ec75e1fb5f 100644 (file)
@@ -46,6 +46,8 @@ def v2f32  : ValueType<64,  22>;   //  2 x f32 vector value
 def v4f32  : ValueType<128, 23>;   //  4 x f32 vector value
 def v2f64  : ValueType<128, 24>;   //  2 x f64 vector value
 
+// Pseudo valuetype to represent "integer of any bit width"
+def iAny   : ValueType<0  , 254>;   // integer value of any bit width
 
 // Pseudo valuetype mapped to the current pointer size.
 def iPTR   : ValueType<0  , 255>;