| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/ |
| H A D | Parser.cpp | 544 Token curToken; member in __anonbc0fc15d0111::Parser 1012 if (curToken.isString()) in parseNamedAttributeDecl() 1014 else if (curToken.is(Token::identifier) || curToken.isKeyword()) in parseNamedAttributeDecl() 1058 if (curToken.isNot(Token::identifier) && !curToken.isDependentKeyword()) in parseArgumentDecl() 1079 if (curToken.is(Token::identifier) || curToken.isDependentKeyword()) { in parseResultDecl() 1283 name = &ast::Name::create(ctx, curToken.getSpelling(), curToken.getLoc()); in parseUserConstraintOrRewriteDecl() 1443 name = &ast::Name::create(ctx, curToken.getSpelling(), curToken.getLoc()); in parsePatternDecl() 1944 if (curToken.isNot(Token::identifier) && !curToken.isKeyword()) { in parseOperationName() 1960 if (curToken.isNot(Token::identifier) && !curToken.isKeyword()) in parseOperationName() 2129 if (curToken.is(Token::identifier) || curToken.isDependentKeyword()) { in parseTupleExpr() [all …]
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | FormatGen.cpp | 192 SMLoc loc = curToken.getLoc(); in parse() 213 if (curToken.is(FormatToken::literal)) in parseElement() 215 if (curToken.is(FormatToken::variable)) in parseElement() 217 if (curToken.isKeyword()) in parseElement() 219 if (curToken.is(FormatToken::l_paren)) in parseElement() 221 return emitError(curToken.getLoc(), in parseElement() 226 FormatToken tok = curToken; in parseLiteral() 257 FormatToken tok = curToken; in parseVariable() 267 FormatToken tok = curToken; in parseDirective() 277 SMLoc loc = curToken.getLoc(); in parseOptionalGroup() [all …]
|
| H A D | FormatGen.h | 429 : lexer(mgr, loc), curToken(lexer.lexToken()) {} in FormatParser() 501 if (!curToken.is(kind)) in parseToken() 502 return emitError(curToken.getLoc(), msg); in parseToken() 503 FormatToken tok = curToken; in parseToken() 510 assert(!curToken.is(FormatToken::eof) && !curToken.is(FormatToken::error) && in consumeToken() 512 curToken = lexer.lexToken(); in consumeToken() 516 FormatToken peekToken() { return curToken; } in peekToken() 528 FormatToken curToken; variable
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | Parser.h | 101 const Token &getToken() const { return state.curToken; } in getToken() 102 StringRef getTokenSpelling() const { return state.curToken.getSpelling(); } in getTokenSpelling() 107 if (state.curToken.isNot(kind)) in consumeIf() 115 assert(state.curToken.isNot(Token::eof, Token::error) && in consumeToken() 117 state.curToken = state.lex.lexToken(); in consumeToken() 124 assert(state.curToken.is(kind) && "consumed an unexpected token"); in consumeToken() 131 state.curToken = state.lex.lexToken(); in resetToken()
|
| H A D | ParserState.h | 53 curToken(lex.lexToken()), symbols(symbols), asmState(asmState), in ParserState() 65 Token curToken; member
|
| H A D | DialectSymbolParser.cpp | 117 curPtr = state.curToken.getEndLoc().getPointer(); in parseDialectSymbolBody() 121 if (state.curToken.isCodeCompletion()) { in parseDialectSymbolBody() 128 if (state.curToken.isNot(Token::string)) in parseDialectSymbolBody()
|
| H A D | Parser.cpp | 158 auto loc = state.curToken.getLoc(); in emitError() 159 if (state.curToken.isNot(Token::eof)) in emitError() 181 auto loc = state.curToken.getLoc(); in emitWrongTokenError() 184 if (state.curToken.is(Token::eof)) in emitWrongTokenError() 241 Token curToken = getToken(); in parseOptionalInteger() local 242 if (curToken.isNot(Token::integer, Token::minus)) in parseOptionalInteger()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch1/include/toy/ |
| H A D | Parser.h | 476 auto curToken = lexer.getCurToken(); 479 << "' " << context << " but has Token " << curToken; 480 if (isprint(curToken)) 481 llvm::errs() << " '" << (char)curToken << "'";
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch2/include/toy/ |
| H A D | Parser.h | 476 auto curToken = lexer.getCurToken(); 479 << "' " << context << " but has Token " << curToken; 480 if (isprint(curToken)) 481 llvm::errs() << " '" << (char)curToken << "'";
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch3/include/toy/ |
| H A D | Parser.h | 476 auto curToken = lexer.getCurToken(); 479 << "' " << context << " but has Token " << curToken; 480 if (isprint(curToken)) 481 llvm::errs() << " '" << (char)curToken << "'";
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/include/toy/ |
| H A D | Parser.h | 476 auto curToken = lexer.getCurToken(); 479 << "' " << context << " but has Token " << curToken; 480 if (isprint(curToken)) 481 llvm::errs() << " '" << (char)curToken << "'";
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/include/toy/ |
| H A D | Parser.h | 476 auto curToken = lexer.getCurToken(); 479 << "' " << context << " but has Token " << curToken; 480 if (isprint(curToken)) 481 llvm::errs() << " '" << (char)curToken << "'";
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/include/toy/ |
| H A D | Parser.h | 476 auto curToken = lexer.getCurToken(); 479 << "' " << context << " but has Token " << curToken; 480 if (isprint(curToken)) 481 llvm::errs() << " '" << (char)curToken << "'";
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/include/toy/ |
| H A D | Parser.h | 670 auto curToken = lexer.getCurToken(); 673 << "' " << context << " but has Token " << curToken; 674 if (isprint(curToken)) 675 llvm::errs() << " '" << (char)curToken << "'";
|