mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 06:14:42 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8fc3ffbb74
commit
fcf4242b9b
@ -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