mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-03 16:21:41 +00:00
Triple: Add AMDHSA operating system type
This operating system type represents the AMD HSA runtime, and will be required by the R600 backend in order to generate correct code for this runtime. llvm-svn: 223124
This commit is contained in:
parent
498cbaf867
commit
a73fa23ade
@ -138,7 +138,8 @@ public:
|
||||
Bitrig,
|
||||
AIX,
|
||||
CUDA, // NVIDIA CUDA
|
||||
NVCL // NVIDIA OpenCL
|
||||
NVCL, // NVIDIA OpenCL
|
||||
AMDHSA // AMD HSA Runtime
|
||||
};
|
||||
enum EnvironmentType {
|
||||
UnknownEnvironment,
|
||||
|
@ -157,6 +157,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
||||
case AIX: return "aix";
|
||||
case CUDA: return "cuda";
|
||||
case NVCL: return "nvcl";
|
||||
case AMDHSA: return "amdhsa";
|
||||
}
|
||||
|
||||
llvm_unreachable("Invalid OSType");
|
||||
@ -345,6 +346,7 @@ static Triple::OSType parseOS(StringRef OSName) {
|
||||
.StartsWith("aix", Triple::AIX)
|
||||
.StartsWith("cuda", Triple::CUDA)
|
||||
.StartsWith("nvcl", Triple::NVCL)
|
||||
.StartsWith("amdhsa", Triple::AMDHSA)
|
||||
.Default(Triple::UnknownOS);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user