mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Structure R600's computeDataLayout more like every other target.
While there, simplify "p3:32:32:32" to "p3:32:32". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197407 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7113922b20
commit
068fa852b6
@ -50,19 +50,16 @@ SchedCustomRegistry("r600", "Run R600's custom scheduler",
|
||||
createR600MachineScheduler);
|
||||
|
||||
static std::string computeDataLayout(const AMDGPUSubtarget &ST) {
|
||||
std::string DataLayout = std::string(
|
||||
"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-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256"
|
||||
"-v256:256-v512:512-v1024:1024-v2048:2048-n32:64";
|
||||
|
||||
if (!ST.is64bit())
|
||||
DataLayout.append("-p:32:32");
|
||||
Ret += "-p:32:32";
|
||||
|
||||
if (ST.getGeneration() >= AMDGPUSubtarget::SOUTHERN_ISLANDS)
|
||||
DataLayout.append("-p3:32:32:32");
|
||||
Ret += "-p3:32:32";
|
||||
|
||||
return DataLayout;
|
||||
return Ret;
|
||||
}
|
||||
|
||||
AMDGPUTargetMachine::AMDGPUTargetMachine(const Target &T, StringRef TT,
|
||||
|
Loading…
Reference in New Issue
Block a user