diff options
author | Artem Belevich <tra@google.com> | 2020-09-24 10:47:45 -0700 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2020-09-24 14:33:04 -0700 |
commit | 30514f0afa3ee1e6da6bf9c41e83c28e884f0740 (patch) | |
tree | 1210b78f41828d5e5bad1bb36d496d76ba6b3766 /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | |
parent | 2a96f47c5ffca84cd774ad402cacd137f4bf45e2 (diff) | |
download | llvm-30514f0afa3ee1e6da6bf9c41e83c28e884f0740.zip llvm-30514f0afa3ee1e6da6bf9c41e83c28e884f0740.tar.gz llvm-30514f0afa3ee1e6da6bf9c41e83c28e884f0740.tar.bz2 |
[CUDA] Added conversion functions to builtin vars.
This is needed to compile some headers in CUDA-11 that assume that threadIdx is
implicitly convertible to dim3. With NVCC, threadIdx is uint3 and there's
dim3(uint3) constructor. Clang uses a special type for the builtin variables, so
that path does not work. Instead, this patch adds conversion function to the
builtin variable classes. that will allow them to be converted to dim3 and uint3.
Differential Revision: https://reviews.llvm.org/D88250
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions