mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Simplify the datalayout string of ARM and AArch64.
No functionality change. Reviewed by Tim Northover. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,7 +34,7 @@ AArch64TargetMachine::AArch64TargetMachine(const Target &T, StringRef TT,
|
|||||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||||
Subtarget(TT, CPU, FS),
|
Subtarget(TT, CPU, FS),
|
||||||
InstrInfo(Subtarget),
|
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),
|
TLInfo(*this),
|
||||||
TSInfo(*this),
|
TSInfo(*this),
|
||||||
FrameLowering(Subtarget) {
|
FrameLowering(Subtarget) {
|
||||||
|
@@ -75,9 +75,9 @@ static std::string computeDataLayout(ARMSubtarget &ST) {
|
|||||||
// aligned s them to 32 bits, others to 64 bits. We always try to align to
|
// aligned s them to 32 bits, others to 64 bits. We always try to align to
|
||||||
// 64 bits.
|
// 64 bits.
|
||||||
if (ST.isAPCS_ABI())
|
if (ST.isAPCS_ABI())
|
||||||
Ret += "-f64:32:64-i64:32:64";
|
Ret += "-f64:32:64";
|
||||||
else
|
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
|
// On thumb, i16,i18 and i1 have natural aligment requirements, but we try to
|
||||||
// align to 32.
|
// align to 32.
|
||||||
@@ -89,7 +89,7 @@ static std::string computeDataLayout(ARMSubtarget &ST) {
|
|||||||
if (ST.isAPCS_ABI())
|
if (ST.isAPCS_ABI())
|
||||||
Ret += "-v128:32:128-v64:32:64";
|
Ret += "-v128:32:128-v64:32:64";
|
||||||
else
|
else
|
||||||
Ret += "-v128:64:128-v64:64:64";
|
Ret += "-v128:64:128";
|
||||||
|
|
||||||
// An aggregate of size 0 is ABI aligned to 0.
|
// An aggregate of size 0 is ABI aligned to 0.
|
||||||
// FIXME: explain better what this means.
|
// FIXME: explain better what this means.
|
||||||
|
Reference in New Issue
Block a user