[all-commits] [llvm/llvm-project] 1ee32d: [Clang] Add width handling for <gpuintrin.h> shuff...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Tue Feb 11 12:11:38 PST 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 1ee32d22344f94f179063e3ddf8ae880af2cb240
https://github.com/llvm/llvm-project/commit/1ee32d22344f94f179063e3ddf8ae880af2cb240
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-02-11 (Tue, 11 Feb 2025)
Changed paths:
M clang/lib/Headers/amdgpuintrin.h
M clang/lib/Headers/gpuintrin.h
M clang/lib/Headers/nvptxintrin.h
M libc/src/__support/GPU/utils.h
M libc/test/integration/src/__support/GPU/CMakeLists.txt
A libc/test/integration/src/__support/GPU/shuffle.cpp
Log Message:
-----------
[Clang] Add width handling for <gpuintrin.h> shuffle helper (#125896)
Summary:
The CUDA impelementation has long supported the `width` argument on its
shuffle instrucitons, which makes it more difficult to replace those
uses with this helper. This patch just correctly implements that for
AMDGPU and NVPTX so it's equivalent to `__shfl_sync` in CUDA. This will
ease porting.
Fortunately these get optimized out correctly when passing in known
widths.
(cherry picked from commit 2d8106cb5a505326d1da0f4461708ed44a0ac761)
Commit: 9e7f8352c7a3dbbade39c11fe6f786d0457956ee
https://github.com/llvm/llvm-project/commit/9e7f8352c7a3dbbade39c11fe6f786d0457956ee
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-02-11 (Tue, 11 Feb 2025)
Changed paths:
M clang/test/Headers/gpuintrin.c
Log Message:
-----------
[Clang] Fix test after new argument was added
(cherry picked from commit 718cdeb9c701725412a040b2b7148523a286a256)
Compare: https://github.com/llvm/llvm-project/compare/6195c3a981c8...9e7f8352c7a3
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list