summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT
diff options
context:
space:
mode:
authorTony Tye <Tony.Tye@amd.com>2018-03-23 18:45:18 +0000
committerTony Tye <Tony.Tye@amd.com>2018-03-23 18:45:18 +0000
commit7a893d4e34e7261368c58ad583dfaa600108b7e1 (patch)
treefb50022d2ccd9637c6baf7cb492e03b6f0e7648b /llvm/unittests/ADT
parenta6fb536e5b5c98d3ca46fbd7ea21893f633d21d8 (diff)
downloadbcm5719-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/unittests/ADT')
-rw-r--r--llvm/unittests/ADT/TripleTest.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/unittests/ADT/TripleTest.cpp b/llvm/unittests/ADT/TripleTest.cpp
index c19ad43c723..3103074b093 100644
--- a/llvm/unittests/ADT/TripleTest.cpp
+++ b/llvm/unittests/ADT/TripleTest.cpp
@@ -283,12 +283,6 @@ TEST(TripleTest, ParsedIDs) {
EXPECT_EQ(Triple::AMDHSA, T.getOS());
EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
- T = Triple("amdgcn-amd-amdhsa-opencl");
- EXPECT_EQ(Triple::amdgcn, T.getArch());
- EXPECT_EQ(Triple::AMD, T.getVendor());
- EXPECT_EQ(Triple::AMDHSA, T.getOS());
- EXPECT_EQ(Triple::OpenCL, T.getEnvironment());
-
T = Triple("amdgcn-amd-amdpal");
EXPECT_EQ(Triple::amdgcn, T.getArch());
EXPECT_EQ(Triple::AMD, T.getVendor());
OpenPOWER on IntegriCloud