diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-20 16:27:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-20 16:27:10 +0000 |
commit | d35626e8bbd42dee37dbaae3621338b02b3788ad (patch) | |
tree | 87d15e19ddf49a2c529e405d2f5d4375e41cce8d /lib/Target/TargetData.cpp | |
parent | 5aeac0507065a29d145eedb1b4c6ed91ab3ccc8e (diff) |
Update and fix some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 838c675d1b..baef9c8fa7 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -156,13 +156,13 @@ const TargetAlignElem TargetData::InvalidAlignmentElem = <br><br> <i>@verbatim<type><size>:<abi_align>:<pref_align>@endverbatim</i>: Numeric type alignment. Type is - one of <i>i|f|v|a</i>, corresponding to integer, floating point, vector (aka - packed) or aggregate. Size indicates the size, e.g., 32 or 64 bits. + one of <i>i|f|v|a</i>, corresponding to integer, floating point, vector, or + aggregate. Size indicates the size, e.g., 32 or 64 bits. \p - The default string, fully specified is: + The default string, fully specified, is: <br><br> - "E-p:64:64:64-a0:0:0-f32:32:32-f64:0:64" - "-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:0:64" + "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64" + "-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64" "-v64:64:64-v128:128:128" <br><br> Note that in the case of aggregates, 0 is the default ABI and preferred @@ -185,9 +185,9 @@ void TargetData::init(const std::string &TargetDescription) { setAlignment(INTEGER_ALIGN, 4, 8, 64); // i64 setAlignment(FLOAT_ALIGN, 4, 4, 32); // float setAlignment(FLOAT_ALIGN, 8, 8, 64); // double - setAlignment(VECTOR_ALIGN, 8, 8, 64); // v2i32 + setAlignment(VECTOR_ALIGN, 8, 8, 64); // v2i32, v1i64, ... setAlignment(VECTOR_ALIGN, 16, 16, 128); // v16i8, v8i16, v4i32, ... - setAlignment(AGGREGATE_ALIGN, 0, 8, 0); // struct, union, class, ... + setAlignment(AGGREGATE_ALIGN, 0, 8, 0); // struct while (!temp.empty()) { std::string token = getToken(temp, "-"); |