diff options
author | Tony Tye <Tony.Tye@amd.com> | 2018-03-23 18:45:18 +0000 |
---|---|---|
committer | Tony Tye <Tony.Tye@amd.com> | 2018-03-23 18:45:18 +0000 |
commit | 7a893d4e34e7261368c58ad583dfaa600108b7e1 (patch) | |
tree | fb50022d2ccd9637c6baf7cb492e03b6f0e7648b /llvm/lib/Support/Triple.cpp | |
parent | a6fb536e5b5c98d3ca46fbd7ea21893f633d21d8 (diff) | |
download | bcm5719-llvm-7a893d4e34e7261368c58ad583dfaa600108b7e1.tar.gz bcm5719-llvm-7a893d4e34e7261368c58ad583dfaa600108b7e1.zip |
[AMDGPU] Remove use of OpenCL triple environment and replace with function attribute for AMDGPU
- Remove use of the opencl and amdopencl environment member of the target triple for the AMDGPU target.
- Use function attribute to communicate to the AMDGPU backend to add implicit arguments for OpenCL kernels for the AMDHSA OS.
Differential Revision: https://reviews.llvm.org/D43736
llvm-svn: 328349
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r-- | llvm/lib/Support/Triple.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 5062fc43266..feeb10ad899 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -233,7 +233,6 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { case Itanium: return "itanium"; case Cygnus: return "cygnus"; case CoreCLR: return "coreclr"; - case OpenCL: return "opencl"; case Simulator: return "simulator"; } @@ -523,7 +522,6 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { .StartsWith("itanium", Triple::Itanium) .StartsWith("cygnus", Triple::Cygnus) .StartsWith("coreclr", Triple::CoreCLR) - .StartsWith("opencl", Triple::OpenCL) .StartsWith("simulator", Triple::Simulator) .Default(Triple::UnknownEnvironment); } |