// RUN: mlir-translate -test-spirv-roundtrip -split-input-file %s | FileCheck %s spv.module Logical GLSL450 requires #spv.vce { spv.func @noop() -> () "None" { spv.Return } // CHECK: spv.EntryPoint "GLCompute" @noop // CHECK-NEXT: spv.ExecutionMode @noop "ContractionOff" spv.EntryPoint "GLCompute" @noop spv.ExecutionMode @noop "ContractionOff" } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: spv.globalVariable @var2 : !spv.ptr // CHECK-NEXT: spv.globalVariable @var3 : !spv.ptr // CHECK-NEXT: spv.func @noop({{%.*}}: !spv.ptr, {{%.*}}: !spv.ptr) "None" // CHECK: spv.EntryPoint "GLCompute" @noop, @var2, @var3 spv.globalVariable @var2 : !spv.ptr spv.globalVariable @var3 : !spv.ptr spv.func @noop(%arg0 : !spv.ptr, %arg1 : !spv.ptr) -> () "None" { spv.Return } spv.EntryPoint "GLCompute" @noop, @var2, @var3 spv.ExecutionMode @noop "ContractionOff" }