[mlir][gpu] Reduction ops canonicalizatios
authorIvan Butygin <ivan.butygin@gmail.com>
Tue, 25 Apr 2023 20:11:23 +0000 (22:11 +0200)
committerIvan Butygin <ivan.butygin@gmail.com>
Tue, 9 May 2023 22:33:42 +0000 (00:33 +0200)
commit41429523521cff12124ec7ec88c92dfe8547a13e
tree93999517062a7beb33f9cd20be387f9c15a7b632
parent2b7c45330725bfe54e916020faa049681bc60a54
[mlir][gpu] Reduction ops canonicalizatios

Make group ops uniform if `gpu.launch` is their direct parent.

Differential Revision: https://reviews.llvm.org/D149183
mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/test/Dialect/GPU/canonicalize.mlir