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

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 11:08:32 PDT 2026


================
@@ -6,9 +6,9 @@
 define void @test_group_memory_barrier() #0 {
 entry:
   ; CHECK: %[[#TY:]] = OpTypeInt 32 0
+  ; CHECK-DAG: %[[#MEM_SCOPE:]] = OpConstant %[[#TY]] 2
----------------
bob80905 wrote:

Also if possible, can you leave the CHECK-DAG for mem scope (with op constant 2) right below the check line that checks 264? The DAG check shouldn't require you to move the location of the check line in the file.

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


More information about the cfe-commits mailing list