[mlir][gpu][spirv] Lower gpu reduction ops to spirv
authorIvan Butygin <ivan.butygin@gmail.com>
Thu, 22 Dec 2022 19:50:52 +0000 (20:50 +0100)
committerIvan Butygin <ivan.butygin@gmail.com>
Fri, 30 Dec 2022 16:44:08 +0000 (17:44 +0100)
commit2e4aa3bd83faef5e89275cba97d99b1a77c4d25c
tree2018501c173ae5689ec31629714f821eb7356b19
parent66efb986322b206834e7c9e1eb777fa053912c39
[mlir][gpu][spirv] Lower gpu reduction ops to spirv

Supports only "add" and "mul" ops for now. More ops will be added later.

Differential Revision: https://reviews.llvm.org/D140576
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
mlir/test/Conversion/GPUToSPIRV/reductions.mlir [new file with mode: 0644]