summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-07-08 17:25:18 +0000
committerJustin Bogner <mail@justinbogner.com>2016-07-08 17:25:18 +0000
commit068a8054aed30c587619bec7e4d25fb11d9a9834 (patch)
treeb015c4ff53b9e7cf7beaacc9f510fb2a2ac28b5b /llvm/lib
parent4ca42e232d61e9cddf67d5a7f37a630fb3a26dc5 (diff)
downloadbcm5719-llvm-068a8054aed30c587619bec7e4d25fb11d9a9834.tar.gz
bcm5719-llvm-068a8054aed30c587619bec7e4d25fb11d9a9834.zip
IR: Set a TargetPrefix for nvvm intrinsics
Since these are named nvvm_* rather than nvptx_*, we also need to update getArchTypePrefix. It's a bit unusual for getArchTypePrefix not to match the backend name, but I think this fits the intent of the function in this case. llvm-svn: 274890
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Triple.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 433d1469d1b..cfa12a9f0b2 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -114,8 +114,9 @@ const char *Triple::getArchTypePrefix(ArchType Kind) {
case xcore: return "xcore";
- case nvptx: return "nvptx";
- case nvptx64: return "nvptx";
+ // NVPTX intrinsics are namespaced under nvvm.
+ case nvptx: return "nvvm";
+ case nvptx64: return "nvvm";
case le32: return "le32";
case le64: return "le64";
OpenPOWER on IntegriCloud