summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-12-02 16:45:47 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-12-02 16:45:47 +0000
commit4082a6c2ec2c27414c65852bc175036f440f10f5 (patch)
tree86f91f3a9b3e34d6e6e5bbb79e1eaf4861110ac0 /llvm/lib/Support/Triple.cpp
parentd90dd7977e2d25a4f190c833114d97d354ce0590 (diff)
downloadbcm5719-llvm-4082a6c2ec2c27414c65852bc175036f440f10f5.tar.gz
bcm5719-llvm-4082a6c2ec2c27414c65852bc175036f440f10f5.zip
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
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 4a4773e2f7e..64cd6e73e9e 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -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);
}
OpenPOWER on IntegriCloud