Home
last modified time | relevance | path

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

/external/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp456 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister()
459 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
460 return Error(Parser.getTok().getLoc(), "register expected"); in parseRegister()
464 if (Parser.getTok().isNot(AsmToken::Identifier)) in parseRegister()
468 StringRef Name = Parser.getTok().getString(); in parseRegister()
487 Reg.EndLoc = Parser.getTok().getLoc(); in parseRegister()
515 if (Parser.getTok().isNot(AsmToken::Percent)) in parseRegister()
572 return Error(Parser.getTok().getLoc(), "unexpected token in address"); in parseAddress()
583 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAddress()
609 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseAddress()
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp2979 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
2993 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
3050 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister()
3051 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister()
3089 if (Parser.getTok().is(AsmToken::Hash) || in tryParseShiftRegister()
3090 Parser.getTok().is(AsmToken::Dollar)) { in tryParseShiftRegister()
3092 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister()
3118 } else if (Parser.getTok().is(AsmToken::Identifier)) { in tryParseShiftRegister()
3119 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister()
3120 EndLoc = Parser.getTok().getEndLoc(); in tryParseShiftRegister()
[all …]
/external/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp55 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
1863 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
1888 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryMatchVectorRegister()
1893 StringRef Name = Parser.getTok().getString(); in tryMatchVectorRegister()
1923 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryParseSysCROperand()
1928 StringRef Tok = Parser.getTok().getIdentifier(); in tryParseSysCROperand()
1952 const AsmToken &Tok = Parser.getTok(); in tryParsePrefetch()
2010 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrpLabel()
2061 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrLabel()
2081 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseFPImm()
[all …]
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp708 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
713 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
718 const char *Start = getTok().getLoc().getPointer(); in parseStringToComma()
724 const char *End = getTok().getLoc().getPointer(); in parseStringToComma()
738 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
753 EndLoc = Lexer.getTok().getEndLoc(); in parseBracketExpr()
820 return Error(Lexer.getTok().getLoc(), in parsePrimaryExpr()
865 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
866 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
868 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
[all …]
DMCAsmParser.cpp32 const AsmToken &MCAsmParser::getTok() const { in getTok() function in MCAsmParser
33 return getLexer().getTok(); in getTok()
DELFAsmParser.cpp236 SectionName = getTok().getIdentifier(); in ParseSectionName()
249 CurSize = getTok().getIdentifier().size() + 2; in ParseSectionName()
252 CurSize = getTok().getIdentifier().size(); in ParseSectionName()
262 if (PrevLoc.getPointer() + CurSize != getTok().getLoc().getPointer()) in ParseSectionName()
325 StringRef flagId = getTok().getIdentifier(); in parseSunStyleSectionFlags()
410 StringRef FlagsStr = getTok().getStringContents(); in ParseSectionArguments()
630 StringRef Data = getTok().getIdentifier(); in ParseDirectiveIdent()
678 StringRef Data = getTok().getIdentifier(); in ParseDirectiveVersion()
DDarwinAsmParser.cpp840 SMLoc Loc = getParser().getTok().getLoc(); in parseDirectiveDataRegion()
878 Major = getLexer().getTok().getIntVal(); in parseVersionMin()
888 Minor = getLexer().getTok().getIntVal(); in parseVersionMin()
899 Update = getLexer().getTok().getIntVal(); in parseVersionMin()
DCOFFAsmParser.cpp317 SectionName = getTok().getIdentifier(); in ParseSectionName()
352 StringRef FlagsStr = getTok().getStringContents(); in ParseDirectiveSection()
473 StringRef TypeId = getTok().getIdentifier(); in parseCOMDATType()
/external/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp428 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
595 Parser.getTok().getLoc())); in parseOperand()
599 SMLoc S = Parser.getTok().getLoc(); in parseOperand()
605 if (!matchRegisterName(Parser.getTok(), RegNo, RegKind)) in parseOperand()
609 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer()-1); in parseOperand()
623 Parser.getTok().getLoc())); in parseOperand()
644 SMLoc S = Parser.getTok().getLoc(); in parseSparcAsmOperand()
645 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseSparcAsmOperand()
656 if (matchRegisterName(Parser.getTok(), RegNo, RegKind)) { in parseSparcAsmOperand()
657 StringRef name = Parser.getTok().getString(); in parseSparcAsmOperand()
[all …]
/external/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp2436 Error(Parser.getTok().getLoc(), "unexpected token in operand"); in parseOperand()
2440 SMLoc S = Parser.getTok().getLoc(); in parseOperand()
2455 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand()
2478 SMLoc S = Parser.getTok().getLoc(); // Start location of the operand. in parseOperand()
2482 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand()
2576 const AsmToken &Tok = Parser.getTok(); // Get next token, operation. in parseRelocOperand()
2592 const AsmToken &nextTok = Parser.getTok(); in parseRelocOperand()
2680 S = Parser.getTok().getLoc(); in parseMemOperand()
2691 const AsmToken &Tok = Parser.getTok(); // Get the next token. in parseMemOperand()
2696 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseMemOperand()
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp66 SMLoc Result = Parser.getTok().getLoc(); in consumeToken()
862 const AsmToken &PercentTok = Parser.getTok(); in ParseRegister()
870 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
911 const AsmToken &IntTok = Parser.getTok(); in ParseRegister()
927 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister()
929 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
934 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
952 EndLoc = Parser.getTok().getEndLoc(); in ParseRegister()
1120 const AsmToken &Tok = Parser.getTok(); in ParseIntelExpression()
1186 SMLoc Loc = getTok().getLoc(); in ParseIntelExpression()
[all …]
/external/llvm/lib/Target/R600/AsmParser/
DAMDGPUAsmParser.cpp428 const AsmToken Tok = Parser.getTok(); in ParseRegister()
587 SMLoc S = Parser.getTok().getLoc(); in parseOperand()
606 SMLoc S = Parser.getTok().getLoc(); in parseOperand()
658 Operands.push_back(AMDGPUOperand::CreateToken(Parser.getTok().getString(), in parseOperand()
728 StringRef OffsetName = Parser.getTok().getString(); in parseIntWithPrefix()
752 SMLoc S = Parser.getTok().getLoc(); in parseIntWithPrefix()
767 SMLoc S = Parser.getTok().getLoc(); in parseNamedBit()
774 StringRef Tok = Parser.getTok().getString(); in parseNamedBit()
810 SMLoc S = Parser.getTok().getLoc(); in parseOptionalOps()
867 SMLoc S = Parser.getTok().getLoc(); in parseDSOffsetOptional()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmParserExtension.h80 const AsmToken &getTok() { return getParser().getTok(); } in getTok() function
DMCAsmLexer.h160 const AsmToken &getTok() const { in getTok() function
DMCAsmParser.h144 const AsmToken &getTok() const;
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp248 AsmToken Tok = Lexer.getTok(); in AsLexInput()
260 OS << "identifier: " << Lexer.getTok().getString(); in AsLexInput()
263 OS << "int: " << Lexer.getTok().getString(); in AsLexInput()
266 OS << "real: " << Lexer.getTok().getString(); in AsLexInput()
269 OS << "string: " << Lexer.getTok().getString(); in AsLexInput()
/external/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp1205 const AsmToken &Tok = Parser.getTok(); in ParseRegister()
1396 StringRef poss = Parser.getTok().getString(); in ParseDarwinExpression()
1407 return Error(Parser.getTok().getLoc(), "expected '('"); in ParseDarwinExpression()
1418 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseDarwinExpression()
1430 SMLoc S = Parser.getTok().getLoc(); in ParseOperand()
1431 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseOperand()
1442 if (!MatchRegisterName(Parser.getTok(), RegNo, IntVal)) { in ParseOperand()
1457 if (!MatchRegisterName(Parser.getTok(), RegNo, IntVal)) { in ParseOperand()
1492 S = Parser.getTok().getLoc(); in ParseOperand()
1496 return Error(Parser.getTok().getLoc(), "missing ')'"); in ParseOperand()
[all …]
/external/clang/tools/libclang/
DCIndex.cpp5551 CXToken &getTok(unsigned Idx) { in getTok() function in __anonc9d3eafc0711::AnnotateTokensWorker
5555 const CXToken &getTok(unsigned Idx) const { in getTok() function in __anonc9d3eafc0711::AnnotateTokensWorker
5563 return SourceLocation::getFromRawEncoding(getTok(tokI).int_data[1]); in GetTokenLoc()
5566 return getTok(tokI).int_data[3] != 0; in isFunctionMacroToken()
5569 return SourceLocation::getFromRawEncoding(getTok(tokI).int_data[3]); in getFunctionMacroTokenLoc()
5936 CXToken &getTok(unsigned Idx) { in getTok() function in __anonc9d3eafc0811::MarkMacroArgTokensVisitor
5940 const CXToken &getTok(unsigned Idx) const { in getTok() function in __anonc9d3eafc0811::MarkMacroArgTokensVisitor
5946 return SourceLocation::getFromRawEncoding(getTok(tokI).int_data[1]); in getTokenLoc()
5952 getTok(tokI).int_data[3] = loc.getRawEncoding(); in setFunctionMacroTokenLoc()