[mlir][complex] Custom attribute comlex.number.
authorlewuathe <lewuathe@me.com>
Wed, 27 Jul 2022 09:48:44 +0000 (11:48 +0200)
committerAlexander Belyaev <pifon@google.com>
Wed, 27 Jul 2022 13:15:55 +0000 (15:15 +0200)
commit5caa941f683270c3e5078ec46f208212b565c505
tree5a288b0301af25850ce674653433e8f5f2a379ee
parentc0b3f7a50fdf22c4a6e0c5e6e3ef2147f44bf566
[mlir][complex] Custom attribute comlex.number.

Add custom attribute for complex dialect. Although this commit does not have significant impact on the conversion framework, it will lead us to construct complex numbers in a readable and tidy manner.

Related discussion: https://reviews.llvm.org/D127476

Reviewed By: pifon2a, akuegel

Differential Revision: https://reviews.llvm.org/D130149
mlir/include/mlir/Dialect/Complex/IR/CMakeLists.txt
mlir/include/mlir/Dialect/Complex/IR/Complex.h
mlir/include/mlir/Dialect/Complex/IR/ComplexAttributes.td [new file with mode: 0644]
mlir/include/mlir/Dialect/Complex/IR/ComplexBase.td
mlir/lib/Dialect/Complex/IR/CMakeLists.txt
mlir/lib/Dialect/Complex/IR/ComplexDialect.cpp
mlir/test/Dialect/Complex/attribute.mlir [new file with mode: 0644]