[MLIR] Split arith dialect from the std dialect
authorMogball <jeffniu22@gmail.com>
Tue, 21 Sep 2021 20:54:07 +0000 (20:54 +0000)
committerJeff Niu <jeffniu@google.com>
Wed, 6 Oct 2021 19:25:51 +0000 (19:25 +0000)
commit8c08f21b6041d683b9466e463a5358c4d4fcac19
treea4bd2727439c20aa03f17ab031c6e2bbbbd0a0c8
parenta7ae227baf42c325015e89ccd5ec281ba97a0d8a
[MLIR] Split arith dialect from the std dialect

Create the Arithmetic dialect that contains basic integer and floating
point arithmetic operations. Ops that did not meet this criterion were
moved to the Math dialect.

First of two atomic patches to remove integer and floating point
operations from the standard dialect. Ops will be removed from the
standard dialect in a subsequent patch.

Reviewed By: ftynse, silvas

Differential Revision: https://reviews.llvm.org/D110200
14 files changed:
mlir/include/mlir/Dialect/Arithmetic/CMakeLists.txt [new file with mode: 0644]
mlir/include/mlir/Dialect/Arithmetic/IR/Arithmetic.h [new file with mode: 0644]
mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticBase.td [new file with mode: 0644]
mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td [new file with mode: 0644]
mlir/include/mlir/Dialect/Arithmetic/IR/CMakeLists.txt [new file with mode: 0644]
mlir/include/mlir/Dialect/CMakeLists.txt
mlir/include/mlir/Dialect/Math/IR/MathOps.td
mlir/lib/Dialect/Arithmetic/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Dialect/Arithmetic/IR/ArithmeticCanonicalization.td [new file with mode: 0644]
mlir/lib/Dialect/Arithmetic/IR/ArithmeticDialect.cpp [new file with mode: 0644]
mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp [new file with mode: 0644]
mlir/lib/Dialect/Arithmetic/IR/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Dialect/CMakeLists.txt
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel