[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


================
@@ -2018,6 +2018,11 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
       return true;
     break;
   }
+  case Builtin::BI__builtin_hlsl_group_memory_barrier_with_group_sync: {
+    if (SemaRef.checkArgCountAtMost(TheCall, 0))
----------------
inbelic wrote:

Is there a reason to not use `SemaRef.checkArgCount(TheCall, 0)`? I think that would be more descriptive.

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


More information about the cfe-commits mailing list