Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DMCAsmParser.cpp34 const AsmToken &MCAsmParser::getTok() const { in getTok() function in MCAsmParser
35 return getLexer().getTok(); in getTok()
39 Loc = getTok().getLoc(); in parseTokenLoc()
44 if (getTok().getKind() != AsmToken::EndOfStatement) in parseEOL()
45 return Error(getTok().getLoc(), Msg); in parseEOL()
53 if (getTok().getKind() != T) in parseToken()
54 return Error(getTok().getLoc(), Msg); in parseToken()
60 if (getTok().getKind() != AsmToken::Integer) in parseIntToken()
62 V = getTok().getIntVal(); in parseIntToken()
68 bool Present = (getTok().getKind() == T); in parseOptionalToken()
[all …]
DAsmParser.cpp803 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
807 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
809 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
810 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
811 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
886 if (!hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
905 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
912 printError(getTok().getLoc(), "unassigned file number: " + in Run()
934 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
962 return Error(getTok().getLoc(), in checkForValidSection()
[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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp316 StringRef Name = Parser.getTok().getString(); in parseRegisterName()
346 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
352 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
369 AsmToken const &T = Parser.getTok(); in tryParseRegisterOperand()
377 SMLoc S = Parser.getTok().getLoc(); in tryParseExpression()
382 if ((Parser.getTok().getKind() == AsmToken::Plus || in tryParseExpression()
383 Parser.getTok().getKind() == AsmToken::Minus) && in tryParseExpression()
395 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in tryParseExpression()
404 SMLoc S = Parser.getTok().getLoc(); in tryParseRelocExpression()
432 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 …]
DELFAsmParser.cpp227 SectionName = getTok().getIdentifier(); in ParseSectionName()
241 CurSize = getTok().getIdentifier().size() + 2; in ParseSectionName()
244 CurSize = getTok().getIdentifier().size(); in ParseSectionName()
247 CurSize = getTok().getString().size(); in ParseSectionName()
254 if (PrevLoc.getPointer() + CurSize != getTok().getLoc().getPointer()) in ParseSectionName()
317 StringRef flagId = getTok().getIdentifier(); in parseSunStyleSectionFlags()
402 StringRef FlagsStr = getTok().getStringContents(); in ParseSectionArguments()
628 StringRef Data = getTok().getIdentifier(); in ParseDirectiveIdent()
676 StringRef Data = getTok().getIdentifier(); in ParseDirectiveVersion()
DMCAsmParser.cpp32 const AsmToken &MCAsmParser::getTok() const { in getTok() function in MCAsmParser
33 return getLexer().getTok(); in getTok()
/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp632 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister()
635 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
636 return Error(Parser.getTok().getLoc(), "register expected"); in parseRegister()
640 if (Parser.getTok().isNot(AsmToken::Identifier)) in parseRegister()
644 StringRef Name = Parser.getTok().getString(); in parseRegister()
667 Reg.EndLoc = Parser.getTok().getLoc(); in parseRegister()
697 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
714 if (Parser.getTok().is(AsmToken::Integer)) { in parseAnyRegister()
716 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAnyRegister()
729 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseAnyRegister()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp3349 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
3362 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
3419 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister()
3420 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister()
3458 if (Parser.getTok().is(AsmToken::Hash) || in tryParseShiftRegister()
3459 Parser.getTok().is(AsmToken::Dollar)) { in tryParseShiftRegister()
3461 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister()
3487 } else if (Parser.getTok().is(AsmToken::Identifier)) { in tryParseShiftRegister()
3488 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister()
3489 EndLoc = Parser.getTok().getEndLoc(); in tryParseShiftRegister()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp221 Lexer.getTok()); in Expect()
247 auto &Local = Lexer.getTok(); in ParseReg()
257 auto &StackRegTok = Lexer.getTok(); in ParseReg()
295 Lexer.getTok()); in ParseReg()
302 auto &Int = Lexer.getTok(); in ParseSingleInteger()
317 auto &LParen = Lexer.getTok(); in ParseOperandStartingWithInteger()
327 auto &RParen = Lexer.getTok(); in ParseOperandStartingWithInteger()
361 auto &Tok = Lexer.getTok(); in ParseInstruction()
369 auto &Id = Lexer.getTok(); in ParseInstruction()
373 return Error("Cannot parse symbol: ", Lexer.getTok()); in ParseInstruction()
[all …]
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h109 const AsmToken &getTok() const { in getTok() function
141 AsmToken::TokenKind getKind() const { return getTok().getKind(); } in getKind()
144 bool is(AsmToken::TokenKind K) const { return getTok().is(K); } in is()
147 bool isNot(AsmToken::TokenKind K) const { return getTok().isNot(K); } in isNot()
/external/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp55 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
1966 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
1991 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryMatchVectorRegister()
1996 StringRef Name = Parser.getTok().getString(); in tryMatchVectorRegister()
2026 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryParseSysCROperand()
2031 StringRef Tok = Parser.getTok().getIdentifier(); in tryParseSysCROperand()
2055 const AsmToken &Tok = Parser.getTok(); in tryParsePrefetch()
2104 const AsmToken &Tok = Parser.getTok(); in tryParsePSBHint()
2130 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrpLabel()
2181 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrLabel()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp1686 StringRef RegName = Parser.getTok().getString(); in ParseAMDGPURegister()
1844 return !Error(getParser().getTok().getLoc(), in updateGprCountSymbols()
1848 getParser().getTok().getLoc(), in updateGprCountSymbols()
1858 const auto &Tok = Parser.getTok(); in parseRegister()
1913 SMLoc S = Parser.getTok().getLoc(); in parseImm()
1973 Error(Parser.getTok().getLoc(), "invalid syntax, expected 'neg' modifier"); in parseRegOrImmWithFPInputMods()
1992 Parser.getTok().getString() == "neg") { in parseRegOrImmWithFPInputMods()
1994 Error(Parser.getTok().getLoc(), "expected register or immediate"); in parseRegOrImmWithFPInputMods()
2000 Error(Parser.getTok().getLoc(), "expected left paren after neg"); in parseRegOrImmWithFPInputMods()
2007 Parser.getTok().getString() == "abs") { in parseRegOrImmWithFPInputMods()
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp66 SMLoc Result = Parser.getTok().getLoc(); in consumeToken()
873 const AsmToken &PercentTok = Parser.getTok(); in ParseRegister()
881 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
933 const AsmToken &IntTok = Parser.getTok(); in ParseRegister()
949 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister()
951 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
956 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
974 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1265 const AsmToken &Tok = Parser.getTok(); in ParseIntelExpression()
1332 SMLoc Loc = getTok().getLoc(); in ParseIntelExpression()
[all …]
/external/swiftshader/third_party/llvm-7.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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp690 SMLoc Start = Parser.getTok().getLoc(); in parseRegister()
691 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseRegister()
698 RegNum = MatchRegisterName(Lexer.getTok().getIdentifier()); in parseRegister()
709 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
719 SMLoc Start = Parser.getTok().getLoc(); in parseIdentifier()
720 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier()
764 End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier()
777 SMLoc Start = Parser.getTok().getLoc(); in parseImmediate()
778 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseImmediate()
809 Error(Parser.getTok().getLoc(), "Can't parse ALU operator"); in parseAluOperator()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h178 const AsmToken &getTok() const { in getTok() function
210 AsmToken::TokenKind getKind() const { return getTok().getKind(); } in getKind()
213 bool is(AsmToken::TokenKind K) const { return getTok().is(K); } in is()
216 bool isNot(AsmToken::TokenKind K) const { return getTok().isNot(K); } in isNot()
/external/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp672 SMLoc Start = Parser.getTok().getLoc(); in parseRegister()
673 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseRegister()
680 RegNum = MatchRegisterName(Lexer.getTok().getIdentifier()); in parseRegister()
698 SMLoc Start = Parser.getTok().getLoc(); in parseIdentifier()
699 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier()
743 End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier()
756 SMLoc Start = Parser.getTok().getLoc(); in parseImmediate()
757 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseImmediate()
787 Error(Parser.getTok().getLoc(), "Can't parse ALU operator"); in parseAluOperator()
903 Error(Parser.getTok().getLoc(), in parseMemoryOperand()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp80 SMLoc Result = Parser.getTok().getLoc(); in consumeToken()
1068 const AsmToken &PercentTok = Parser.getTok(); in ParseRegister()
1076 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
1122 const AsmToken &IntTok = Parser.getTok(); in ParseRegister()
1138 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister()
1140 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1145 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1175 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1414 const AsmToken &Tok = Parser.getTok(); in ParseIntelExpression()
1494 SMLoc Loc = getTok().getLoc(); in ParseIntelExpression()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp624 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
669 Operands.push_back(SparcOperand::CreateToken("+", Parser.getTok().getLoc())); in ParseInstruction()
759 Parser.getTok().getLoc())); in parseOperand()
763 SMLoc S = Parser.getTok().getLoc(); in parseOperand()
769 if (!matchRegisterName(Parser.getTok(), RegNo, RegKind)) in parseOperand()
773 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer()-1); in parseOperand()
787 Parser.getTok().getLoc())); in parseOperand()
816 SMLoc S = Parser.getTok().getLoc(); in parseSparcAsmOperand()
817 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseSparcAsmOperand()
828 if (matchRegisterName(Parser.getTok(), RegNo, RegKind)) { in parseSparcAsmOperand()
[all …]
/external/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp595 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
642 Operands.push_back(SparcOperand::CreateToken("+", Parser.getTok().getLoc())); in ParseInstruction()
772 Parser.getTok().getLoc())); in parseOperand()
776 SMLoc S = Parser.getTok().getLoc(); in parseOperand()
782 if (!matchRegisterName(Parser.getTok(), RegNo, RegKind)) in parseOperand()
786 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer()-1); in parseOperand()
800 Parser.getTok().getLoc())); in parseOperand()
830 SMLoc S = Parser.getTok().getLoc(); in parseSparcAsmOperand()
831 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseSparcAsmOperand()
842 if (matchRegisterName(Parser.getTok(), RegNo, RegKind)) { in parseSparcAsmOperand()
[all …]

12