[llvm] r197172 - Simplify the datalayout string of ARM and AArch64.

Rafael Espindola rafael.espindola at gmail.com
Thu Dec 12 09:43:37 PST 2013


Author: rafael
Date: Thu Dec 12 11:43:37 2013
New Revision: 197172

URL: http://llvm.org/viewvc/llvm-project?rev=197172&view=rev
Log:
Simplify the datalayout string of ARM and AArch64.

No functionality change.

Reviewed by Tim Northover.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp
    llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp?rev=197172&r1=197171&r2=197172&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp Thu Dec 12 11:43:37 2013
@@ -34,7 +34,7 @@ AArch64TargetMachine::AArch64TargetMachi
   : LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
     Subtarget(TT, CPU, FS),
     InstrInfo(Subtarget),
-    DL("e-p:64:64-i64:64:64-i128:128:128-s0:32:32-f128:128:128-n32:64-S128"),
+    DL("e-p:64:64-i64:64:64-i128:128:128-s:32:32-n32:64-S128"),
     TLInfo(*this),
     TSInfo(*this),
     FrameLowering(Subtarget) {

Modified: llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp?rev=197172&r1=197171&r2=197172&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp Thu Dec 12 11:43:37 2013
@@ -75,9 +75,9 @@ static std::string computeDataLayout(ARM
   // aligned s them to 32 bits, others to 64 bits. We always try to align to
   // 64 bits.
   if (ST.isAPCS_ABI())
-    Ret += "-f64:32:64-i64:32:64";
+    Ret += "-f64:32:64";
   else
-    Ret += "-f64:64:64-i64:64:64";
+    Ret += "-i64:64:64";
 
   // On thumb, i16,i18 and i1 have natural aligment requirements, but we try to
   // align to 32.
@@ -89,7 +89,7 @@ static std::string computeDataLayout(ARM
   if (ST.isAPCS_ABI())
     Ret += "-v128:32:128-v64:32:64";
   else
-    Ret += "-v128:64:128-v64:64:64";
+    Ret += "-v128:64:128";
 
   // An aggregate of size 0 is ABI aligned to 0.
   // FIXME: explain better what this means.





More information about the llvm-commits mailing list