diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-06-21 18:51:49 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-06-21 18:51:49 +0000 |
commit | 0ff4287fe2245f417ed78fa535fce360b8b8df23 (patch) | |
tree | e70770e354d723b8320b18a505138396f514a9ee /include/llvm/ADT | |
parent | c22e02b1f41387e791a08f1715e877e4fd86ca87 (diff) | |
download | external_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.h | 7 |
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, |