[all-commits] [llvm/llvm-project] dbed89: [AMDGPU] Add missing `__builtin_amdgcn_wavefrontsi...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Feb 5 15:58:31 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dbed89814e5b9ba25a349a5b9acf4a7164e33834
https://github.com/llvm/llvm-project/commit/dbed89814e5b9ba25a349a5b9acf4a7164e33834
Author: Joseph Huber <huberjn at outlook.com>
Date: 2024-02-05 (Mon, 05 Feb 2024)
Changed paths:
M clang/include/clang/Basic/BuiltinsAMDGPU.def
M clang/test/CodeGenOpenCL/builtins-amdgcn.cl
Log Message:
-----------
[AMDGPU] Add missing `__builtin_amdgcn_wavefrontsize` builtin (#80741)
Summary:
The backend supports the wavefrontsize intrinsic, and suggests that it
is tied to a corresponding clang builtin, but it is not actually
present. This simply adds it in so it can be used from clang. This
attribute likely isn't the best to rely on, but for the `libc` use-case
we will need to detect a struct's differing size in a way that will
depend on the wavefront size.
More information about the All-commits
mailing list