For PR1195:
authorReid Spencer <rspencer@reidspencer.com>
Thu, 15 Feb 2007 22:07:05 +0000 (22:07 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 15 Feb 2007 22:07:05 +0000 (22:07 +0000)
PACKED_ALIGN -> VECTOR_ALIGN

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34330 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetData.h
lib/Target/TargetData.cpp

index 7c2b88b08b813035423dabc0548c3887e4ab1568..025d6aba4ba6008e4d1638362bef04885f060720 100644 (file)
@@ -36,7 +36,7 @@ class GlobalVariable;
 /// Enum used to categorize the alignment types stored by TargetAlignElem
 enum AlignTypeEnum {
   INTEGER_ALIGN = 'i',               ///< Integer type alignment
-  PACKED_ALIGN = 'v',                ///< Vector type alignment
+  VECTOR_ALIGN = 'v',                ///< Vector type alignment
   FLOAT_ALIGN = 'f',                 ///< Floating point type alignment
   AGGREGATE_ALIGN = 'a'              ///< Aggregate alignment
 };
index 41bc78a992308a70b0db7761f38cf0303a16d07d..3f9da2bc09075862057dbc9bfbcaed13039bf583 100644 (file)
@@ -184,8 +184,8 @@ void TargetData::init(const std::string &TargetDescription) {
   setAlignment(INTEGER_ALIGN,   4,  8, 64);  // long
   setAlignment(FLOAT_ALIGN,     4,  4, 32);  // float
   setAlignment(FLOAT_ALIGN,     8,  8, 64);  // double
-  setAlignment(PACKED_ALIGN,    8,  8, 64);  // v2i32
-  setAlignment(PACKED_ALIGN,   16, 16, 128); // v16i8, v8i16, v4i32, ...
+  setAlignment(VECTOR_ALIGN,    8,  8, 64);  // v2i32
+  setAlignment(VECTOR_ALIGN,   16, 16, 128); // v16i8, v8i16, v4i32, ...
   setAlignment(AGGREGATE_ALIGN, 0,  0,  0);  // struct, union, class, ...
   
   while (!temp.empty()) {
@@ -218,7 +218,7 @@ void TargetData::init(const std::string &TargetDescription) {
     case 'a': {
       align_type = (*p == 'i' ? INTEGER_ALIGN :
                     (*p == 'f' ? FLOAT_ALIGN :
-                     (*p == 'v' ? PACKED_ALIGN : AGGREGATE_ALIGN)));
+                     (*p == 'v' ? VECTOR_ALIGN : AGGREGATE_ALIGN)));
       size = (short) atoi(++p);
       abi_align = atoi(getToken(token, ":").c_str()) / 8;
       pref_align = atoi(getToken(token, ":").c_str()) / 8;
@@ -485,7 +485,7 @@ unsigned char TargetData::getAlignment(const Type *Ty, bool abi_or_pref) const
     AlignType = FLOAT_ALIGN;
     break;
   case Type::VectorTyID:
-    AlignType = PACKED_ALIGN;
+    AlignType = VECTOR_ALIGN;
     break;
   default:
     assert(0 && "Bad type for getAlignment!!!");