Update the SPIRV `mlir-translate` translations to translate to/from `spirv.module` instead of `builtin.module`. This simplifies the translation since the code no longer needs to walk the module looking for a SPIRV module, however it requires passing `-no-implicit-module` to all the tests. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D135819
11 lines
363 B
MLIR
11 lines
363 B
MLIR
// RUN: mlir-translate -no-implicit-module -test-spirv-roundtrip %s | FileCheck %s
|
|
|
|
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], []> {
|
|
spirv.func @foo() -> () "None" {
|
|
spirv.Return
|
|
}
|
|
spirv.EntryPoint "GLCompute" @foo
|
|
// CHECK: spirv.ExecutionMode @foo "LocalSizeHint", 3, 4, 5
|
|
spirv.ExecutionMode @foo "LocalSizeHint", 3, 4, 5
|
|
}
|