[clang] [clang][AMDGPU] fix the return type for ballot (PR #73906)

Sameer Sahasrabuddhe via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 1 01:06:20 PST 2023


================
@@ -150,8 +150,8 @@ BUILTIN(__builtin_amdgcn_mqsad_u32_u8, "V4UiWUiUiV4Ui", "nc")
 // Ballot builtins.
 //===----------------------------------------------------------------------===//
 
-TARGET_BUILTIN(__builtin_amdgcn_ballot_w32, "Uib", "nc", "wavefrontsize32")
-TARGET_BUILTIN(__builtin_amdgcn_ballot_w64, "LUib", "nc", "wavefrontsize64")
+TARGET_BUILTIN(__builtin_amdgcn_ballot_w32, "ZUib", "nc", "wavefrontsize32")
+TARGET_BUILTIN(__builtin_amdgcn_ballot_w64, "WUib", "nc", "wavefrontsize64")
----------------
ssahasra wrote:

I checked now. The tell is whether the builtin uses "L" in its type descriptor. None of them do except ballot.

https://github.com/llvm/llvm-project/pull/73906


More information about the cfe-commits mailing list