diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-12-02 16:45:47 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-12-02 16:45:47 +0000 |
commit | 4082a6c2ec2c27414c65852bc175036f440f10f5 (patch) | |
tree | 86f91f3a9b3e34d6e6e5bbb79e1eaf4861110ac0 /llvm/lib/Support/Triple.cpp | |
parent | d90dd7977e2d25a4f190c833114d97d354ce0590 (diff) | |
download | llvm-4082a6c2ec2c27414c65852bc175036f440f10f5.zip llvm-4082a6c2ec2c27414c65852bc175036f440f10f5.tar.gz llvm-4082a6c2ec2c27414c65852bc175036f440f10f5.tar.bz2 |
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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 4a4773e..64cd6e7 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); } |