This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Remove the element type enum from DenseArrayAttr
ClosedPublic

Authored by Mogball on Aug 23 2022, 11:24 PM.

Details

Summary

The element type enum is not needed to differentiate dense array kinds
because the element type of the shaped type can be used instead.

Diff Detail

Event Timeline

Mogball created this revision.Aug 23 2022, 11:24 PM
Mogball requested review of this revision.Aug 23 2022, 11:24 PM
mehdi_amini accepted this revision.Aug 24 2022, 1:58 AM
This revision is now accepted and ready to land.Aug 24 2022, 1:58 AM
mehdi_amini added inline comments.Aug 24 2022, 1:59 AM
mlir/include/mlir/IR/BuiltinAttributes.td
189–190

Why didn't we declare the type as "RankedTensor" here?

rriddle accepted this revision.Aug 24 2022, 2:47 AM
rriddle added inline comments.
mlir/lib/IR/BuiltinAttributes.cpp
738

Is the signedness param ever non-signless?

mehdi_amini added inline comments.Aug 24 2022, 9:40 AM
mlir/lib/IR/BuiltinAttributes.cpp
738

Not yet: but we know where this is going :)

Mogball marked an inline comment as done.Aug 24 2022, 4:59 PM
Mogball updated this revision to Diff 455429.Aug 24 2022, 5:01 PM

use RankedTensorType in the AttrDef

This revision was landed with ongoing or failed builds.Aug 24 2022, 5:02 PM
This revision was automatically updated to reflect the committed changes.