[mlir][std] Add ExpandOps pass.
authorAlexander Belyaev <pifon@google.com>
Mon, 9 Nov 2020 15:47:02 +0000 (16:47 +0100)
committerAlexander Belyaev <pifon@google.com>
Mon, 9 Nov 2020 20:58:28 +0000 (21:58 +0100)
commit9d02e0e38df50c1d15156580e5372876f7423179
treec56c6ebab0cd1894af2fe10f83169ea3a9d562a7
parentcdb51bfaa7366c901e0bf5c8ab4e0d2252b77d7c
[mlir][std] Add ExpandOps pass.

The pass combines patterns of ExpandAtomic, ExpandMemRefReshape,
StdExpandDivs passes. The pass is meant to legalize STD for conversion to LLVM.

Differential Revision: https://reviews.llvm.org/D91082
16 files changed:
mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h
mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.td
mlir/integration_test/Dialect/Standard/CPU/test-ceil-floor-pos-neg.mlir
mlir/lib/Conversion/StandardToLLVM/CMakeLists.txt
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt
mlir/lib/Dialect/StandardOps/Transforms/ExpandAtomic.cpp [deleted file]
mlir/lib/Dialect/StandardOps/Transforms/ExpandMemRefReshape.cpp [deleted file]
mlir/lib/Dialect/StandardOps/Transforms/ExpandOps.cpp [moved from mlir/lib/Dialect/StandardOps/Transforms/StdExpandDivs.cpp with 58% similarity]
mlir/test/Dialect/Standard/expand-atomic.mlir [deleted file]
mlir/test/Dialect/Standard/expand-memref-reshape.mlir [deleted file]
mlir/test/Dialect/Standard/expand-ops.mlir [moved from mlir/test/Dialect/Standard/std-expand-divs.mlir with 55% similarity]
mlir/test/lib/Transforms/CMakeLists.txt
mlir/test/lib/Transforms/TestExpandMemRefReshape.cpp [deleted file]
mlir/test/mlir-cpu-runner/memref_reshape.mlir
mlir/tools/mlir-opt/mlir-opt.cpp