================
@@ -77,6 +77,8 @@ let TargetPrefix = "spv" in {
Intrinsic<[llvm_i32_ty], [], [NoUndef<RetIndex>,
IntrNoMem, IntrWillReturn]>;
def int_spv_subgroup_max_size :
ClangBuiltin<"__builtin_spirv_subgroup_max_size">,
Intrinsic<[llvm_i32_ty], [], [NoUndef<RetIndex>,
IntrNoMem, IntrWillReturn]>;
+ def int_spv_subgroup_ballot :
ClangBuiltin<"__builtin_spirv_subgroup_ballot">,
----------------
AlexVlx wrote:
SPIRV Subgroups are more general / less constrained than what DX considers
waves (even though in almost all cases they end up being the same thing in
practice). At a glance, it might be worth considering whether or not the DX
specific intrinsic can be expressed / implemented in terms of the subgroup one,
and then removed.
https://github.com/llvm/llvm-project/pull/174862
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits