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/Target/AMDGPU | |
| 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/Target/AMDGPU')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h index 7e7a09648ed..0f725c181b7 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h @@ -214,6 +214,10 @@ public: TargetTriple.getEnvironmentName() == "amdgizcl"; } + bool isAmdPalOS() const { + return TargetTriple.getOS() == Triple::AMDPAL; + } + Generation getGeneration() const { return Gen; } |

