This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ods] Support using custom directives as first optional group element
ClosedPublic

Authored by Mogball on Aug 30 2023, 5:09 PM.

Details

Summary

This adds support for using a custom directive as the first optional
group element. The first optional group element guards the parsing of
the rest of the optional group. This can be done for custom directives
by expecting the parse function to return an OptionalParseResult
instead of a ParseResult.

Depends on D159243

Diff Detail

Event Timeline

Mogball created this revision.Aug 30 2023, 5:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2023, 5:09 PM
Mogball requested review of this revision.Aug 30 2023, 5:09 PM
rriddle accepted this revision.Aug 30 2023, 5:16 PM
This revision is now accepted and ready to land.Aug 30 2023, 5:16 PM
This revision was landed with ongoing or failed builds.Aug 30 2023, 8:21 PM
This revision was automatically updated to reflect the committed changes.