r197442 - Reorder these DataLayout entries to match the order LLVM uses.
Rafael Espindola
rafael.espindola at gmail.com
Mon Dec 16 16:04:48 PST 2013
Author: rafael
Date: Mon Dec 16 18:04:48 2013
New Revision: 197442
URL: http://llvm.org/viewvc/llvm-project?rev=197442&view=rev
Log:
Reorder these DataLayout entries to match the order LLVM uses.
This completes the cleanup/refactoring of DataLayout on the clang side. Next
is figuring out the differences between the llvm and clang produced strings
Modified:
cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/test/CodeGen/target-data.c
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=197442&r1=197441&r2=197442&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Dec 16 18:04:48 2013
@@ -3224,9 +3224,7 @@ public:
Int64Type = SignedLong;
RegParmMax = 6;
- DescriptionString = "e-"
- "i64:64-"
- "s:64-f80:128-n8:16:32:64-S128";
+ DescriptionString = "e-i64:64-f80:128-s:64-n8:16:32:64-S128";
// Use fpret only for long double.
RealTypeUsesObjCFPRet = (1 << TargetInfo::LongDouble);
@@ -4228,9 +4226,7 @@ class HexagonTargetInfo : public TargetI
public:
HexagonTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) {
BigEndian = false;
- DescriptionString = ("e-p:32:32-"
- "i64:64-i1:32"
- "-a:0-n32");
+ DescriptionString = ("e-p:32:32-i1:32-i64:64-a:0-n32");
// {} in inline assembly are packet specifiers, not assembly variant
// specifiers.
@@ -5464,9 +5460,8 @@ public:
WCharType = UnsignedChar;
WIntType = UnsignedInt;
UseZeroLengthBitfieldAlignment = true;
- DescriptionString = "e-p:32:32-a:0:32-n32"
- "-i1:8:32-i8:8:32-i16:16:32-i64:32"
- "-f16:16:32-f64:32";
+ DescriptionString = "e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:32"
+ "-f16:16:32-f64:32-a:0:32-n32";
}
virtual void getTargetDefines(const LangOptions &Opts,
MacroBuilder &Builder) const {
Modified: cfe/trunk/test/CodeGen/target-data.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/target-data.c?rev=197442&r1=197441&r2=197442&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/target-data.c (original)
+++ cfe/trunk/test/CodeGen/target-data.c Mon Dec 16 18:04:48 2013
@@ -16,11 +16,11 @@
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | \
// RUN: FileCheck --check-prefix=X86_64 %s
-// X86_64: target datalayout = "e-i64:64-s:64-f80:128-n8:16:32:64-S128"
+// X86_64: target datalayout = "e-i64:64-f80:128-s:64-n8:16:32:64-S128"
// RUN: %clang_cc1 -triple xcore-unknown-unknown -emit-llvm -o - %s | \
// RUN: FileCheck --check-prefix=XCORE %s
-// XCORE: target datalayout = "e-p:32:32-a:0:32-n32-i1:8:32-i8:8:32-i16:16:32-i64:32-f16:16:32-f64:32"
+// XCORE: target datalayout = "e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:32-f16:16:32-f64:32-a:0:32-n32"
// RUN: %clang_cc1 -triple sparc-sun-solaris -emit-llvm -o - %s | \
// RUN: FileCheck %s --check-prefix=SPARC-V8
@@ -126,7 +126,7 @@
// RUN: %clang_cc1 -triple hexagon-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=HEXAGON
-// HEXAGON: target datalayout = "e-p:32:32-i64:64-i1:32-a:0-n32"
+// HEXAGON: target datalayout = "e-p:32:32-i1:32-i64:64-a:0-n32"
// RUN: %clang_cc1 -triple s390x-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=SYSTEMZ
More information about the cfe-commits
mailing list