diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-13 17:56:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-13 17:56:11 +0000 |
commit | 1caa693a7be8e4a10d84579f83a38ce031b54ad6 (patch) | |
tree | 7516450b4ba63b5541e94dc23cc7d6e1658b0abe /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 14c57ebed599800c7602e76a9b074d6a974548d4 (diff) | |
download | llvm-1caa693a7be8e4a10d84579f83a38ce031b54ad6.zip llvm-1caa693a7be8e4a10d84579f83a38ce031b54ad6.tar.gz llvm-1caa693a7be8e4a10d84579f83a38ce031b54ad6.tar.bz2 |
Assume defaults to produce smaller datalayout strings.
llvm-svn: 197249
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index 43d6b1c..561b5e6 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -35,8 +35,6 @@ extern "C" void LLVMInitializePowerPCTarget() { /// Return the datalayout string of a subtarget. static std::string getDataLayoutString(const PPCSubtarget &ST) { - const Triple &T = ST.getTargetTriple(); - // PPC is big endian. std::string Ret = "E"; @@ -48,19 +46,11 @@ static std::string getDataLayoutString(const PPCSubtarget &ST) { // Note, the alignment values for f64 and i64 on ppc64 in Darwin // documentation are wrong; these are correct (i.e. "what gcc does"). - Ret += "-f64:64:64-i64:64:64"; + Ret += "-i64:64:64"; // Set support for 128 floats depending on the ABI. - if (ST.isPPC64() && ST.isSVR4ABI()) { - if (T.getOS() != llvm::Triple::FreeBSD) - Ret += "-f128:128:128"; - } else { + if (!ST.isPPC64() || !ST.isSVR4ABI()) Ret += "-f128:64:128"; - } - - // Some ABIs support 128 bit vectors. - if (ST.isPPC64() && ST.isSVR4ABI()) - Ret += "-v128:128:128"; // PPC64 has 32 and 64 bit registers, PPC32 has only 32 bit ones. if (ST.isPPC64()) |