/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 …]
|
D | ELFAsmParser.cpp | 227 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()
|
D | MCAsmParser.cpp | 32 const AsmToken &MCAsmParser::getTok() const { in getTok() function in MCAsmParser 33 return getLexer().getTok(); in getTok()
|
/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/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 …]
|
D | MCAsmParser.cpp | 32 const AsmToken &MCAsmParser::getTok() { in getTok() function in MCAsmParser 33 return getLexer().getTok(); in getTok()
|
D | ELFAsmParser.cpp | 228 SectionName = getTok().getIdentifier(); in ParseSectionName() 242 CurSize = getTok().getIdentifier().size() + 2; in ParseSectionName() 245 CurSize = getTok().getIdentifier().size(); in ParseSectionName() 255 if (PrevLoc.getPointer() + CurSize != getTok().getLoc().getPointer()) in ParseSectionName() 354 StringRef FlagsStr = getTok().getStringContents(); in ParseDirectiveSection() 500 StringRef Data = getTok().getIdentifier(); in ParseDirectiveIdent()
|
/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/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/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/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()
|
D | MCAsmParserExtension.h | 83 const AsmToken &getTok() { return getParser().getTok(); } in getTok() function
|
/external/llvm/lib/Target/Sparc/AsmParser/ |
D | SparcAsmParser.cpp | 595 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 …]
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 395 const AsmToken &TokPercent = Parser.getTok(); in ParseRegister() 400 const AsmToken &Tok = Parser.getTok(); in ParseRegister() 436 const AsmToken &IntTok = Parser.getTok(); in ParseRegister() 452 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister() 493 return ParseMemOperand(0, Parser.getTok().getLoc()); in ParseOperand() 515 SMLoc Start = Parser.getTok().getLoc(), End; in ParseOperand() 552 SMLoc LParenLoc = Parser.getTok().getLoc(); in ParseMemOperand() 609 Error(Parser.getTok().getLoc(), in ParseMemOperand() 616 SMLoc Loc = Parser.getTok().getLoc(); in ParseMemOperand() 633 SMLoc Loc = Parser.getTok().getLoc(); in ParseMemOperand() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/MC/MCParser/ |
D | MCAsmParserExtension.h | 71 const AsmToken &getTok() { return getParser().getTok(); } in getTok() function
|
/external/swiftshader/third_party/LLVM/tools/llvm-mc/ |
D | llvm-mc.cpp | 266 AsmToken Tok = Lexer.getTok(); in AsLexInput() 277 Out->os() << "identifier: " << Lexer.getTok().getString(); in AsLexInput() 280 Out->os() << "int: " << Lexer.getTok().getString(); in AsLexInput() 283 Out->os() << "real: " << Lexer.getTok().getString(); in AsLexInput() 286 Out->os() << "register: " << Lexer.getTok().getRegVal(); in AsLexInput() 289 Out->os() << "string: " << Lexer.getTok().getString(); in AsLexInput()
|
/external/llvm/lib/Target/Mips/AsmParser/ |
D | MipsAsmParser.cpp | 4135 Error(Parser.getTok().getLoc(), "unexpected token in operand"); in parseOperand() 4139 SMLoc S = Parser.getTok().getLoc(); in parseOperand() 4154 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand() 4177 SMLoc S = Parser.getTok().getLoc(); // Start location of the operand. in parseOperand() 4181 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand() 4253 const AsmToken &Tok = Parser.getTok(); // Get next token, operation. in parseRelocOperand() 4269 const AsmToken &nextTok = Parser.getTok(); in parseRelocOperand() 4360 S = Parser.getTok().getLoc(); in parseMemOperand() 4371 const AsmToken &Tok = Parser.getTok(); // Get the next token. in parseMemOperand() 4376 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseMemOperand() [all …]
|
/external/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 257 const AsmToken &Tok = Lexer.getTok(); in AsLexInput() 269 OS << "identifier: " << Lexer.getTok().getString(); in AsLexInput() 272 OS << "int: " << Lexer.getTok().getString(); in AsLexInput() 275 OS << "real: " << Lexer.getTok().getString(); in AsLexInput() 278 OS << "string: " << Lexer.getTok().getString(); in AsLexInput()
|
/external/llvm/lib/Target/PowerPC/AsmParser/ |
D | PPCAsmParser.cpp | 1316 const AsmToken &Tok = Parser.getTok(); in ParseRegister() 1507 StringRef poss = Parser.getTok().getString(); in ParseDarwinExpression() 1518 return Error(Parser.getTok().getLoc(), "expected '('"); in ParseDarwinExpression() 1529 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseDarwinExpression() 1541 SMLoc S = Parser.getTok().getLoc(); in ParseOperand() 1542 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseOperand() 1553 if (!MatchRegisterName(Parser.getTok(), RegNo, IntVal)) { in ParseOperand() 1568 if (!MatchRegisterName(Parser.getTok(), RegNo, IntVal)) { in ParseOperand() 1603 S = Parser.getTok().getLoc(); in ParseOperand() 1607 return Error(Parser.getTok().getLoc(), "missing ')'"); in ParseOperand() [all …]
|
/external/llvm/lib/Target/Hexagon/AsmParser/ |
D | HexagonAsmParser.cpp | 732 if (!Parser.getTok().is(AsmToken::Colon)) in matchBundleOptions() 735 StringRef Option = Parser.getTok().getString(); in matchBundleOptions() 1091 AsmToken const &Token = getParser().getTok(); in splitIdentifier() 1128 const AsmToken &MaybeDotNew = Lexer.getTok(); in parseOperand() 1144 const AsmToken &MaybeDotNew = Lexer.getTok(); in parseOperand() 1162 AsmToken const &Second = Lexer.getTok(); in isLabel() 1200 StringRef RawString(Lexer.getTok().getString().data(), 0); in ParseRegister() 1204 AsmToken const &Token = Lexer.getTok(); in ParseRegister() 1210 bool Contigious = Lexer.getTok().getString().data() == in ParseRegister() 1269 if (!getLexer().getTok().is(AsmToken::Colon)) in implicitExpressionLocation() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/MC/ |
D | MCTargetAsmLexer.h | 63 const AsmToken &getTok() { in getTok() function
|