[all-commits] [llvm/llvm-project] 44b22f: [MLIR] Expose optional attribute parsing functions
Andrew Young via All-commits
all-commits at lists.llvm.org
Mon Oct 18 11:46:01 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 44b22f6f40f15ff24545c5fb0d612b3d86591955
https://github.com/llvm/llvm-project/commit/44b22f6f40f15ff24545c5fb0d612b3d86591955
Author: Andrew Young <youngar17 at gmail.com>
Date: 2021-10-18 (Mon, 18 Oct 2021)
Changed paths:
M mlir/include/mlir/IR/OpImplementation.h
M mlir/lib/Parser/AsmParserImpl.h
Log Message:
-----------
[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
More information about the All-commits
mailing list