MLIR
20.0.0git
|
This class refers to all of the state maintained globally by the parser, such as the current lexer position etc. More...
#include "AsmParser/ParserState.h"
Public Member Functions | |
ParserState (const llvm::SourceMgr &sourceMgr, const ParserConfig &config, SymbolState &symbols, AsmParserState *asmState, AsmParserCodeCompleteContext *codeCompleteContext) | |
ParserState (const ParserState &)=delete | |
void | operator= (const ParserState &)=delete |
Public Attributes | |
const ParserConfig & | config |
The configuration used to setup the parser. More... | |
Lexer | lex |
The lexer for the source file we're parsing. More... | |
Token | curToken |
This is the next token that hasn't been consumed yet. More... | |
Token | lastToken |
This is the last token that has been consumed. More... | |
SymbolState & | symbols |
The current state for symbol parsing. More... | |
SetVector< const void * > | cyclicParsingStack |
Stack of potentially cyclic mutable attributes or type currently being parsed. More... | |
AsmParserState * | asmState |
An optional pointer to a struct containing high level parser state to be populated during parsing. More... | |
AsmParserCodeCompleteContext * | codeCompleteContext |
An optional code completion context. More... | |
SmallVector< StringRef > | defaultDialectStack {"builtin"} |
This class refers to all of the state maintained globally by the parser, such as the current lexer position etc.
Definition at line 51 of file ParserState.h.
|
inline |
Definition at line 52 of file ParserState.h.
|
delete |
|
delete |
AsmParserState* mlir::detail::ParserState::asmState |
An optional pointer to a struct containing high level parser state to be populated during parsing.
Definition at line 83 of file ParserState.h.
Referenced by mlir::detail::Parser::parseAttribute(), mlir::detail::Parser::parseExtendedAttr(), and mlir::detail::AsmParserImpl< BaseT >::parseOptionalSymbolName().
AsmParserCodeCompleteContext* mlir::detail::ParserState::codeCompleteContext |
An optional code completion context.
Definition at line 86 of file ParserState.h.
Referenced by mlir::detail::Parser::codeCompleteAttribute(), mlir::detail::Parser::codeCompleteDialectName(), mlir::detail::Parser::codeCompleteDialectSymbol(), mlir::detail::Parser::codeCompleteExpectedTokens(), mlir::detail::Parser::codeCompleteOperationName(), mlir::detail::Parser::codeCompleteOptionalTokens(), and mlir::detail::Parser::codeCompleteType().
const ParserConfig& mlir::detail::ParserState::config |
The configuration used to setup the parser.
Definition at line 63 of file ParserState.h.
Referenced by mlir::detail::Parser::getContext().
Token mlir::detail::ParserState::curToken |
This is the next token that hasn't been consumed yet.
Definition at line 69 of file ParserState.h.
Referenced by mlir::detail::Parser::consumeIf(), mlir::detail::Parser::consumeToken(), mlir::detail::Parser::emitError(), mlir::detail::Parser::emitWrongTokenError(), mlir::detail::Parser::getToken(), mlir::detail::Parser::getTokenSpelling(), mlir::detail::Parser::parseDialectSymbolBody(), and mlir::detail::Parser::resetToken().
SetVector<const void *> mlir::detail::ParserState::cyclicParsingStack |
Stack of potentially cyclic mutable attributes or type currently being parsed.
Definition at line 79 of file ParserState.h.
Referenced by mlir::detail::AsmParserImpl< BaseT >::popCyclicParsing(), and mlir::detail::AsmParserImpl< BaseT >::pushCyclicParsing().
SmallVector<StringRef> mlir::detail::ParserState::defaultDialectStack {"builtin"} |
Definition at line 93 of file ParserState.h.
Referenced by mlir::detail::Parser::codeCompleteDialectOrElidedOpName().
Token mlir::detail::ParserState::lastToken |
This is the last token that has been consumed.
Definition at line 72 of file ParserState.h.
Referenced by mlir::detail::Parser::consumeToken(), and mlir::detail::Parser::getLastToken().
Lexer mlir::detail::ParserState::lex |
The lexer for the source file we're parsing.
Definition at line 66 of file ParserState.h.
Referenced by mlir::detail::Parser::codeCompleteDialectOrElidedOpName(), mlir::detail::Parser::consumeToken(), mlir::detail::Parser::emitWrongTokenError(), mlir::detail::Parser::getEncodedSourceLocation(), mlir::detail::Parser::getSourceMgr(), mlir::detail::Parser::parseAttribute(), mlir::detail::Parser::parseDialectSymbolBody(), mlir::detail::Parser::parseIntegerInDimensionList(), mlir::detail::Parser::parseOptionalDecimalInteger(), mlir::detail::Parser::parseXInDimensionList(), and mlir::detail::Parser::resetToken().
SymbolState& mlir::detail::ParserState::symbols |
The current state for symbol parsing.
Definition at line 75 of file ParserState.h.
Referenced by mlir::detail::Parser::codeCompleteAttribute(), mlir::detail::Parser::codeCompleteType(), mlir::detail::Parser::parseDistinctAttr(), mlir::detail::Parser::parseExtendedAttr(), and mlir::detail::Parser::parseResourceHandle().