Files
clang-p2996/mlir/test/Conversion/SPIRVToLLVM/module-ops-to-llvm.mlir
ergawy 2f3adc54b5 [MLIR][SPIRV] Rename spv._module_end to spv.mlir.endmodule
This commit does the renaming mentioned in the title in order to bring
'spv' dialect closer to the MLIR naming conventions.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D91792
2020-11-19 13:25:13 -05:00

30 lines
694 B
MLIR

// RUN: mlir-opt -convert-spirv-to-llvm %s | FileCheck %s
//===----------------------------------------------------------------------===//
// spv.module
//===----------------------------------------------------------------------===//
// CHECK: module
spv.module Logical GLSL450 {}
// CHECK: module @foo
spv.module @foo Logical GLSL450 {}
// CHECK: module
spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], [SPV_KHR_16bit_storage]> {}
// CHECK: module
spv.module Logical GLSL450 {
// CHECK: }
spv.mlir.endmodule
}
// CHECK: module
spv.module Logical GLSL450 {
// CHECK-LABEL: llvm.func @empty()
spv.func @empty() -> () "None" {
// CHECK: llvm.return
spv.Return
}
}