This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] [LangRef] Clarify `dialect-item` parsing
Needs ReviewPublic

Authored by bollu on May 27 2022, 6:54 AM.

Details

Summary

Draw attention to the fact that the grammar is written in such a way
that it ensures balanced parentheses. Also add a note on how external
consumers of MLIR could easily parse such a grammar.

We take the time to restructure the examples, and add clarification
about illegal attribute declarations.

Diff Detail

Event Timeline

bollu created this revision.May 27 2022, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2022, 6:54 AM
bollu requested review of this revision.May 27 2022, 6:54 AM
bollu updated this revision to Diff 432610.May 27 2022, 11:47 AM

Rebase patch to latest MLIR

Groverkss added inline comments.
mlir/docs/LangRef.md
677

Is this supposed to be pretty-dialect-item-contents?

681
704
718–727

I think you can remove this.

Hi @bollu ,

Unfortunately, I don't have experience with MLIR, so I can't comment about what these changes are related to. As for the markdown file, it looks good to me after the fixes pointed by @Groverkss.