This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Replace StructAttrs with AttrDefs
ClosedPublic

Authored by Mogball on Jun 8 2022, 6:50 PM.

Diff Detail

Event Timeline

Mogball created this revision.Jun 8 2022, 6:50 PM
Herald added a project: Restricted Project. · View Herald Transcript
Mogball requested review of this revision.Jun 8 2022, 6:50 PM
Mogball retitled this revision from [mlir][tosa] Replace StructAttrs with AttrDefs Depends on D127352 to [mlir][tosa] Replace StructAttrs with AttrDefs.Jun 8 2022, 8:00 PM
Mogball edited the summary of this revision. (Show Details)
rriddle accepted this revision.Jun 8 2022, 8:10 PM
rriddle added inline comments.
mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td
76–77

Please add a base class for Tosa attributes that passes in the dialect (and has a template param for the mnemonic). This section mentions this as well (+ gives an example): https://mlir.llvm.org/docs/AttributesAndTypes/#adding-a-new-attribute-or-type-definition

Same applies to some other commits in this chain as well.

96–98

Summary should be at the top of the def, same throughout.

This revision is now accepted and ready to land.Jun 8 2022, 8:10 PM
Mogball marked 2 inline comments as done.Jun 9 2022, 4:01 PM

I fixed this in all the commits

Mogball updated this revision to Diff 435724.Jun 9 2022, 4:01 PM

add dialect attr

This revision was landed with ongoing or failed builds.Jun 9 2022, 4:02 PM
This revision was automatically updated to reflect the committed changes.