Page MenuHomePhabricator

[mlir] Refactor InterfaceGen to support generating interfaces for Attributes and Types.

Authored by rriddle on Mon, Jun 15, 2:17 PM.



This revision adds support to ODS for generating interfaces for attributes and types, in addition to operations. These interfaces can be specified using AttrInterface and TypeInterface in place of OpInterface. All of the features of OpInterface are supported except for the verify method, which does not have a matching representation in the Attribute/Type world. Generating these interface can be done using gen-(attr|type)-interface-(defs|decls|docs).

Depends On D81883

Diff Detail

Event Timeline

rriddle created this revision.Mon, Jun 15, 2:17 PM
rriddle updated this revision to Diff 270872.Mon, Jun 15, 2:34 PM

Add missing test

stellaraccident accepted this revision.Sat, Jun 27, 11:41 PM

Nice, thank you!

This revision is now accepted and ready to land.Sat, Jun 27, 11:41 PM
This revision was automatically updated to reflect the committed changes.