Home
last modified time | relevance | path

Searched refs:getTok (Results 1 – 25 of 90) sorted by relevance

1234

/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DMCAsmParser.cpp33 const AsmToken &MCAsmParser::getTok() const { in getTok() function in MCAsmParser
34 return getLexer().getTok(); in getTok()
38 Loc = getTok().getLoc(); in parseTokenLoc()
43 if (getTok().getKind() != AsmToken::EndOfStatement) in parseEOL()
44 return Error(getTok().getLoc(), Msg); in parseEOL()
52 if (getTok().getKind() != T) in parseToken()
53 return Error(getTok().getLoc(), Msg); in parseToken()
59 if (getTok().getKind() != AsmToken::Integer) in parseIntToken()
61 V = getTok().getIntVal(); in parseIntToken()
67 bool Present = (getTok().getKind() == T); in parseOptionalToken()
[all …]
DWasmAsmParser.cpp84 Lexer->getTok()); in expect()
101 return error("Expected section flags, instead got: ", Lexer->getTok()); in parseSectionFlags()
115 return error("expected string in directive, instead got: ", Lexer->getTok()); in parseSectionDirective()
135 if (parseSectionFlags(getTok().getStringContents(), Passive)) in parseSectionDirective()
140 return Parser->Error(getTok().getLoc(), in parseSectionDirective()
181 Lexer->getTok()); in parseDirectiveType()
184 Lexer->getTok().getString())); in parseDirectiveType()
188 return error("Expected label,@type declaration, got: ", Lexer->getTok()); in parseDirectiveType()
189 auto TypeName = Lexer->getTok().getString(); in parseDirectiveType()
197 return error("Unknown WASM symbol type: ", Lexer->getTok()); in parseDirectiveType()
[all …]
DAsmParser.cpp828 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
832 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
834 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
835 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
836 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
921 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
943 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
950 printError(getTok().getLoc(), "unassigned file number: " + in Run()
972 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1000 return Error(getTok().getLoc(), in checkForValidSection()
[all …]
/external/llvm-project/llvm/lib/MC/MCParser/
DMCAsmParser.cpp38 const AsmToken &MCAsmParser::getTok() const { in getTok() function in MCAsmParser
39 return getLexer().getTok(); in getTok()
43 Loc = getTok().getLoc(); in parseTokenLoc()
48 if (getTok().getKind() != AsmToken::EndOfStatement) in parseEOL()
49 return Error(getTok().getLoc(), Msg); in parseEOL()
57 if (getTok().getKind() != T) in parseToken()
58 return Error(getTok().getLoc(), Msg); in parseToken()
64 if (getTok().getKind() != AsmToken::Integer) in parseIntToken()
66 V = getTok().getIntVal(); in parseIntToken()
72 bool Present = (getTok().getKind() == T); in parseOptionalToken()
[all …]
DWasmAsmParser.cpp84 Lexer->getTok()); in expect()
101 return error("Expected section flags, instead got: ", Lexer->getTok()); in parseSectionFlags()
115 return error("expected string in directive, instead got: ", Lexer->getTok()); in parseSectionDirective()
137 if (parseSectionFlags(getTok().getStringContents(), Passive)) in parseSectionDirective()
142 return Parser->Error(getTok().getLoc(), in parseSectionDirective()
183 Lexer->getTok()); in parseDirectiveType()
186 Lexer->getTok().getString())); in parseDirectiveType()
190 return error("Expected label,@type declaration, got: ", Lexer->getTok()); in parseDirectiveType()
191 auto TypeName = Lexer->getTok().getString(); in parseDirectiveType()
199 return error("Unknown WASM symbol type: ", Lexer->getTok()); in parseDirectiveType()
[all …]
DCOFFMasmParser.cpp259 SegmentName = getTok().getIdentifier(); in ParseDirectiveSegment()
288 SegmentName = getTok().getIdentifier(); in ParseDirectiveSegmentEnd()
324 StringRef nextVal = getTok().getString(); in ParseDirectiveProc()
325 SMLoc nextLoc = getTok().getLoc(); in ParseDirectiveProc()
332 nextVal = getTok().getString(); in ParseDirectiveProc()
333 nextLoc = getTok().getLoc(); in ParseDirectiveProc()
344 getTok().getString().equals_lower("frame")) { in ParseDirectiveProc()
357 SMLoc LabelLoc = getTok().getLoc(); in ParseDirectiveEndProc()
377 if (getTok().isNot(AsmToken::Less) || in ParseDirectiveAlias()
379 return Error(getTok().getLoc(), "expected <aliasName>"); in ParseDirectiveAlias()
[all …]
DAsmParser.cpp833 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
837 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
839 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
840 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
841 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
926 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
948 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
955 printError(getTok().getLoc(), "unassigned file number: " + in Run()
977 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1005 return Error(getTok().getLoc(), in checkForValidSection()
[all …]
DMasmParser.cpp1111 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
1115 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
1117 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
1118 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
1119 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
1136 getTok().getEndLoc()); in Lex()
1251 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
1273 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
1280 printError(getTok().getLoc(), "unassigned file number: " + in Run()
1302 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
[all …]
/external/expat/xmlwf/
Dct.c36 getTok(const char **pp) { in getTok() function
119 p = getTok(&next); in getXMLCharset()
124 p = getTok(&next); in getXMLCharset()
127 p = getTok(&next); in getXMLCharset()
130 p = getTok(&next); in getXMLCharset()
133 p = getTok(&next); in getXMLCharset()
135 p = getTok(&next); in getXMLCharset()
137 p = getTok(&next); in getXMLCharset()
163 p = getTok(&next); in getXMLCharset()
Dxmlmime.c37 getTok(const char **pp) { in getTok() function
123 p = getTok(&next); in getXMLCharset()
128 p = getTok(&next); in getXMLCharset()
131 p = getTok(&next); in getXMLCharset()
138 p = getTok(&next); in getXMLCharset()
141 p = getTok(&next); in getXMLCharset()
143 p = getTok(&next); in getXMLCharset()
145 p = getTok(&next); in getXMLCharset()
172 p = getTok(&next); in getXMLCharset()
/external/llvm-project/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp337 StringRef Name = Parser.getTok().getString(); in parseRegisterName()
367 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
370 AsmToken HighTok = Parser.getTok(); in parseRegister()
372 AsmToken ColonTok = Parser.getTok(); in parseRegister()
375 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
396 AsmToken const &T = Parser.getTok(); in tryParseRegisterOperand()
404 SMLoc S = Parser.getTok().getLoc(); in tryParseExpression()
409 if ((Parser.getTok().getKind() == AsmToken::Plus || in tryParseExpression()
410 Parser.getTok().getKind() == AsmToken::Minus) && in tryParseExpression()
422 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in tryParseExpression()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp335 StringRef Name = Parser.getTok().getString(); in parseRegisterName()
365 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
371 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
388 AsmToken const &T = Parser.getTok(); in tryParseRegisterOperand()
396 SMLoc S = Parser.getTok().getLoc(); in tryParseExpression()
401 if ((Parser.getTok().getKind() == AsmToken::Plus || in tryParseExpression()
402 Parser.getTok().getKind() == AsmToken::Minus) && in tryParseExpression()
414 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in tryParseExpression()
423 SMLoc S = Parser.getTok().getLoc(); in tryParseRelocExpression()
451 if (Parser.getTok().getKind() != AsmToken::Identifier || in tryParseRelocExpression()
[all …]
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp255 Loc = getTok().getLoc(); in getTokenLoc()
260 if (getTok().getKind() == AsmToken::Hash) { in parseEOL()
265 if (getTok().getKind() != AsmToken::EndOfStatement) in parseEOL()
276 if (getTok().getKind() != T) in parseToken()
283 if (getTok().getKind() != AsmToken::Integer) in parseIntToken()
285 V = getTok().getIntVal(); in parseIntToken()
663 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
667 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
669 if (getTok().getString().front() != '\n' && in Lex()
670 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp223 return Parser.Error(Lexer.getTok().getLoc(), Msg); in error()
282 Lexer.getTok()); in expect()
288 error("Expected identifier, got: ", Lexer.getTok()); in expectIdent()
291 auto Name = Lexer.getTok().getString(); in expectIdent()
331 auto Type = parseType(Lexer.getTok().getString()); in parseRegTypeList()
333 return error("unknown type: ", Lexer.getTok()); in parseRegTypeList()
343 auto &Int = Lexer.getTok(); in parseSingleInteger()
354 auto &Flt = Lexer.getTok(); in parseSingleFloat()
370 auto &Flt = Lexer.getTok(); in parseSpecialFloatMaybe()
410 auto Tok = Lexer.getTok(); in checkForP2AlignIfLoadStore()
[all …]
/external/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp499 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister()
502 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
503 return Error(Parser.getTok().getLoc(), "register expected"); in parseRegister()
507 if (Parser.getTok().isNot(AsmToken::Identifier)) in parseRegister()
511 StringRef Name = Parser.getTok().getString(); in parseRegister()
532 Reg.EndLoc = Parser.getTok().getLoc(); in parseRegister()
562 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
631 return Error(Parser.getTok().getLoc(), "unexpected token in address"); in parseAddress()
642 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAddress()
676 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseAddress()
[all …]
/external/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp231 return Parser.Error(Lexer.getTok().getLoc(), Msg); in error()
296 Lexer.getTok()); in expect()
302 error("Expected identifier, got: ", Lexer.getTok()); in expectIdent()
305 auto Name = Lexer.getTok().getString(); in expectIdent()
351 auto Type = parseType(Lexer.getTok().getString()); in parseRegTypeList()
353 return error("unknown type: ", Lexer.getTok()); in parseRegTypeList()
363 auto &Int = Lexer.getTok(); in parseSingleInteger()
374 auto &Flt = Lexer.getTok(); in parseSingleFloat()
390 auto &Flt = Lexer.getTok(); in parseSpecialFloatMaybe()
436 auto Tok = Lexer.getTok(); in checkForP2AlignIfLoadStore()
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp3021 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
3035 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
3092 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister()
3093 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister()
3131 if (Parser.getTok().is(AsmToken::Hash) || in tryParseShiftRegister()
3132 Parser.getTok().is(AsmToken::Dollar)) { in tryParseShiftRegister()
3134 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister()
3160 } else if (Parser.getTok().is(AsmToken::Identifier)) { in tryParseShiftRegister()
3161 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister()
3162 EndLoc = Parser.getTok().getEndLoc(); in tryParseShiftRegister()
[all …]
/external/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp710 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister()
713 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
714 return Error(Parser.getTok().getLoc(), "register expected"); in parseRegister()
715 const AsmToken &PercentTok = Parser.getTok(); in parseRegister()
719 if (Parser.getTok().isNot(AsmToken::Identifier)) { in parseRegister()
726 StringRef Name = Parser.getTok().getString(); in parseRegister()
758 Reg.EndLoc = Parser.getTok().getLoc(); in parseRegister()
794 if (Parser.getTok().is(AsmToken::Percent)) { in parseRegister()
817 } else if (Parser.getTok().is(AsmToken::Integer)) { in parseRegister()
854 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAnyRegister()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp695 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister()
698 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
699 return Error(Parser.getTok().getLoc(), "register expected"); in parseRegister()
703 if (Parser.getTok().isNot(AsmToken::Identifier)) in parseRegister()
707 StringRef Name = Parser.getTok().getString(); in parseRegister()
730 Reg.EndLoc = Parser.getTok().getLoc(); in parseRegister()
760 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
777 if (Parser.getTok().is(AsmToken::Integer)) { in parseAnyRegister()
779 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAnyRegister()
792 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseAnyRegister()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp3945 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
3966 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
4023 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister()
4024 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister()
4062 if (Parser.getTok().is(AsmToken::Hash) || in tryParseShiftRegister()
4063 Parser.getTok().is(AsmToken::Dollar)) { in tryParseShiftRegister()
4065 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister()
4091 } else if (Parser.getTok().is(AsmToken::Identifier)) { in tryParseShiftRegister()
4092 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister()
4093 EndLoc = Parser.getTok().getEndLoc(); in tryParseShiftRegister()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp3880 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
3893 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
3950 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister()
3951 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister()
3989 if (Parser.getTok().is(AsmToken::Hash) || in tryParseShiftRegister()
3990 Parser.getTok().is(AsmToken::Dollar)) { in tryParseShiftRegister()
3992 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister()
4018 } else if (Parser.getTok().is(AsmToken::Identifier)) { in tryParseShiftRegister()
4019 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister()
4020 EndLoc = Parser.getTok().getEndLoc(); in tryParseShiftRegister()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h100 const AsmToken &getTok() const { in getTok() function
132 AsmToken::TokenKind getKind() const { return getTok().getKind(); } in getKind()
135 bool is(AsmToken::TokenKind K) const { return getTok().is(K); } in is()
138 bool isNot(AsmToken::TokenKind K) const { return getTok().isNot(K); } in isNot()
/external/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp829 StringRef RegName = Parser.getTok().getString(); in ParseAMDGPURegister()
952 const auto &Tok = Parser.getTok(); in parseRegister()
975 SMLoc S = Parser.getTok().getLoc(); in parseImm()
1039 if (getLexer().getKind() == AsmToken::Identifier && Parser.getTok().getString() == "abs") { in parseRegOrImmWithFPInputMods()
1043 Error(Parser.getTok().getLoc(), "expected left paren after abs"); in parseRegOrImmWithFPInputMods()
1051 Error(Parser.getTok().getLoc(), "expected register or immediate"); in parseRegOrImmWithFPInputMods()
1069 Error(Parser.getTok().getLoc(), "expected vertical bar"); in parseRegOrImmWithFPInputMods()
1077 Error(Parser.getTok().getLoc(), "expected closing parentheses"); in parseRegOrImmWithFPInputMods()
1095 if (getLexer().getKind() == AsmToken::Identifier && Parser.getTok().getString() == "sext") { in parseRegOrImmWithIntInputMods()
1099 Error(Parser.getTok().getLoc(), "expected left paren after sext"); in parseRegOrImmWithIntInputMods()
[all …]
/external/llvm-project/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h104 const AsmToken &getTok() const { in getTok() function
136 AsmToken::TokenKind getKind() const { return getTok().getKind(); } in getKind()
139 bool is(AsmToken::TokenKind K) const { return getTok().is(K); } in is()
142 bool isNot(AsmToken::TokenKind K) const { return getTok().isNot(K); } in isNot()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DModifierOrderer.java99 if (!tokenRanges.contains(token.getTok().getIndex())) { in reorderModifiers()
110 int begin = token.getTok().getPosition(); in reorderModifiers()
123 end = token.getTok().getPosition() + token.getTok().length(); in reorderModifiers()
155 return getModifier(((JavaInput.Tok) token.getTok()).kind()); in asModifier()

1234