Home
last modified time | relevance | path

Searched refs:curToken (Results 1 – 14 of 14) sorted by relevance

/external/deqp/framework/xexml/
DxeXMLParser.cpp403 Token curToken = m_tokenizer.getToken(); in advance() local
406 while (curToken == TOKEN_COMMENT) in advance()
409 curToken = m_tokenizer.getToken(); in advance()
412 if (curToken == TOKEN_INCOMPLETE) in advance()
425 switch (curToken) in advance()
459 if (curToken == TOKEN_PROCESSING_INSTRUCTION_END) in advance()
462 if (curToken != TOKEN_IDENTIFIER && curToken != TOKEN_EQUAL && curToken != TOKEN_STRING) in advance()
467 if (curToken != TOKEN_IDENTIFIER) in advance()
474 if (curToken != TOKEN_IDENTIFIER) in advance()
481 if (curToken != TOKEN_TAG_END) in advance()
[all …]
/external/llvm-project/mlir/lib/Parser/
DParser.h59 return emitError(state.curToken.getLoc(), message);
99 const Token &getToken() const { return state.curToken; } in getToken()
100 StringRef getTokenSpelling() const { return state.curToken.getSpelling(); } in getTokenSpelling()
105 if (state.curToken.isNot(kind)) in consumeIf()
113 assert(state.curToken.isNot(Token::eof, Token::error) && in consumeToken()
115 state.curToken = state.lex.lexToken(); in consumeToken()
122 assert(state.curToken.is(kind) && "consumed an unexpected token"); in consumeToken()
DParserState.h52 : context(ctx), lex(sourceMgr, ctx), curToken(lex.lexToken()), in ParserState()
73 Token curToken; member
DDialectSymbolParser.cpp85 Token curToken = parser.getToken(); in parseOptionalInteger() local
86 if (curToken.isNot(Token::integer, Token::minus)) in parseOptionalInteger()
DAttributeParser.cpp369 auto loc = state.curToken.getLoc(); in parseDecOrHexAttr()
/external/llvm-project/mlir/tools/mlir-linalg-ods-gen/
Dmlir-linalg-ods-gen.cpp342 : lexer(mgr), curToken(lexer.lexToken()), context(ctx) {} in Parser()
350 assert(curToken.getKind() != Token::Kind::eof && in consumeToken()
351 curToken.getKind() != Token::Kind::error && in consumeToken()
353 curToken = lexer.lexToken(); in consumeToken()
356 assert(curToken.getKind() == kind && "unexpected token"); in consumeToken()
357 curToken = lexer.lexToken(); in consumeToken()
360 if (curToken.getKind() != kind) in parseToken()
361 return emitError(curToken.getLoc(), msg); in parseToken()
370 return emitError(curToken.getLoc(), msg); in emitError()
373 if (curToken.isNot(kind)) in consumeIf()
[all …]
/external/llvm-project/mlir/tools/mlir-tblgen/
DOpFormatGen.cpp2036 : lexer(mgr, op), curToken(lexer.lexToken()), fmt(format), op(op), in FormatParser()
2144 assert(curToken.getKind() != Token::eof && in consumeToken()
2145 curToken.getKind() != Token::error && in consumeToken()
2147 curToken = lexer.lexToken(); in consumeToken()
2150 if (curToken.getKind() != kind) in parseToken()
2151 return emitError(curToken.getLoc(), msg); in parseToken()
2170 Token curToken; member in __anon81548fc81611::FormatParser
2188 llvm::SMLoc loc = curToken.getLoc(); in parse()
2191 while (curToken.getKind() != Token::eof) { in parse()
2488 if (curToken.isKeyword()) in parseElement()
[all …]
/external/llvm-project/mlir/examples/toy/Ch4/include/toy/
DParser.h476 auto curToken = lexer.getCurToken();
479 << "' " << context << " but has Token " << curToken;
480 if (isprint(curToken))
481 llvm::errs() << " '" << (char)curToken << "'";
/external/llvm-project/mlir/examples/toy/Ch2/include/toy/
DParser.h476 auto curToken = lexer.getCurToken();
479 << "' " << context << " but has Token " << curToken;
480 if (isprint(curToken))
481 llvm::errs() << " '" << (char)curToken << "'";
/external/llvm-project/mlir/examples/toy/Ch5/include/toy/
DParser.h476 auto curToken = lexer.getCurToken();
479 << "' " << context << " but has Token " << curToken;
480 if (isprint(curToken))
481 llvm::errs() << " '" << (char)curToken << "'";
/external/llvm-project/mlir/examples/toy/Ch6/include/toy/
DParser.h476 auto curToken = lexer.getCurToken();
479 << "' " << context << " but has Token " << curToken;
480 if (isprint(curToken))
481 llvm::errs() << " '" << (char)curToken << "'";
/external/llvm-project/mlir/examples/toy/Ch1/include/toy/
DParser.h476 auto curToken = lexer.getCurToken();
479 << "' " << context << " but has Token " << curToken;
480 if (isprint(curToken))
481 llvm::errs() << " '" << (char)curToken << "'";
/external/llvm-project/mlir/examples/toy/Ch3/include/toy/
DParser.h476 auto curToken = lexer.getCurToken();
479 << "' " << context << " but has Token " << curToken;
480 if (isprint(curToken))
481 llvm::errs() << " '" << (char)curToken << "'";
/external/llvm-project/mlir/examples/toy/Ch7/include/toy/
DParser.h670 auto curToken = lexer.getCurToken();
673 << "' " << context << " but has Token " << curToken;
674 if (isprint(curToken))
675 llvm::errs() << " '" << (char)curToken << "'";