One last cleanup of LLVM's DataLayout strings.

Produce them in the same order on every target. The order is that of
getStringRepresentation: e|E-i*-f*-v*-a*-s*-n*-S*.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197411 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-12-16 19:31:14 +00:00
parent 068fa852b6
commit c4bc055bb4
5 changed files with 16 additions and 15 deletions

View File

@@ -50,8 +50,7 @@ SchedCustomRegistry("r600", "Run R600's custom scheduler",
createR600MachineScheduler);
static std::string computeDataLayout(const AMDGPUSubtarget &ST) {
std::string Ret = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256"
"-v256:256-v512:512-v1024:1024-v2048:2048-n32:64";
std::string Ret = "e";
if (!ST.is64bit())
Ret += "-p:32:32";
@@ -59,6 +58,9 @@ static std::string computeDataLayout(const AMDGPUSubtarget &ST) {
if (ST.getGeneration() >= AMDGPUSubtarget::SOUTHERN_ISLANDS)
Ret += "-p3:32:32";
Ret += "-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256"
"-v512:512-v1024:1024-v2048:2048-n32:64";
return Ret;
}