Home
last modified time | relevance | path

Searched refs:parseToken (Results 1 – 25 of 37) sorted by relevance

12

/external/llvm-project/llvm/lib/AsmParser/
DLLParser.cpp415 if (parseToken(lltok::kw_asm, "expected 'module asm'") || in parseModuleAsm()
434 if (parseToken(lltok::equal, "expected '=' after target triple") || in parseTargetDefinition()
441 if (parseToken(lltok::equal, "expected '=' after target datalayout") || in parseTargetDefinition()
454 if (parseToken(lltok::equal, "expected '=' after source_filename") || in parseSourceFileName()
469 if (parseToken(lltok::equal, "expected '=' after deplibs") || in parseDepLibs()
470 parseToken(lltok::lsquare, "expected '=' after deplibs")) in parseDepLibs()
482 return parseToken(lltok::rsquare, "expected ']' at end of list"); in parseDepLibs()
492 if (parseToken(lltok::equal, "expected '=' after name") || in parseUnnamedType()
493 parseToken(lltok::kw_type, "expected 'type' after '='")) in parseUnnamedType()
518 if (parseToken(lltok::equal, "expected '=' after name") || in parseNamedType()
[all …]
/external/llvm-project/mlir/lib/Parser/
DLocationParser.cpp33 if (parseToken(Token::l_paren, "expected '(' in callsite location")) in parseCallSiteLocation()
53 if (parseToken(Token::r_paren, "expected ')' in callsite location")) in parseCallSiteLocation()
71 if (parseToken(Token::greater, in parseFusedLocation()
85 if (parseToken(Token::l_square, "expected '[' in fused location") || in parseFusedLocation()
87 parseToken(Token::r_square, "expected ']' in fused location")) in parseFusedLocation()
111 if (parseToken(Token::colon, "expected ':' in FileLineColLoc")) in parseNameOrFileLineColLocation()
144 if (parseToken(Token::r_paren, in parseNameOrFileLineColLocation()
DTypeParser.cpp93 if (parseToken(Token::l_paren, "expected '('")) in parseTypeListParens()
101 parseToken(Token::r_paren, "expected ')'")) in parseTypeListParens()
114 if (parseToken(Token::less, "expected '<' in complex type")) in parseComplexType()
120 parseToken(Token::greater, "expected '>' in complex type")) in parseComplexType()
138 parseToken(Token::arrow, "expected '->' in function type") || in parseFunctionType()
195 if (parseToken(Token::less, "expected '<' in memref type")) in parseMemRefType()
280 if (parseToken(Token::comma, "expected ',' or '>' in memref type") || in parseMemRefType()
382 if (parseToken(Token::less, "expected '<' in tensor type")) in parseTensorType()
404 if (!elementType || parseToken(Token::greater, "expected '>' in tensor type")) in parseTensorType()
422 if (parseToken(Token::less, "expected '<' in tuple type")) in parseTupleType()
[all …]
DDialectSymbolParser.cpp91 if (parser.parseToken(Token::integer, "expected integer value")) in parseOptionalInteger()
107 return parser.parseToken(Token::arrow, "expected '->'"); in parseArrow()
117 return parser.parseToken(Token::l_brace, "expected '{'"); in parseLBrace()
127 return parser.parseToken(Token::r_brace, "expected '}'"); in parseRBrace()
137 return parser.parseToken(Token::colon, "expected ':'"); in parseColon()
147 return parser.parseToken(Token::comma, "expected ','"); in parseComma()
162 return parser.parseToken(Token::equal, "expected '='"); in parseEqual()
172 return parser.parseToken(Token::less, "expected '<'"); in parseLess()
182 return parser.parseToken(Token::greater, "expected '>'"); in parseGreater()
192 return parser.parseToken(Token::l_paren, "expected '('"); in parseLParen()
[all …]
DParser.cpp71 parseToken(rightToken, "expected ',' or '" + in parseCommaSeparatedListUntil()
90 ParseResult Parser::parseToken(Token::Kind expectedToken, in parseToken() function in Parser
482 if (parseToken(Token::percent_identifier, "expected SSA operand")) in parseSSAUse()
543 parseToken(Token::colon, "expected ':' and type for SSA operand")) in parseSSADefOrUseAndType()
570 if (parseToken(Token::colon, "expected ':' in operand list") || in parseOptionalSSAUseAndTypeList()
669 if (parseToken(Token::equal, "expected '=' after SSA name")) in parseOperation()
727 if (parseToken(Token::l_square, "expected '['")) in parseSuccessors()
783 if (parseToken(Token::l_paren, "expected '(' to start operand list") || in parseGenericOperation()
785 parseToken(Token::r_paren, "expected ')' to end operand list")) { in parseGenericOperation()
811 if (parseToken(Token::r_paren, "expected ')' to end region list")) in parseGenericOperation()
[all …]
DAffineParser.cpp235 if (parseToken(Token::l_paren, "expected '('")) in parseParentheticalExpr()
243 if (parseToken(Token::r_paren, "expected ')'")) in parseParentheticalExpr()
253 if (parseToken(Token::minus, "expected '-'")) in parseNegateExpression()
310 if (parseToken(Token::kw_symbol, "expected symbol keyword") || in parseSymbolSSAIdExpr()
311 parseToken(Token::l_paren, "expected '(' at start of SSA symbol")) in parseSymbolSSAIdExpr()
316 if (parseToken(Token::r_paren, "expected ')' at end of SSA symbol")) in parseSymbolSSAIdExpr()
476 if (parseToken(Token::l_paren, in parseDimIdList()
529 parseToken(Token::arrow, "expected '->' or '['"); in parseAffineMapOrIntegerSetInline()
532 } else if (parseToken(Token::colon, "expected ':' or '['")) { in parseAffineMapOrIntegerSetInline()
549 if (parseToken(Token::l_square, "expected '['")) in parseAffineMapOfSSAIds()
[all …]
DAttributeParser.cpp50 if (parseToken(Token::less, "expected '<' in affine map") || in parseAttribute()
52 parseToken(Token::greater, "expected '>' in affine map")) in parseAttribute()
60 if (parseToken(Token::less, "expected '<' in integer set") || in parseAttribute()
62 parseToken(Token::greater, "expected '>' in integer set")) in parseAttribute()
127 if (parseToken(Token::l_paren, "expected '(' in inline location") || in parseAttribute()
129 parseToken(Token::r_paren, "expected ')' in inline location")) in parseAttribute()
247 if (parseToken(Token::l_brace, "expected '{' in attribute dictionary")) in parseAttributeDict()
757 p.parseToken(Token::comma, "expected ',' between complex elements") || in parseElement()
759 p.parseToken(Token::r_paren, "expected ')' after complex elements")) in parseElement()
823 if (parseToken(Token::less, "expected '<' after 'dense'")) in parseDenseElementsAttr()
[all …]
DParser.h128 ParseResult parseToken(Token::Kind expectedToken, const Twine &message);
/external/llvm-project/mlir/tools/mlir-linalg-ods-gen/
Dmlir-linalg-ods-gen.cpp359 LogicalResult parseToken(Token::Kind kind, const Twine &msg) { in parseToken() function in __anon084c004d0211::Parser
405 parseToken(rightToken, "expected ',' or right-terminating token"))) in parseCommaSeparatedListUntil()
626 if (failed(parser.parseToken(Token::Kind::l_paren, "expected '('"))) in parseParentheticalExpr()
634 if (failed(parser.parseToken(Token::Kind::r_paren, "expected ')'"))) in parseParentheticalExpr()
644 if (failed(parser.parseToken(Token::Kind::minus, "expected '-'"))) in parseNegateExpression()
818 parser.parseToken(lDelim, "expected lDelim at start of affine expr list"); in parseAffineExprs()
1126 if (failed(parser.parseToken(Token::Kind::id, "expected an id")) || in parseTensorDef()
1127 failed(parser.parseToken(Token::Kind::colon, "expected colon"))) in parseTensorDef()
1131 if (failed(parser.parseToken(Token::Kind::id, "expected an id"))) in parseTensorDef()
1160 if (failed(parser.parseToken(Token::Kind::id, "expected an id"))) in parseTensorUse()
[all …]
/external/llvm-project/llvm/lib/MC/MCParser/
DAsmParser.cpp1066 if (parseToken(AsmToken::RBrac, "expected ']' in brackets expression")) in parseBracketExpr()
1136 if (parseToken(AsmToken::RParen, in parsePrimaryExpr()
1470 if (parseToken(AsmToken::RParen, in parseParenExprOfDepth()
2908 parseToken(AsmToken::Comma) || parseAssignment(Name, allow_redef, true)) in parseDirectiveSet()
3031 if (parseToken(AsmToken::Comma, "expected comma") || in parseDirectiveReloc()
3050 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveReloc()
3207 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveZero()
3238 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveFill()
3272 if (parseToken(AsmToken::EndOfStatement)) in parseDirectiveOrg()
3306 return parseToken(AsmToken::EndOfStatement); in parseDirectiveAlign()
[all …]
DMCAsmParser.cpp54 bool MCAsmParser::parseToken(AsmToken::TokenKind T, const Twine &Msg) { in parseToken() function in MCAsmParser
74 parseToken(T); in parseOptionalToken()
125 if (hasComma && parseToken(AsmToken::Comma)) in parseMany()
DMasmParser.cpp1424 if (parseToken(AsmToken::RBrac, "expected ']' in brackets expression")) in parseBracketExpr()
1502 if (parseToken(AsmToken::RParen, in parsePrimaryExpr()
1802 if (parseToken(AsmToken::RParen, in parseParenExprOfDepth()
1980 if (parseToken(AsmToken::Percent) || expandStatement(ExpansionLoc)) in parseStatement()
3166 if (parseToken(AsmToken::LParen, "invoking macro function '" + M->Name + in handleMacroInvocation()
3199 if (parseToken(AsmToken::RParen, "invoking macro function '" + M->Name + in handleMacroInvocation()
3368 if (parseToken(AsmToken::Percent) || parseAbsoluteExpression(Res)) in parseTextItem()
3470 if (parseToken(AsmToken::LParen, in parseScalarInitializer()
3473 parseToken(AsmToken::RParen, "unmatched parentheses")) in parseScalarInitializer()
3664 if (parseExpression(Value) || parseToken(AsmToken::Identifier)) in parseRealInstList()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DAsmParser.cpp1061 if (parseToken(AsmToken::RBrac, "expected ']' in brackets expression")) in parseBracketExpr()
1130 if (parseToken(AsmToken::RParen, in parsePrimaryExpr()
1464 if (parseToken(AsmToken::RParen, in parseParenExprOfDepth()
2891 parseToken(AsmToken::Comma) || parseAssignment(Name, allow_redef, true)) in parseDirectiveSet()
3007 (parseToken(AsmToken::Comma, "expected comma") || in parseDirectiveReloc()
3026 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveReloc()
3181 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveZero()
3212 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveFill()
3246 if (parseToken(AsmToken::EndOfStatement)) in parseDirectiveOrg()
3280 return parseToken(AsmToken::EndOfStatement); in parseDirectiveAlign()
[all …]
DMCAsmParser.cpp49 bool MCAsmParser::parseToken(AsmToken::TokenKind T, const Twine &Msg) { in parseToken() function in MCAsmParser
69 parseToken(T); in parseOptionalToken()
120 if (hasComma && parseToken(AsmToken::Comma)) in parseMany()
/external/nist-sip/java/gov/nist/javax/sip/parser/ims/
DPVisitedNetworkIDParser.java99 parseToken(visitedNetworkID); in parse()
162 protected void parseToken(PVisitedNetworkID visitedNetworkID) throws ParseException in parseToken() method in PVisitedNetworkIDParser
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/MCParser/
DMCAsmParserExtension.h88 bool parseToken(AsmToken::TokenKind T,
90 return getParser().parseToken(T, Msg);
DMCAsmParser.h226 bool parseToken(AsmToken::TokenKind T, const Twine &Msg = "unexpected token");
/external/llvm-project/llvm/include/llvm/MC/MCParser/
DMCAsmParserExtension.h88 bool parseToken(AsmToken::TokenKind T,
90 return getParser().parseToken(T, Msg);
DMCAsmParser.h256 bool parseToken(AsmToken::TokenKind T, const Twine &Msg = "unexpected token");
/external/llvm-project/mlir/tools/mlir-tblgen/
DOpFormatGen.cpp2149 LogicalResult parseToken(Token::Kind kind, const Twine &msg) { in parseToken() function in __anon81548fc81611::FormatParser
2629 if (failed(parseToken(Token::question, "expected '?' after optional group"))) in parseOptional()
2759 parseToken(Token::less, "expected '<' before custom directive name"))) in parseCustomDirective()
2763 if (failed(parseToken(Token::identifier, in parseCustomDirective()
2765 failed(parseToken(Token::greater, in parseCustomDirective()
2767 failed(parseToken(Token::l_paren, in parseCustomDirective()
2781 if (failed(parseToken(Token::r_paren, in parseCustomDirective()
2835 if (failed(parseToken(Token::l_paren, "expected '(' before argument list")) || in parseFunctionalTypeDirective()
2837 failed(parseToken(Token::comma, "expected ',' after inputs argument")) || in parseFunctionalTypeDirective()
2839 failed(parseToken(Token::r_paren, "expected ')' after argument list"))) in parseFunctionalTypeDirective()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp1547 if (parseToken(AsmToken::RParen, "missing ')'")) in ParseOperand()
1600 if (parseToken(AsmToken::Comma) || ParseOperand(Operands)) in ParseInstruction()
1680 if (parseToken(AsmToken::Comma)) in ParseDirectiveTC()
1710 if (parseToken(AsmToken::EndOfStatement)) in ParseDirectiveMachine()
1741 parseToken(AsmToken::EndOfStatement)) in ParseDarwinDirectiveMachine()
1752 parseToken(AsmToken::EndOfStatement)) in ParseDirectiveAbiVersion()
1773 if (parseToken(AsmToken::Comma) || in ParseDirectiveLocalEntry()
1775 parseToken(AsmToken::EndOfStatement)) in ParseDirectiveLocalEntry()
/external/owasp/sanitizer/src/main/org/owasp/html/
DHtmlLexer.java295 HtmlToken token = parseToken(); in produce()
395 private HtmlToken parseToken() { in parseToken() method in HtmlInputSplitter
/external/llvm-project/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp1509 if (parseToken(AsmToken::RParen, "missing ')'")) in ParseOperand()
1562 if (parseToken(AsmToken::Comma) || ParseOperand(Operands)) in ParseInstruction()
1637 if (parseToken(AsmToken::Comma)) in ParseDirectiveTC()
1667 if (parseToken(AsmToken::EndOfStatement)) in ParseDirectiveMachine()
1684 parseToken(AsmToken::EndOfStatement)) in ParseDirectiveAbiVersion()
1705 if (parseToken(AsmToken::Comma) || in ParseDirectiveLocalEntry()
1707 parseToken(AsmToken::EndOfStatement)) in ParseDirectiveLocalEntry()
/external/llvm-project/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp3033 if (parseToken(AsmToken::EndOfStatement, "unexpected token in argument list")) in parseSysAlias()
3173 if (parseToken(AsmToken::RBrac, "']' expected")) in tryParseVectorIndex()
3351 if (parseToken(AsmToken::Colon, "expect ':' after relocation specifier")) in parseSymbolicImmVal()
3463 if (parseToken(AsmToken::RCurly, "'}' expected")) in tryParseVectorList()
3990 if (parseToken(AsmToken::EndOfStatement, "unexpected token in argument list")) in ParseInstruction()
5301 if (parseToken(AsmToken::EndOfStatement)) in parseDirectiveArch()
5356 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveArchExtension()
5400 if (parseToken(AsmToken::EndOfStatement)) in parseDirectiveCPU()
5488 parseToken(AsmToken::EndOfStatement)) in parseDirectiveTLSDescCall()
5542 if (parseToken(AsmToken::Comma, in parseDirectiveLOH()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp2978 if (parseToken(AsmToken::EndOfStatement, "unexpected token in argument list")) in parseSysAlias()
3118 if (parseToken(AsmToken::RBrac, "']' expected")) in tryParseVectorIndex()
3296 if (parseToken(AsmToken::Colon, "expect ':' after relocation specifier")) in parseSymbolicImmVal()
3408 if (parseToken(AsmToken::RCurly, "'}' expected")) in tryParseVectorList()
3875 if (parseToken(AsmToken::EndOfStatement, "unexpected token in argument list")) in ParseInstruction()
5120 if (parseToken(AsmToken::EndOfStatement)) in parseDirectiveArch()
5174 if (parseToken(AsmToken::EndOfStatement, in parseDirectiveArchExtension()
5218 if (parseToken(AsmToken::EndOfStatement)) in parseDirectiveCPU()
5306 parseToken(AsmToken::EndOfStatement)) in parseDirectiveTLSDescCall()
5360 if (parseToken(AsmToken::Comma, in parseDirectiveLOH()
[all …]

12