xref: /llvm-project/mlir/test/Conversion/SPIRVToLLVM/module-ops-to-llvm.mlir (revision 41f3b83fb066b4c3273e9abe02a8630864f22f30)
1// RUN: mlir-opt -convert-spirv-to-llvm %s | FileCheck %s
2
3//===----------------------------------------------------------------------===//
4// spirv.module
5//===----------------------------------------------------------------------===//
6
7// CHECK: module
8spirv.module Logical GLSL450 {}
9
10// CHECK: module @foo
11spirv.module @foo Logical GLSL450 {}
12
13// CHECK: module
14spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], [SPV_KHR_16bit_storage]> {}
15
16// CHECK: module
17spirv.module Logical GLSL450 {
18	// CHECK-LABEL: llvm.func @empty()
19  spirv.func @empty() -> () "None" {
20		// CHECK: llvm.return
21    spirv.Return
22  }
23}
24