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 | 2b4b7fe3620aed71af41cb614ff6b51bb8d39841 (patch) | |
tree | adb47c5f1621a57bb81c3d216d5e67898418945f /unittests/ADT/TripleTest.cpp | |
parent | 0995a92322bbb13cb3a75c8bf5150d90fa1be5aa (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT/TripleTest.cpp')
-rw-r--r-- | unittests/ADT/TripleTest.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/unittests/ADT/TripleTest.cpp b/unittests/ADT/TripleTest.cpp index c19ad43c723..3103074b093 100644 --- a/unittests/ADT/TripleTest.cpp +++ b/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()); |