: 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-s:32:32-n32:64-S128"),
+ DL("e-i64:64:64-i128:128:128-s:32:32-n32:64-S128"),
TLInfo(*this),
TSInfo(*this),
FrameLowering(Subtarget) {
else
Ret += "E";
- // Pointers are 64 or 32 bit depending on the ABI.
- if (ST.isABI_N64())
- Ret += "-p:64:64:64";
- else
+ // Pointers are 32 bit on some ABIs.
+ if (!ST.isABI_N64())
Ret += "-p:32:32:32";
// 8 and 16 bit integers only need no have natural alignment, but try to
static std::string computeDataLayout(const NVPTXSubtarget &ST) {
std::string Ret = "e";
- if (ST.is64Bit())
- Ret += "-p:64:64:64";
- else
+ if (!ST.is64Bit())
Ret += "-p:32:32:32";
Ret += "-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-"
// PPC is big endian.
std::string Ret = "E";
- // PPC64 has 64 bit pointers, PPC32 has 32 bit pointers.
- if (ST.isPPC64())
- Ret += "-p:64:64";
- else
+ // PPC32 has 32 bit pointers.
+ if (!ST.isPPC64())
Ret += "-p:32:32";
// Note, the alignment values for f64 and i64 on ppc64 in Darwin
if (ST.hasHWFP64())
DataLayout.append("-f64:64:64");
- if (ST.is64bit())
- DataLayout.append("-p:64:64:64");
- else
+ if (!ST.is64bit())
DataLayout.append("-p:32:32:32");
if (ST.getGeneration() >= AMDGPUSubtarget::SOUTHERN_ISLANDS)
// Sparc is big endian.
std::string Ret = "E";
- // V9 has 64 bit pointers, others have 32bit pointers.
- if (ST.is64Bit())
- Ret += "-p:64:64:64";
- else
+ // Some ABIs have 32bit pointers.
+ if (!ST.is64Bit())
Ret += "-p:32:32:32";
// Alignments for 64 bit integers.
// Make sure that global data has at least 16 bits of alignment by default,
// so that we can refer to it using LARL. We don't have any special
// requirements for stack variables though.
- DL("E-p:64:64:64-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64"),
+ DL("E-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64"),
InstrInfo(*this), TLInfo(*this), TSInfo(*this),
FrameLowering(*this, Subtarget) {
initAsmInfo();
// X86 is little endian
std::string Ret = "e";
- // X86 and x32 have 32 bit pointers, x86-64 has 64 bit pointers
+ // X86 and x32 have 32 bit pointers.
if (ST.isTarget64BitILP32() || !ST.is64Bit())
Ret += "-p:32:32";
- else
- Ret += "-p:64:64";
// Objects on the stack ore aligned to 64 bits.
// FIXME: of any size?