commit | 21fdcb02716f5eae097abfd2f44e40563e90180a | [log] [tgz] |
---|---|---|
author | Justin Holewinski <jholewinski@nvidia.com> | Sat Mar 30 14:29:25 2013 +0000 |
committer | Justin Holewinski <jholewinski@nvidia.com> | Sat Mar 30 14:29:25 2013 +0000 |
tree | a22b3d6bd88893175984ae4e699c41b9ccad8b55 | |
parent | 3639ce2575660a0e6938d2e84e8bd9a738fd7051 [diff] |
[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