This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Complex] Change complex.number attribute type to ComplexType.
ClosedPublic

Authored by akuegel on Jul 28 2022, 5:18 AM.

Details

Summary

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.

Diff Detail

Event Timeline

akuegel created this revision.Jul 28 2022, 5:18 AM
akuegel requested review of this revision.Jul 28 2022, 5:18 AM
akuegel edited the summary of this revision. (Show Details)Jul 28 2022, 5:25 AM
pifon2a accepted this revision.Jul 28 2022, 12:14 PM

Thank you, Adrian!

This revision is now accepted and ready to land.Jul 28 2022, 12:14 PM