diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-03-30 14:29:25 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-03-30 14:29:25 +0000 |
commit | 21fdcb02716f5eae097abfd2f44e40563e90180a (patch) | |
tree | a22b3d6bd88893175984ae4e699c41b9ccad8b55 /lib/Target/NVPTX/CMakeLists.txt | |
parent | 3639ce2575660a0e6938d2e84e8bd9a738fd7051 (diff) | |
download | external_llvm-21fdcb02716f5eae097abfd2f44e40563e90180a.zip external_llvm-21fdcb02716f5eae097abfd2f44e40563e90180a.tar.gz external_llvm-21fdcb02716f5eae097abfd2f44e40563e90180a.tar.bz2 |
[NVPTX] Add NVVMReflect pass to allow compile-time selection of
specific code paths.
This allows us to write code like:
if (__nvvm_reflect("FOO"))
// Do something
else
// Do something else
and compile into a library, then give "FOO" a value at kernel
compile-time so the check becomes a no-op.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX/CMakeLists.txt')
-rw-r--r-- | lib/Target/NVPTX/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/NVPTX/CMakeLists.txt b/lib/Target/NVPTX/CMakeLists.txt index 47baef6..7da2fed 100644 --- a/lib/Target/NVPTX/CMakeLists.txt +++ b/lib/Target/NVPTX/CMakeLists.txt @@ -22,6 +22,7 @@ set(NVPTXCodeGen_sources NVPTXAllocaHoisting.cpp NVPTXAsmPrinter.cpp NVPTXUtilities.cpp + NVVMReflect.cpp ) add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources}) |