This is an archive of the discontinued LLVM Phabricator instance.

Add missing storageType to AttrDef to ODS
ClosedPublic

Authored by mehdi_amini on Sep 23 2021, 2:28 PM.

Details

Summary

This is only noticeable when using an attribute across dialects I think.
Previously the namespace would be ommited, but it wouldn't matter as
long as the generated code stays within a single namespace.

Diff Detail

Event Timeline

mehdi_amini created this revision.Sep 23 2021, 2:28 PM
mehdi_amini requested review of this revision.Sep 23 2021, 2:28 PM
rriddle accepted this revision.Sep 23 2021, 2:30 PM
rriddle added inline comments.
mlir/include/mlir/IR/OpBase.td
2864

Can you add a comment?

Also, this should be let storageType =. storageType is defined in the base Attr<> class.

This revision is now accepted and ready to land.Sep 23 2021, 2:30 PM

Nice, could we add a test for it?

This revision was automatically updated to reflect the committed changes.