[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
parent
1ff367db
Please register or sign in to comment