With the removal of mlir-vulkan-runner (as part of #73457) ine7e3c45bc7, this pass no longer has to be public (previously it had to be so the runner could use it). This commit makes it instead only available for use by mlir-opt. This is a recommit of058d183980(#124301) which had been reverted in4573c857dadue to a missing linker dependency on MLIRSPIRVTransforms in mlir/test/lib/Pass/CMakeLists.txt (fixed in this commit).
16 lines
522 B
MLIR
16 lines
522 B
MLIR
// RUN: mlir-opt -test-convert-to-spirv="run-signature-conversion=false run-vector-unrolling=false" -split-input-file %s | FileCheck %s
|
|
|
|
// CHECK-LABEL: @return_scalar
|
|
// CHECK-SAME: %[[ARG0:.*]]: i32
|
|
// CHECK: spirv.ReturnValue %[[ARG0]]
|
|
func.func @return_scalar(%arg0 : i32) -> i32 {
|
|
return %arg0 : i32
|
|
}
|
|
|
|
// CHECK-LABEL: @return_vector
|
|
// CHECK-SAME: %[[ARG0:.*]]: vector<4xi32>
|
|
// CHECK: spirv.ReturnValue %[[ARG0]]
|
|
func.func @return_vector(%arg0 : vector<4xi32>) -> vector<4xi32> {
|
|
return %arg0 : vector<4xi32>
|
|
}
|