/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/ |
D | MCAsmParser.cpp | 34 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 …]
|
D | AsmParser.cpp | 803 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/ |
D | ct.c | 36 getTok(const char **pp) in getTok() function 122 p = getTok(&next); in getXMLCharset() 127 p = getTok(&next); in getXMLCharset() 130 p = getTok(&next); in getXMLCharset() 133 p = getTok(&next); in getXMLCharset() 136 p = getTok(&next); in getXMLCharset() 138 p = getTok(&next); in getXMLCharset() 140 p = getTok(&next); in getXMLCharset() 168 p = getTok(&next); in getXMLCharset()
|
D | xmlmime.c | 37 getTok(const char **pp) in getTok() function 126 p = getTok(&next); in getXMLCharset() 131 p = getTok(&next); in getXMLCharset() 134 p = getTok(&next); in getXMLCharset() 139 p = getTok(&next); in getXMLCharset() 142 p = getTok(&next); in getXMLCharset() 144 p = getTok(&next); in getXMLCharset() 146 p = getTok(&next); in getXMLCharset() 175 p = getTok(&next); in getXMLCharset()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/AsmParser/ |
D | AVRAsmParser.cpp | 316 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/swiftshader/third_party/LLVM/lib/Target/ARM/AsmParser/ |
D | ARMAsmParser.cpp | 1801 const AsmToken &Tok = Parser.getTok(); in tryParseRegister() 1825 if (Parser.getTok().is(AsmToken::LBrac)) { in tryParseRegister() 1826 SMLoc SIdx = Parser.getTok().getLoc(); in tryParseRegister() 1830 SMLoc ExprLoc = Parser.getTok().getLoc(); in tryParseRegister() 1839 SMLoc E = Parser.getTok().getLoc(); in tryParseRegister() 1840 if (Parser.getTok().isNot(AsmToken::RBrac)) { in tryParseRegister() 1863 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister() 1864 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister() 1898 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseShiftRegister() 1900 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister() [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 255 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/llvm/lib/Target/ARM/AsmParser/ |
D | ARMAsmParser.cpp | 3021 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/lib/Target/SystemZ/AsmParser/ |
D | SystemZAsmParser.cpp | 499 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/AsmParser/ |
D | SystemZAsmParser.cpp | 632 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/ |
D | ARMAsmParser.cpp | 3349 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/ |
D | WebAssemblyAsmParser.cpp | 221 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/ |
D | AMDGPUAsmParser.cpp | 829 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/lib/MC/MCParser/ |
D | AsmParser.cpp | 540 const char *Start = getTok().getLoc().getPointer(); in ParseStringToEndOfStatement() 546 const char *End = getTok().getLoc().getPointer(); in ParseStringToEndOfStatement() 635 SMLoc Loc = getTok().getLoc(); in ParsePrimaryExpr() 636 int64_t IntVal = getTok().getIntVal(); in ParsePrimaryExpr() 642 StringRef IDVal = getTok().getString(); in ParsePrimaryExpr() 657 APFloat RealVal(APFloat::IEEEdouble, getTok().getString()); in ParsePrimaryExpr() 722 getTok().getIdentifier() + "' (already modified)"); in ApplyModifierToExpr() 782 MCSymbolRefExpr::getVariantKindForName(getTok().getIdentifier()); in ParseExpression() 784 return TokError("invalid variant '" + getTok().getIdentifier() + "'"); in ParseExpression() 788 return TokError("invalid modifier '" + getTok().getIdentifier() + in ParseExpression() [all …]
|
/external/llvm/lib/Target/AArch64/AsmParser/ |
D | AArch64AsmParser.cpp | 55 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/include/llvm/MC/MCParser/ |
D | MCAsmLexer.h | 109 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/AsmParser/ |
D | AMDGPUAsmParser.cpp | 1686 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/ |
D | X86AsmParser.cpp | 66 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/Lanai/AsmParser/ |
D | LanaiAsmParser.cpp | 690 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/AsmParser/ |
D | BPFAsmParser.cpp | 32 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/lib/Target/MBlaze/AsmParser/ |
D | MBlazeAsmParser.cpp | 394 SMLoc S = Parser.getTok().getLoc(); in ParseRegister() 395 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseRegister() 400 RegNo = MatchRegisterName(getLexer().getTok().getIdentifier()); in ParseRegister() 421 SMLoc S = Parser.getTok().getLoc(); in ParseFsl() 422 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseFsl() 427 unsigned reg = MatchFslRegister(getLexer().getTok().getIdentifier()); in ParseFsl() 438 SMLoc S = Parser.getTok().getLoc(); in ParseImmediate() 439 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseImmediate() 474 Error(Parser.getTok().getLoc(), "unknown operand"); in ParseOperand()
|
/external/llvm/lib/Target/Lanai/AsmParser/ |
D | LanaiAsmParser.cpp | 672 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/ |
D | X86AsmParser.cpp | 80 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/llvm/include/llvm/MC/MCParser/ |
D | MCAsmLexer.h | 178 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/AsmParser/ |
D | SparcAsmParser.cpp | 624 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 …]
|