Precursor: https://reviews.llvm.org/D110200
Removed redundant ops from the standard dialect that were moved to the
arith or math dialects.
Renamed all instances of operations in the codebase and in tests.
Paths
| Differential D110797
[MLIR] Replace std ops with arith dialect ops ClosedPublic Authored by Mogball on Sep 29 2021, 6:46 PM.
Details Summary Precursor: https://reviews.llvm.org/D110200 Removed redundant ops from the standard dialect that were moved to the Renamed all instances of operations in the codebase and in tests.
Diff Detail
Event Timeline
Comment Actions Seems mostly mechanical, thanks!
This revision now requires changes to proceed.Sep 30 2021, 5:58 PM Mogball added inline comments.
Comment Actions Did a pass through of the resolved comments, and looks good.
This revision is now accepted and ready to land.Oct 6 2021, 10:45 AM This revision was landed with ongoing or failed builds.Oct 12 2021, 8:07 PM Closed by commit rGa54f4eae0e1d: [MLIR] Replace std ops with arith dialect ops (authored by Mogball). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions I recently noticed that arith::ConstantOp support was added to the Cpp emitter with this commit. @jpienaar and @mehdi_amini, do we really want to add support for such ops to the printer? The alternative would be to add conversions, like the arith.constant to emitc.constant one which I have implemented in our mlir-emitc repo: https://github.com/iml130/mlir-emitc/blob/c3b7bf093417ecd50e4b246ffd85079dbd75e359/lib/Dialect/EmitC/Conversion/ArithToEmitC.cpp#L27-L38. Comment Actions
I wasn't sure in what ways arith.constant superseded std.constant in EmitC. I had assumed that the C printer was wholly handling std.constant and not a subset of its functionality.
Revision Contents
Diff 379223 mlir/include/mlir/IR/DialectImplementation.h
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/IR/OpImplementation.h
mlir/include/mlir/TableGen/AttrOrTypeDef.h
mlir/include/mlir/TableGen/Dialect.h
mlir/lib/TableGen/AttrOrTypeDef.cpp
mlir/test/lib/Dialect/Test/TestAttrDefs.td
mlir/test/lib/Dialect/Test/TestAttributes.cpp
mlir/test/lib/Dialect/Test/TestTypeDefs.td
mlir/test/lib/Dialect/Test/TestTypes.h
mlir/test/mlir-tblgen/attr-or-type-format-invalid.td
mlir/test/mlir-tblgen/attr-or-type-format-roundtrip.mlir
mlir/test/mlir-tblgen/attr-or-type-format.mlir
mlir/test/mlir-tblgen/attr-or-type-format.td
mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h
mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
mlir/tools/mlir-tblgen/CMakeLists.txt
mlir/tools/mlir-tblgen/FormatGen.h
mlir/tools/mlir-tblgen/FormatGen.cpp
mlir/tools/mlir-tblgen/OpFormatGen.cpp
utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
|