This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Expose optional attribute parsing functions
ClosedPublic

Authored by youngar on Oct 15 2021, 6:37 PM.

Details

Summary

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.

Diff Detail

Event Timeline

youngar created this revision.Oct 15 2021, 6:37 PM
youngar requested review of this revision.Oct 15 2021, 6:37 PM
rriddle accepted this revision.Oct 18 2021, 7:24 AM
This revision is now accepted and ready to land.Oct 18 2021, 7:24 AM
This revision was automatically updated to reflect the committed changes.