[clang] [llvm] [HLSL][DXIL][SPIRV] Added DeviceMemoryBarrier() and AllMemoryBarrier() intrinsics (PR #190633)

Sietze Riemersma via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 13:00:32 PDT 2026


================
@@ -6,8 +6,8 @@
 define void @test_group_memory_barrier_with_group_sync() #0 {
 entry:
   ; CHECK: %[[#TY:]] = OpTypeInt 32 0
-  ; CHECK-DAG: %[[#MEM_SEM:]] = OpConstant %[[#TY]] 264
   ; CHECK-DAG: %[[#EXEC_AND_MEM_SCOPE:]] = OpConstant %[[#TY]] 2
+  ; CHECK-DAG: %[[#MEM_SEM:]] = OpConstant %[[#TY]] 264
----------------
KungFuDonkey wrote:

Did it for consistency with other files, order is now the same as in cpp side:
exec (only for WithGroupSync)
mem scope
mem_sem


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


More information about the cfe-commits mailing list