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

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 05:08:58 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")
----------------
arsenm wrote:

We should probably do this for every single builtin 

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


More information about the cfe-commits mailing list