Page MenuHomePhabricator

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

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

Details

Summary

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.Jun 15 2020, 2:17 PM
rriddle updated this revision to Diff 270872.Jun 15 2020, 2:34 PM

Add missing test

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

Nice, thank you!

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