Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MLIR] Expose optional attribute parsing functions
The functionality already exists in AsmParser to parse optional ArrayAttrs and StringAttrs, but only if they are added to a NamedAttrList. This moves the code to parse an optional attribute and add it to an list into a common template, and exposes the simpler functionality of just parsing the optional attributes. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D111918
- Loading branch information
Showing
2 changed files
with
45 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters