[mlir][GPUToSPIRV] Add a test pass to set workgroup size for kernel
authorMaheshRavishankar <ravishankarm@google.com>
Tue, 28 Jul 2020 18:47:30 +0000 (11:47 -0700)
committerMaheshRavishankar <ravishankarm@google.com>
Tue, 28 Jul 2020 19:10:30 +0000 (12:10 -0700)
commite5608cacfd60bb28685206ca96a8f3ceeee1e8a6
treeecd39c2ca2ed367ab46ba2cabe432076663a39a7
parentf75cf240d6ed528e1ce7770bbe09b417338b40ef
[mlir][GPUToSPIRV] Add a test pass to set workgroup size for kernel
functions.

This allows using command line flags to lowere from GPU to SPIR-V. The
pass added is only for testing/example purposes. Most uses cases will
need more fine-grained control on setting workgroup sizes for kernel
functions.

Differential Revision: https://reviews.llvm.org/D84619
mlir/test/Conversion/GPUToSPIRV/test_spirv_entry_point.mlir [new file with mode: 0644]
mlir/test/lib/Dialect/SPIRV/CMakeLists.txt
mlir/test/lib/Dialect/SPIRV/TestEntryPointAbi.cpp [new file with mode: 0644]
mlir/tools/mlir-opt/mlir-opt.cpp