[clang] [clang][HLSL] Add GroupMemoryBarrierWithGroupSync intrinsic (PR #111883)

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 11:09:23 PDT 2024


================
@@ -4830,6 +4830,12 @@ def HLSLRadians : LangBuiltin<"HLSL_LANG"> {
   let Prototype = "void(...)";
 }
 
+def HLSLGroupMemoryBarrierWithGroupSync: LangBuiltin<"HLSL_LANG"> {
+  let Spellings = ["__builtin_hlsl_group_memory_barrier_with_group_sync"];
+  let Attributes = [NoThrow, Const];
+  let Prototype = "void(...)";
----------------
inbelic wrote:

As with `WaveIsFirstLane` I don't think we need `...` and can just do `()`

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


More information about the cfe-commits mailing list