[PATCH] D43895: [AMDGPU] Remove unused AMDOpenCL triple environment
Tony Tye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 12:54:00 PST 2018
t-tye created this revision.
t-tye added reviewers: arsenm, yaxunl, b-sumner.
Herald added subscribers: Anastasia, tpr, dstuttard, wdng.
This was used for the x86 target in AMD OpenCL which is no longer supported.
https://reviews.llvm.org/D43895
Files:
include/llvm/ADT/Triple.h
lib/Support/Triple.cpp
unittests/ADT/TripleTest.cpp
Index: unittests/ADT/TripleTest.cpp
===================================================================
--- unittests/ADT/TripleTest.cpp
+++ unittests/ADT/TripleTest.cpp
@@ -540,9 +540,6 @@
EXPECT_EQ(Triple::PC, T.getVendor());
EXPECT_EQ(Triple::Darwin, T.getOS());
EXPECT_EQ("i386-pc-darwin", T.getTriple());
-
- T.setEnvironmentName("amdopencl");
- EXPECT_EQ(Triple::AMDOpenCL, T.getEnvironment());
}
TEST(TripleTest, BitWidthPredicates) {
Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp
+++ lib/Support/Triple.cpp
@@ -232,7 +232,6 @@
case MSVC: return "msvc";
case Itanium: return "itanium";
case Cygnus: return "cygnus";
- case AMDOpenCL: return "amdopencl";
case CoreCLR: return "coreclr";
case OpenCL: return "opencl";
case Simulator: return "simulator";
@@ -523,7 +522,6 @@
.StartsWith("msvc", Triple::MSVC)
.StartsWith("itanium", Triple::Itanium)
.StartsWith("cygnus", Triple::Cygnus)
- .StartsWith("amdopencl", Triple::AMDOpenCL)
.StartsWith("coreclr", Triple::CoreCLR)
.StartsWith("opencl", Triple::OpenCL)
.StartsWith("simulator", Triple::Simulator)
Index: include/llvm/ADT/Triple.h
===================================================================
--- include/llvm/ADT/Triple.h
+++ include/llvm/ADT/Triple.h
@@ -202,7 +202,6 @@
MSVC,
Itanium,
Cygnus,
- AMDOpenCL,
CoreCLR,
OpenCL,
Simulator, // Simulator variants of other systems, e.g., Apple's iOS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43895.136367.patch
Type: text/x-patch
Size: 1542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/3c9d11a8/attachment.bin>
More information about the llvm-commits
mailing list