[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h ValueTypes.td
Reid Spencer
reid at x10sys.com
Sun Apr 1 00:18:04 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
ValueTypes.h updated: 1.31 -> 1.32
ValueTypes.td updated: 1.3 -> 1.4
---
Log message:
For PR1297: http://llvm.org/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.
---
Diffs of the changes: (+7 -0)
ValueTypes.h | 5 +++++
ValueTypes.td | 2 ++
2 files changed, 7 insertions(+)
Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.31 llvm/include/llvm/CodeGen/ValueTypes.h:1.32
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.31 Fri Mar 30 23:03:02 2007
+++ llvm/include/llvm/CodeGen/ValueTypes.h Sun Apr 1 02:17:45 2007
@@ -66,6 +66,11 @@
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: llvm/include/llvm/CodeGen/ValueTypes.td
diff -u llvm/include/llvm/CodeGen/ValueTypes.td:1.3 llvm/include/llvm/CodeGen/ValueTypes.td:1.4
--- llvm/include/llvm/CodeGen/ValueTypes.td:1.3 Sat Mar 24 12:36:26 2007
+++ llvm/include/llvm/CodeGen/ValueTypes.td Sun Apr 1 02:17:45 2007
@@ -46,6 +46,8 @@
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>;
More information about the llvm-commits
mailing list