Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/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 …]
DELFAsmParser.cpp246 SectionName = getTok().getIdentifier(); in ParseSectionName()
259 CurSize = getTok().getIdentifier().size() + 2; in ParseSectionName()
262 CurSize = getTok().getIdentifier().size(); in ParseSectionName()
265 CurSize = getTok().getString().size(); in ParseSectionName()
272 if (PrevLoc.getPointer() + CurSize != getTok().getLoc().getPointer()) in ParseSectionName()
348 StringRef flagId = getTok().getIdentifier(); in parseSunStyleSectionFlags()
406 TypeName = getTok().getString(); in maybeParseSectionType()
430 GroupName = getTok().getString(); in parseGroup()
536 StringRef FlagsStr = getTok().getStringContents(); in ParseSectionArguments()
743 StringRef Data = getTok().getIdentifier(); in ParseDirectiveIdent()
[all …]
DDarwinAsmParser.cpp980 SMLoc Loc = getParser().getTok().getLoc(); in parseDirectiveDataRegion()
1019 int64_t MajorVal = getLexer().getTok().getIntVal(); in parseMajorMinorVersionComponent()
1032 int64_t MinorVal = getLexer().getTok().getIntVal(); in parseMajorMinorVersionComponent()
1048 int64_t Val = getLexer().getTok().getIntVal(); in parseOptionalTrailingVersionComponent()
1066 isSDKVersionToken(getLexer().getTok())) in parseVersion()
1076 assert(isSDKVersionToken(getLexer().getTok()) && "expected sdk_version"); in parseSDKVersion()
1132 if (isSDKVersionToken(getLexer().getTok()) && parseSDKVersion(SDKVersion)) in parseVersionMin()
1163 SMLoc PlatformLoc = getTok().getLoc(); in parseBuildVersion()
1188 if (isSDKVersionToken(getLexer().getTok()) && parseSDKVersion(SDKVersion)) in parseBuildVersion()
/third_party/skia/third_party/externals/expat/expat/xmlwf/
Dct.c37 getTok(const char **pp) { in getTok() function
120 p = getTok(&next); in getXMLCharset()
125 p = getTok(&next); in getXMLCharset()
128 p = getTok(&next); in getXMLCharset()
131 p = getTok(&next); in getXMLCharset()
134 p = getTok(&next); in getXMLCharset()
136 p = getTok(&next); in getXMLCharset()
138 p = getTok(&next); in getXMLCharset()
164 p = getTok(&next); in getXMLCharset()
Dxmlmime.c39 getTok(const char **pp) { in getTok() function
125 p = getTok(&next); in getXMLCharset()
130 p = getTok(&next); in getXMLCharset()
133 p = getTok(&next); in getXMLCharset()
140 p = getTok(&next); in getXMLCharset()
143 p = getTok(&next); in getXMLCharset()
145 p = getTok(&next); in getXMLCharset()
147 p = getTok(&next); in getXMLCharset()
174 p = getTok(&next); in getXMLCharset()
/third_party/expat/xmlwf/
Dct.c37 getTok(const char **pp) { in getTok() function
120 p = getTok(&next); in getXMLCharset()
125 p = getTok(&next); in getXMLCharset()
128 p = getTok(&next); in getXMLCharset()
131 p = getTok(&next); in getXMLCharset()
134 p = getTok(&next); in getXMLCharset()
136 p = getTok(&next); in getXMLCharset()
138 p = getTok(&next); in getXMLCharset()
164 p = getTok(&next); in getXMLCharset()
Dxmlmime.c39 getTok(const char **pp) { in getTok() function
125 p = getTok(&next); in getXMLCharset()
130 p = getTok(&next); in getXMLCharset()
133 p = getTok(&next); in getXMLCharset()
140 p = getTok(&next); in getXMLCharset()
143 p = getTok(&next); in getXMLCharset()
145 p = getTok(&next); in getXMLCharset()
147 p = getTok(&next); in getXMLCharset()
174 p = getTok(&next); in getXMLCharset()
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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()
DMCAsmParserExtension.h87 const AsmToken &getTok() { return getParser().getTok(); } in getTok() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp691 SMLoc Start = Parser.getTok().getLoc(); in parseRegister()
692 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseRegister()
699 RegNum = MatchRegisterName(Lexer.getTok().getIdentifier()); in parseRegister()
710 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
720 SMLoc Start = Parser.getTok().getLoc(); in parseIdentifier()
721 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier()
765 End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier()
778 SMLoc Start = Parser.getTok().getLoc(); in parseImmediate()
779 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseImmediate()
810 Error(Parser.getTok().getLoc(), "Can't parse ALU operator"); in parseAluOperator()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/AsmParser/
DMSP430AsmParser.cpp292 auto Name = getLexer().getTok().getIdentifier().lower(); in ParseRegister()
300 AsmToken const &T = getParser().getTok(); in ParseRegister()
451 SMLoc StartLoc = getParser().getTok().getLoc(); in ParseOperand()
456 SMLoc EndLoc = getParser().getTok().getLoc(); in ParseOperand()
465 EndLoc = getParser().getTok().getEndLoc(); in ParseOperand()
476 SMLoc StartLoc = getParser().getTok().getLoc(); in ParseOperand()
480 SMLoc EndLoc = getParser().getTok().getLoc(); in ParseOperand()
489 SMLoc StartLoc = getParser().getTok().getLoc(); in ParseOperand()
509 SMLoc StartLoc = getParser().getTok().getLoc(); in ParseOperand()
513 SMLoc EndLoc = getParser().getTok().getLoc(); in ParseOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/AsmParser/
DBPFAsmParser.cpp32 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
325 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
329 StringRef Name = getLexer().getTok().getIdentifier(); in ParseRegister()
344 StringRef Name = getLexer().getTok().getIdentifier(); in parseOperandAsOperator()
376 StringRef Name = getLexer().getTok().getString(); in parseOperandAsOperator()
390 getLexer().getTok().getString().substr(0, 1), S)); in parseOperandAsOperator()
392 getLexer().getTok().getString().substr(1, 1), S)); in parseOperandAsOperator()
413 StringRef Name = getLexer().getTok().getIdentifier(); in parseRegister()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp633 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
679 Operands.push_back(SparcOperand::CreateToken("+", Parser.getTok().getLoc())); in ParseInstruction()
756 SMLoc S = Parser.getTok().getLoc(); in parseMembarTag()
772 unsigned MaskVal = StringSwitch<unsigned>(Parser.getTok().getString()) in parseMembarTag()
796 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseMembarTag()
815 Parser.getTok().getLoc())); in parseOperand()
819 SMLoc S = Parser.getTok().getLoc(); in parseOperand()
825 if (!matchRegisterName(Parser.getTok(), RegNo, RegKind)) in parseOperand()
829 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer()-1); in parseOperand()
843 Parser.getTok().getLoc())); in parseOperand()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp87 SMLoc Result = Parser.getTok().getLoc(); in consumeToken()
1136 const AsmToken &PercentTok = Parser.getTok(); in ParseRegister()
1144 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
1193 const AsmToken &IntTok = Parser.getTok(); in ParseRegister()
1209 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister()
1211 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1216 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1246 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1477 SMLoc OffsetLoc = getTok().getLoc(); in ParseIntelNamedOperator()
1499 const AsmToken &Tok = Parser.getTok(); in ParseIntelExpression()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/AsmParser/
DRISCVAsmParser.cpp56 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
1013 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
1017 StringRef Name = getLexer().getTok().getIdentifier(); in ParseRegister()
1039 LParen = getParser().getTok(); in parseRegister()
1050 StringRef Name = getLexer().getTok().getIdentifier(); in parseRegister()
1187 StringRef Identifier = getParser().getTok().getIdentifier(); in parseOperandWithModifier()
1220 AsmToken Tok = getLexer().getTok(); in parseBareSymbol()
1543 AsmToken Tok = Parser.getTok(); in parseDirectiveOption()
1546 return Error(Parser.getTok().getLoc(), in parseDirectiveOption()
1555 if (Parser.getTok().isNot(AsmToken::EndOfStatement)) in parseDirectiveOption()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp150 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
2299 const AsmToken &Tok = Parser.getTok(); in tryParseScalarRegister()
2319 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryParseSysCROperand()
2324 StringRef Tok = Parser.getTok().getIdentifier(); in tryParseSysCROperand()
2349 const AsmToken &Tok = Parser.getTok(); in tryParsePrefetch()
2418 const AsmToken &Tok = Parser.getTok(); in tryParsePSBHint()
2441 const AsmToken &Tok = Parser.getTok(); in tryParseBTIHint()
2467 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrpLabel()
2519 if (getParser().getTok().is(AsmToken::LBrac)) in tryParseAdrLabel()
2522 if (getParser().getTok().is(AsmToken::Hash)) in tryParseAdrLabel()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp2304 return !Error(getParser().getTok().getLoc(), in updateGprCountSymbols()
2308 getParser().getTok().getLoc(), in updateGprCountSymbols()
2318 const auto &Tok = Parser.getTok(); in parseRegister()
3626 SMLoc TargetStart = getTok().getLoc(); in ParseDirectiveAMDGCNTarget()
3629 SMRange TargetRange = SMRange(TargetStart, getTok().getLoc()); in ParseDirectiveAMDGCNTarget()
3721 StringRef ID = getTok().getIdentifier(); in ParseDirectiveAMDHSAKernel()
3722 SMRange IDRange = getTok().getLocRange(); in ParseDirectiveAMDHSAKernel()
3732 SMLoc ValStart = getTok().getLoc(); in ParseDirectiveAMDHSAKernel()
3736 SMLoc ValEnd = getTok().getLoc(); in ParseDirectiveAMDHSAKernel()
4020 VendorName = getLexer().getTok().getStringContents(); in ParseDirectiveHSACodeObjectISA()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp1174 if (getParser().getTok().is(AsmToken::Identifier)) { in MatchRegisterName()
1175 StringRef Name = getParser().getTok().getString(); in MatchRegisterName()
1213 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
1406 StringRef poss = Parser.getTok().getString(); in ParseDarwinExpression()
1417 return Error(Parser.getTok().getLoc(), "expected '('"); in ParseDarwinExpression()
1428 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseDarwinExpression()
1440 SMLoc S = Parser.getTok().getLoc(); in ParseOperand()
1441 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseOperand()
1501 S = Parser.getTok().getLoc(); in ParseOperand()
1505 return Error(Parser.getTok().getLoc(), "missing ')'"); in ParseOperand()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp501 if (!Parser.getTok().is(AsmToken::Colon)) in matchBundleOptions()
507 StringRef Option = Parser.getTok().getString(); in matchBundleOptions()
508 auto IDLoc = Parser.getTok().getLoc(); in matchBundleOptions()
846 AsmToken const &Token = getParser().getTok(); in splitIdentifier()
886 const AsmToken &MaybeDotNew = Lexer.getTok(); in parseOperand()
904 const AsmToken &MaybeDotNew = Lexer.getTok(); in parseOperand()
923 AsmToken const &Second = Lexer.getTok(); in isLabel()
965 StringRef RawString(Lexer.getTok().getString().data(), 0); in ParseRegister()
969 AsmToken const &Token = Lexer.getTok(); in ParseRegister()
975 bool Contigious = Lexer.getTok().getString().data() == in ParseRegister()
[all …]

12