[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h ValueTypes.td
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 27 14:48:12 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
ValueTypes.h updated: 1.25 -> 1.26
ValueTypes.td updated: 1.1 -> 1.2
---
Log message:
add a new iPTR ValueType for tblgen use
---
Diffs of the changes: (+9 -1)
ValueTypes.h | 6 +++++-
ValueTypes.td | 4 ++++
2 files changed, 9 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.25 llvm/include/llvm/CodeGen/ValueTypes.h:1.26
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.25 Sun Mar 19 18:20:30 2006
+++ llvm/include/llvm/CodeGen/ValueTypes.h Mon Mar 27 16:48:00 2006
@@ -63,7 +63,11 @@
FIRST_VECTOR_VALUETYPE = v8i8,
LAST_VECTOR_VALUETYPE = v2f64,
- LAST_VALUETYPE = 24 // This always remains at the end of the list.
+ LAST_VALUETYPE = 24, // This always remains at the end of the list.
+
+ // iPTR - An int value the size of the pointer of the current
+ // target. This should only be used internal to tblgen!
+ iPTR = 255
};
/// MVT::isInteger - Return true if this is a simple integer, or a packed
Index: llvm/include/llvm/CodeGen/ValueTypes.td
diff -u llvm/include/llvm/CodeGen/ValueTypes.td:1.1 llvm/include/llvm/CodeGen/ValueTypes.td:1.2
--- llvm/include/llvm/CodeGen/ValueTypes.td:1.1 Thu Mar 2 19:54:11 2006
+++ llvm/include/llvm/CodeGen/ValueTypes.td Mon Mar 27 16:48:00 2006
@@ -43,3 +43,7 @@
def v2f32 : ValueType<64, 21>; // 2 x f32 vector value
def v4f32 : ValueType<128, 22>; // 4 x f32 vector value
def v2f64 : ValueType<128, 23>; // 2 x f64 vector value
+
+
+// Pseudo valuetype mapped to the current pointer size.
+def iPTR : ValueType<0 , 255>;
More information about the llvm-commits
mailing list