diff options
author | Tim Renouf <tim.renouf@amd.com> | 2017-09-29 09:48:12 +0000 |
---|---|---|
committer | Tim Renouf <tim.renouf@amd.com> | 2017-09-29 09:48:12 +0000 |
commit | 9f7ead33344baf87f546e6f90d13b97e291cee4b (patch) | |
tree | 0a867dca9847e05295da4bbca9543cfd83115230 /llvm/lib/Support/Triple.cpp | |
parent | 817a3bfcdd0bbac8d74fdfdb83a08484d8f63a30 (diff) | |
download | bcm5719-llvm-9f7ead33344baf87f546e6f90d13b97e291cee4b.tar.gz bcm5719-llvm-9f7ead33344baf87f546e6f90d13b97e291cee4b.zip |
[Triple] Add AMDPAL operating system type
Summary:
This operating system type represents the AMDGPU PAL runtime, and will
be required by the AMDGPU backend in order to generate correct code for
this runtime.
Currently it generates the same code as not specifying an OS at all.
That will change in future commits.
Patch from Tim Corringham.
Subscribers: arsenm, nhaehnle
Differential Revision: https://reviews.llvm.org/D37380
llvm-svn: 314500
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 8dc582ab95a..69c99ac907a 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -207,6 +207,7 @@ StringRef Triple::getOSTypeName(OSType Kind) { case WatchOS: return "watchos"; case Mesa3D: return "mesa3d"; case Contiki: return "contiki"; + case AMDPAL: return "amdpal"; } llvm_unreachable("Invalid OSType"); @@ -499,6 +500,7 @@ static Triple::OSType parseOS(StringRef OSName) { .StartsWith("watchos", Triple::WatchOS) .StartsWith("mesa3d", Triple::Mesa3D) .StartsWith("contiki", Triple::Contiki) + .StartsWith("amdpal", Triple::AMDPAL) .Default(Triple::UnknownOS); } |