summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-01 07:17:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-01 07:17:45 +0000
commit51455e00dc93f3e84226ac4737a6d37fe267ea3c (patch)
treeefd0f8b929bd31643fe07acf7bc2bf954d42ca05
parentf517e9578d97e507009174350548130642389938 (diff)
downloadbcm5719-llvm-51455e00dc93f3e84226ac4737a6d37fe267ea3c.tar.gz
bcm5719-llvm-51455e00dc93f3e84226ac4737a6d37fe267ea3c.zip
For PR1297:
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. llvm-svn: 35538
-rw-r--r--llvm/include/llvm/CodeGen/ValueTypes.h5
-rw-r--r--llvm/include/llvm/CodeGen/ValueTypes.td2
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/ValueTypes.h b/llvm/include/llvm/CodeGen/ValueTypes.h
index f35f460a1be..cbf37a60e1f 100644
--- a/llvm/include/llvm/CodeGen/ValueTypes.h
+++ b/llvm/include/llvm/CodeGen/ValueTypes.h
@@ -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
diff --git a/llvm/include/llvm/CodeGen/ValueTypes.td b/llvm/include/llvm/CodeGen/ValueTypes.td
index 8c4758321d3..0541785e3eb 100644
--- a/llvm/include/llvm/CodeGen/ValueTypes.td
+++ b/llvm/include/llvm/CodeGen/ValueTypes.td
@@ -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>;
OpenPOWER on IntegriCloud