You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
981 B
25 lines
981 B
4 months ago
|
// RUN: mlir-translate -test-spirv-roundtrip %s | FileCheck %s
|
||
|
|
||
|
spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> {
|
||
|
spv.func @memory_barrier_0() -> () "None" {
|
||
|
// CHECK: spv.MemoryBarrier "Device", "Release|UniformMemory"
|
||
|
spv.MemoryBarrier "Device", "Release|UniformMemory"
|
||
|
spv.Return
|
||
|
}
|
||
|
spv.func @memory_barrier_1() -> () "None" {
|
||
|
// CHECK: spv.MemoryBarrier "Subgroup", "AcquireRelease|SubgroupMemory"
|
||
|
spv.MemoryBarrier "Subgroup", "AcquireRelease|SubgroupMemory"
|
||
|
spv.Return
|
||
|
}
|
||
|
spv.func @control_barrier_0() -> () "None" {
|
||
|
// CHECK: spv.ControlBarrier "Device", "Workgroup", "Release|UniformMemory"
|
||
|
spv.ControlBarrier "Device", "Workgroup", "Release|UniformMemory"
|
||
|
spv.Return
|
||
|
}
|
||
|
spv.func @control_barrier_1() -> () "None" {
|
||
|
// CHECK: spv.ControlBarrier "Workgroup", "Invocation", "AcquireRelease|UniformMemory"
|
||
|
spv.ControlBarrier "Workgroup", "Invocation", "AcquireRelease|UniformMemory"
|
||
|
spv.Return
|
||
|
}
|
||
|
}
|