From 7a893d4e34e7261368c58ad583dfaa600108b7e1 Mon Sep 17 00:00:00 2001 From: Tony Tye Date: Fri, 23 Mar 2018 18:45:18 +0000 Subject: [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 --- llvm/lib/Support/Triple.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'llvm/lib/Support/Triple.cpp') 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); } -- cgit v1.2.3