[PATCH] D16495: [CUDA] Use Triple::isNVPTX() instead of enumerating nvptx && nvptx64.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 22 17:07:48 PST 2016
jlebar created this revision.
jlebar added a reviewer: tra.
jlebar added subscribers: cfe-commits, jhen, echristo.
No functional changes.
http://reviews.llvm.org/D16495
Files:
lib/Driver/Tools.cpp
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -10651,8 +10651,7 @@
const char *LinkingOutput) const {
const auto &TC =
static_cast<const toolchains::CudaToolChain &>(getToolChain());
- assert(TC.getArch() == llvm::Triple::nvptx ||
- TC.getArch() == llvm::Triple::nvptx64);
+ assert(TC.getTriple().isNVPTX());
std::vector<std::string> gpu_archs =
Args.getAllArgValues(options::OPT_march_EQ);
@@ -10720,8 +10719,7 @@
const char *LinkingOutput) const {
const auto &TC =
static_cast<const toolchains::CudaToolChain &>(getToolChain());
- assert(TC.getArch() == llvm::Triple::nvptx ||
- TC.getArch() == llvm::Triple::nvptx64);
+ assert(TC.getTriple().isNVPTX());
ArgStringList CmdArgs;
CmdArgs.push_back("--cuda");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16495.45775.patch
Type: text/x-patch
Size: 943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160123/ece33ab9/attachment.bin>
More information about the cfe-commits
mailing list