[Triple] Add AMDPAL operating system type
authorTim Renouf <tim.renouf@amd.com>
Fri, 29 Sep 2017 09:48:12 +0000 (09:48 +0000)
committerTim Renouf <tim.renouf@amd.com>
Fri, 29 Sep 2017 09:48:12 +0000 (09:48 +0000)
commit9f7ead33344baf87f546e6f90d13b97e291cee4b
tree0a867dca9847e05295da4bbca9543cfd83115230
parent817a3bfcdd0bbac8d74fdfdb83a08484d8f63a30
[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
llvm/include/llvm/ADT/Triple.h
llvm/lib/Support/Triple.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/test/CodeGen/AMDGPU/amdpal.ll [new file with mode: 0644]
llvm/unittests/ADT/TripleTest.cpp