[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h
Dan Gohman
djg at cray.com
Wed Jun 27 08:28:49 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
ValueTypes.h updated: 1.38 -> 1.39
---
Log message:
Document the encoding of MVT::ValueType.
---
Diffs of the changes: (+6 -0)
ValueTypes.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.38 llvm/include/llvm/CodeGen/ValueTypes.h:1.39
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.38 Tue Jun 26 10:20:04 2007
+++ llvm/include/llvm/CodeGen/ValueTypes.h Wed Jun 27 10:28:26 2007
@@ -82,6 +82,12 @@
/// Note that simple doesn't necessary mean legal for the target machine.
/// All legal value types must be simple, but often there are some simple
/// value types that are not legal.
+ ///
+ /// @internal
+ /// Currently extended types are always vector types. Extended types are
+ /// encoded by having the first SimpleTypeBits bits encode the vector
+ /// element type (which must be a scalar type) and the remaining upper
+ /// bits encode the vector length, offset by one.
typedef uint32_t ValueType;
static const int SimpleTypeBits = 8;
More information about the llvm-commits
mailing list