Decouple affine->standard lowering from the pass
authorAlex Zinenko <zinenko@google.com>
Tue, 28 May 2019 07:49:23 +0000 (00:49 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:05:01 +0000 (20:05 -0700)
commitd4c071cc695b25de84a63e93ee80c2ade3ccf6e3
tree0f7384701aa52d8bc7f5c2ccd35a51853fa4a584
parentffc4cf70919db5883c56edaec7889f8e3ae4a83f
Decouple affine->standard lowering from the pass

    The lowering from the Affine dialect to the Standard dialect was originally
    implemented as a standalone pass.  However, it may be used by other passes
    willing to lower away some of the affine constructs as a part of their
    operation.  Decouple the transformation functions from the pass infrastructure
    and expose the entry point for the lowering.

    Also update the lowering functions to use `LogicalResult` instead of bool for
    return values.

--

PiperOrigin-RevId: 250229198
mlir/include/mlir/Transforms/LowerAffine.h [new file with mode: 0644]
mlir/lib/Transforms/LowerAffine.cpp