[mlir][gpu] NFC: Make room for more than one GPU rewrite pattern.
authorChristian Sigg <csigg@google.com>
Wed, 14 Oct 2020 08:31:08 +0000 (10:31 +0200)
committerChristian Sigg <csigg@google.com>
Mon, 19 Oct 2020 05:52:47 +0000 (07:52 +0200)
commitad3ecc24b1db56f87f89b9fd52eb1ad531056894
tree5f15f2d51bda471bc99e3d0b3df365604d6d87ae
parent4c750004651935d8f19a9a277c2a2f4f59dff1d7
[mlir][gpu] NFC: Make room for more than one GPU rewrite pattern.

AllReduceLowering is currently the only GPU rewrite pattern, but more are coming. This is a preparation change.

Reviewed By: herhut

Differential Revision: https://reviews.llvm.org/D89370
mlir/include/mlir/Dialect/GPU/Passes.h
mlir/lib/Dialect/GPU/Transforms/AllReduceLowering.cpp
mlir/test/Dialect/GPU/all-reduce-max.mlir
mlir/test/Dialect/GPU/all-reduce.mlir
mlir/test/lib/Transforms/CMakeLists.txt
mlir/test/lib/Transforms/TestGpuRewrite.cpp [moved from mlir/test/lib/Transforms/TestAllReduceLowering.cpp with 81% similarity]