aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-27 15:28:26 +0000
committerDan Gohman <gohman@apple.com>2007-06-27 15:28:26 +0000
commitc56b9e9f55ea4e26f51d28bb46d2005f0a08de1a (patch)
tree455c9e681e0d2fa6410526b90f6d4b0c2ca4e21c
parent6445f61806f595b87f8cff8e47c7bd7ee00b9519 (diff)
Document the encoding of MVT::ValueType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37757 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/ValueTypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h
index 8582323a52..211bc28123 100644
--- a/include/llvm/CodeGen/ValueTypes.h
+++ b/include/llvm/CodeGen/ValueTypes.h
@@ -82,6 +82,12 @@ namespace MVT { // MVT = Machine Value Types
/// 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;