mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20: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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user