aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2013-06-21 18:51:49 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2013-06-21 18:51:49 +0000
commit0ff4287fe2245f417ed78fa535fce360b8b8df23 (patch)
treee70770e354d723b8320b18a505138396f514a9ee /include/llvm/ADT
parentc22e02b1f41387e791a08f1715e877e4fd86ca87 (diff)
downloadexternal_llvm-0ff4287fe2245f417ed78fa535fce360b8b8df23.zip
external_llvm-0ff4287fe2245f417ed78fa535fce360b8b8df23.tar.gz
external_llvm-0ff4287fe2245f417ed78fa535fce360b8b8df23.tar.bz2
[NVPTX] Add support for selecting CUDA vs OCL mode based on triple
IR for CUDA should use "nvptx[64]-nvidia-cuda", and IR for NV OpenCL should use "nvptx[64]-nvidia-nvcl" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/Triple.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h
index 41e463d..8406cc2 100644
--- a/include/llvm/ADT/Triple.h
+++ b/include/llvm/ADT/Triple.h
@@ -81,7 +81,8 @@ public:
BGP,
BGQ,
Freescale,
- IBM
+ IBM,
+ NVIDIA
};
enum OSType {
UnknownOS,
@@ -107,7 +108,9 @@ public:
NaCl, // Native Client
CNK, // BG/P Compute-Node Kernel
Bitrig,
- AIX
+ AIX,
+ CUDA, // NVIDIA CUDA
+ NVCL // NVIDIA OpenCL
};
enum EnvironmentType {
UnknownEnvironment,