[mlir][linalg] Extend opdsl to support operations on complex types.
authorbixia1 <bixia@google.com>
Thu, 16 Jun 2022 21:27:26 +0000 (14:27 -0700)
committerbixia1 <bixia@google.com>
Fri, 17 Jun 2022 16:34:26 +0000 (09:34 -0700)
commit48f4407c1aafbf953b501381d725320fa867eaf5
tree4f44982ba47a9adc7c23bbdd6295ce6a1d0698a8
parentf000de8760c112ead0487a020c3849c6280f2a57
[mlir][linalg] Extend opdsl to support operations on complex types.

Linalg opdsl now supports negf/add/sub/mul on complex types.

Add a test.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D128010
mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
mlir/test/python/dialects/linalg/opdsl/emit_misc.py