[clang] [AMDGPU] Allow w64 ballot to be used on w32 targets (PR #80183)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 01:00:17 PST 2024
================
@@ -151,7 +151,7 @@ BUILTIN(__builtin_amdgcn_mqsad_u32_u8, "V4UiWUiUiV4Ui", "nc")
//===----------------------------------------------------------------------===//
TARGET_BUILTIN(__builtin_amdgcn_ballot_w32, "ZUib", "nc", "wavefrontsize32")
-TARGET_BUILTIN(__builtin_amdgcn_ballot_w64, "WUib", "nc", "wavefrontsize64")
+BUILTIN(__builtin_amdgcn_ballot_w64, "WUib", "nc")
----------------
arsenm wrote:
The target attribute is just a giant footgun for AMDGPU. This one only works in the library with special handholding by the compiler
https://github.com/llvm/llvm-project/pull/80183
More information about the cfe-commits
mailing list