llvm-project/mlir/lib/Parser
Stella Laurenzo a201829a20 Fix parsing of hex-format index dense tensor attributes.
TensorLiteralParser::getHexAttr does a isIntOrIndexOrFloat check and properly handles index elements, but TensorLiteralParser::getAttr that calls into it has a mismatched check. This just makes the checks match so that index element attrs can parse when of type tensor.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D111374
2021-10-08 15:44:02 +00:00
..
AffineParser.cpp [OpAsmParser] Add a parseCommaSeparatedList helper and beef up Delimeter. 2021-09-20 20:59:11 -07:00
AsmParserImpl.h [mlir:OpAsm] Factor out the common bits of (Op/Dialect)Asm(Parser/Printer) 2021-09-24 20:12:19 +00:00
AsmParserState.cpp [mlir-lsp-server] Add support for textDocument/documentSymbols 2021-06-10 10:58:39 -07:00
AttributeParser.cpp Fix parsing of hex-format index dense tensor attributes. 2021-10-08 15:44:02 +00:00
CMakeLists.txt Add a new AsmParserState class to capture detailed source information for .mlir files 2021-04-21 14:44:37 -07:00
DialectSymbolParser.cpp [mlir:OpAsm] Factor out the common bits of (Op/Dialect)Asm(Parser/Printer) 2021-09-24 20:12:19 +00:00
Lexer.cpp [Reland] [mlir] Speed up Lexer::getEncodedSourceLocation 2021-05-19 12:57:18 -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 [OpAsmParser] Add a parseCommaSeparatedList helper and beef up Delimeter. 2021-09-20 20:59:11 -07:00
Parser.cpp AsmParser::getContext() - there can be only one. This should unbreak the build. 2021-09-29 22:23:03 -07:00
Parser.h [OpAsmParser] Add a parseCommaSeparatedList helper and beef up Delimeter. 2021-09-20 20:59:11 -07:00
ParserState.h Add a new interface allowing to set a default dialect to be used for printing/parsing regions 2021-08-31 17:52:40 +00:00
Token.cpp [AsmParser] Fix support for zero bit integer types. 2020-12-12 21:24:18 -08:00
Token.h [mlir] Optimize the parsing of ElementsAttr hex strings 2020-10-28 16:58:06 -07:00
TokenKinds.def [mlir] Add better support for f80 and f128 2021-01-15 10:29:48 -05:00
TypeParser.cpp [OpAsmParser] Add a parseCommaSeparatedList helper and beef up Delimeter. 2021-09-20 20:59:11 -07:00