mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 23:43:50 +00:00
Refactor NVPTX's computeDataLayout.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d9c819c28
commit
f562e09c9f
@ -64,13 +64,18 @@ extern "C" void LLVMInitializeNVPTXTarget() {
|
||||
}
|
||||
|
||||
static std::string computeDataLayout(const NVPTXSubtarget &ST) {
|
||||
std::string Ret = "e";
|
||||
|
||||
if (ST.is64Bit())
|
||||
return "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-"
|
||||
"f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-"
|
||||
"n16:32:64";
|
||||
return "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-"
|
||||
Ret += "-p:64:64:64";
|
||||
else
|
||||
Ret += "-p:32:32:32";
|
||||
|
||||
Ret += "-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-"
|
||||
"f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-"
|
||||
"n16:32:64";
|
||||
|
||||
return Ret;
|
||||
}
|
||||
|
||||
NVPTXTargetMachine::NVPTXTargetMachine(
|
||||
|
Loading…
Reference in New Issue
Block a user