[all-commits] [llvm/llvm-project] 30514f: [CUDA] Added conversion functions to builtin vars.
Artem Belevich via All-commits
all-commits at lists.llvm.org
Thu Sep 24 14:33:57 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 30514f0afa3ee1e6da6bf9c41e83c28e884f0740
https://github.com/llvm/llvm-project/commit/30514f0afa3ee1e6da6bf9c41e83c28e884f0740
Author: Artem Belevich <tra at google.com>
Date: 2020-09-24 (Thu, 24 Sep 2020)
Changed paths:
M clang/lib/Headers/__clang_cuda_builtin_vars.h
M clang/lib/Headers/__clang_cuda_runtime_wrapper.h
Log Message:
-----------
[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
More information about the All-commits
mailing list