[mlir][AffineToStandard] Make LowerAffine pass Op-agnostic.
authorMaheshRavishankar <ravishankarm@google.com>
Mon, 27 Jul 2020 19:13:08 +0000 (12:13 -0700)
committerMaheshRavishankar <ravishankarm@google.com>
Mon, 27 Jul 2020 19:14:17 +0000 (12:14 -0700)
commitfbe911ee750fe62061eb15c5c8f71270fdc2fe98
tree6f6e8b2cf08635fb4f994834c21141846de31e41
parent05ad8e942996f36cc694478542ccd84aa5bbb80f
[mlir][AffineToStandard] Make LowerAffine pass Op-agnostic.

The LowerAffine psas was a FunctionPass only for legacy
reasons. Making this Op-agnostic allows it to be used from command
line when affine expressions are within operations other than
`std.func`.

Differential Revision: https://reviews.llvm.org/D84590
mlir/include/mlir/Conversion/Passes.td
mlir/include/mlir/Transforms/Passes.h
mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
mlir/test/Conversion/AffineToStandard/lower-affine-gpu.mlir [new file with mode: 0644]