[all-commits] [llvm/llvm-project] 23c3eb: [mlir][Complex] Change complex.number attribute ty...

Adrian Kuegel via All-commits all-commits at lists.llvm.org
Thu Jul 28 12:25:41 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23c3eb7cdf3478c9db86f6cb5115821a8f0f5f40
  Author: Adrian Kuegel <akuegel at google.com>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M mlir/lib/Dialect/Complex/IR/ComplexDialect.cpp
    M mlir/test/Dialect/Complex/attribute.mlir

  Log Message:
  [mlir][Complex] Change complex.number attribute type to ComplexType.

It is more useful to use ComplexType as type of the attribute than to
use the element type as attribute type. This means when using this
attribute in complex::ConstantOp, we just need to check whether
the types match.

Reviewed By: pifon2a

Differential Revision: https://reviews.llvm.org/D130703

More information about the All-commits mailing list