[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 12:57:14 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
----------------
KungFuDonkey wrote:
> Based on the previous file, it looks like the exec scope was defined. Can you Run a CHECK on the Exec Scope on this test?
No, there is no exec scope here. There is a OpMemory barrier that does not need an exec scope, the previous check was therefore named wrong, and I updated the check to reflect that
https://github.com/llvm/llvm-project/pull/190633
More information about the cfe-commits
mailing list