llvm-project/mlir/lib/Parser
River Riddle 6b476e2426 [mlir] Add support for parsing optional Attribute values.
This adds a `parseOptionalAttribute` method to the OpAsmParser that allows for parsing optional attributes, in a similar fashion to how optional types are parsed. This also enables the use of attribute values as the first element of an assembly format optional group.

Differential Revision: https://reviews.llvm.org/D83712
2020-07-14 13:14:59 -07:00
..
AffineParser.cpp [mlir][NFC] Split Parser into several different files. 2020-06-10 17:17:13 -07:00
AttributeParser.cpp [mlir] Add support for parsing optional Attribute values. 2020-07-14 13:14:59 -07:00
CMakeLists.txt [mlir][NFC] Split Parser into several different files. 2020-06-10 17:17:13 -07:00
DialectSymbolParser.cpp [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
Lexer.cpp Fix a bug in the .mlir lexer, where a \0 character in a file is treated as a colon (due to an accidental fall through) instead of whitespace. 2020-03-23 17:35:17 -07:00
Lexer.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
LocationParser.cpp [mlir][NFC] Split Parser into several different files. 2020-06-10 17:17:13 -07:00
Parser.cpp [mlir] Add support for parsing optional Attribute values. 2020-07-14 13:14:59 -07:00
Parser.h [mlir] Add support for parsing optional Attribute values. 2020-07-14 13:14:59 -07:00
ParserState.h [mlir][NFC] Split Parser into several different files. 2020-06-10 17:17:13 -07:00
Token.cpp [mlir][NFC] Split Parser into several different files. 2020-06-10 17:17:13 -07:00
Token.h [mlir][NFC] Split Parser into several different files. 2020-06-10 17:17:13 -07:00
TokenKinds.def Fix a bug in the .mlir lexer, where a \0 character in a file is treated as a colon (due to an accidental fall through) instead of whitespace. 2020-03-23 17:35:17 -07:00
TypeParser.cpp [MLIR] Add variadic isa<> for Type, Value, and Attribute 2020-06-29 15:04:48 -07:00