[PATCH] D137154: Adding nvvm_reflect clang builtin
Hugh Delaney via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 04:14:35 PDT 2022
hdelan created this revision.
Herald added subscribers: mattd, gchakrabarti, asavonic, hiraditya.
Herald added a project: All.
hdelan requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, jholewinski.
Herald added projects: clang, LLVM.
This patch adds __nvvm_reflect as a clang builtin for NVPTX backend. This means
that __nvvm_reflect can be used in source code in order to enable conditional compilation
based on compute capability and FTZ properties.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137154
Files:
clang/include/clang/Basic/BuiltinsNVPTX.def
clang/test/CodeGenCUDA/nvvm-reflect.cu
llvm/include/llvm/IR/IntrinsicsNVVM.td
llvm/lib/Target/NVPTX/NVVMReflect.cpp
llvm/test/CodeGen/NVPTX/nvvm-reflect-opaque.ll
llvm/test/CodeGen/NVPTX/nvvm-reflect.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137154.472255.patch
Type: text/x-patch
Size: 7600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221101/dd4dc7c5/attachment.bin>
More information about the llvm-commits
mailing list