| /netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| H A D | TGParser.cpp | 523 if (Lex.getCode() == K) { in consume() 524 Lex.Lex(); in consume() 537 switch (Lex.getCode()) { in ParseObjectName() 575 if (Lex.getCode() != tgtok::Id) { in ParseClassID() 580 Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID() 582 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID() 583 if (MultiClasses[Lex.getCurStrVal()].get()) in ParseClassID() 585 Lex.getCurStrVal() + "'"); in ParseClassID() 590 Lex.Lex(); in ParseClassID() 600 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/ |
| H A D | LLParser.cpp | 66 Lex.Lex(); in Run() 70 Lex.getLoc(), in Run() 88 Lex.Lex(); in parseStandaloneConstantValue() 93 if (Lex.getKind() != lltok::Eof) in parseStandaloneConstantValue() 94 return error(Lex.getLoc(), "expected end of string"); in parseStandaloneConstantValue() 101 Lex.Lex(); in parseTypeAtBeginning() 104 SMLoc Start = Lex.getLoc(); in parseTypeAtBeginning() 108 SMLoc End = Lex.getLoc(); in parseTypeAtBeginning() 307 switch (Lex.getKind()) { in parseTargetDefinitions() 326 switch (Lex.getKind()) { in parseTopLevelEntities() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/ |
| H A D | HeaderIncludes.cpp | 46 Lexer Lex(SM.getMainFileID(), SM.getBufferOrFake(SM.getMainFileID()), SM, in getOffsetAfterTokenSequence() local 50 Lex.LexFromRawLexer(Tok); in getOffsetAfterTokenSequence() 51 return GetOffsetAfterSequence(SM, Lex, Tok); in getOffsetAfterTokenSequence() 59 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName() argument 61 bool Matched = Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeDirectiveWithName() 63 Tok.getRawIdentifier() == Name && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeDirectiveWithName() 67 Lex.LexFromRawLexer(Tok); in checkAndConsumeDirectiveWithName() 71 void skipComments(Lexer &Lex, Token &Tok) { in skipComments() argument 73 if (Lex.LexFromRawLexer(Tok)) in skipComments() 87 [&](std::function<unsigned(const SourceManager &SM, Lexer &Lex, in getOffsetAfterHeaderGuardsAndComments() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/MCParser/ |
| H A D | COFFAsmParser.cpp | 298 Lex(); in ParseDirectiveSymbolAttribute() 302 Lex(); in ParseDirectiveSymbolAttribute() 323 Lex(); in ParseSectionSwitch() 336 Lex(); in ParseSectionName() 366 Lex(); in ParseDirectiveSection() 372 Lex(); in ParseDirectiveSection() 382 Lex(); in ParseDirectiveSection() 395 Lex(); in ParseDirectiveSection() 424 Lex(); in ParseDirectiveDef() 436 Lex(); in ParseDirectiveScl() [all …]
|
| H A D | ELFAsmParser.cpp | 200 Lex(); in ParseDirectiveSymbolAttribute() 204 Lex(); in ParseDirectiveSymbolAttribute() 215 Lex(); in ParseSectionSwitch() 231 Lex(); in ParseDirectiveSize() 239 Lex(); in ParseDirectiveSize() 253 Lex(); in ParseSectionName() 266 Lex(); in ParseSectionName() 269 Lex(); in ParseSectionName() 272 Lex(); in ParseSectionName() 352 Lex(); // Eat the #. in parseSunStyleSectionFlags() [all …]
|
| H A D | DarwinAsmParser.cpp | 479 Lex(); in parseSectionSwitch() 517 Lex(); in parseDirectiveAltEntry() 533 Lex(); in parseDirectiveDesc() 542 Lex(); in parseDirectiveDesc() 579 Lex(); in parseDirectiveIndirectSymbol() 592 Lex(); in parseDirectiveDumpOrLoad() 597 Lex(); in parseDirectiveDumpOrLoad() 626 Lex(); in parseDirectiveLinkerOption() 645 Lex(); in parseDirectiveLsym() 654 Lex(); in parseDirectiveLsym() [all …]
|
| H A D | WasmAsmParser.cpp | 77 Lex(); in isNext() 119 Lex(); in parseGroup() 122 Lex(); in parseGroup() 127 Lex(); in parseGroup() 170 Lex(); in parseSectionDirective() 230 Lex(); in parseDirectiveType() 247 Lex(); in parseDirectiveType() 258 Lex(); in ParseDirectiveIdent() 261 Lex(); in ParseDirectiveIdent() 289 Lex(); in ParseDirectiveSymbolAttribute() [all …]
|
| H A D | MCAsmParser.cpp | 50 Lex(); in parseEOL() 57 Lex(); in parseEOL() 66 Lex(); in parseToken() 74 Lex(); in parseIntToken() 111 getLexer().Lex(); in Error() 118 Lex(); in addErrorSuffix()
|
| H A D | AsmParser.cpp | 242 const AsmToken &Lex() override; 720 Lexer.Lex(); in lexLeadingSpaces() 886 const AsmToken &AsmParser::Lex() { in Lex() function in AsmParser 898 const AsmToken *tok = &Lexer.Lex(); in Lex() 904 tok = &Lexer.Lex(); in Lex() 913 return Lex(); in Lex() 952 Lex(); in Run() 985 Lex(); in Run() 1072 Lexer.Lex(); in eatToEndOfStatement() 1076 Lexer.Lex(); in eatToEndOfStatement() [all …]
|
| H A D | MasmParser.cpp | 492 const AsmToken &Lex() override; 1110 const AsmToken &MasmParser::Lex() { in Lex() function in MasmParser 1122 const AsmToken *tok = &Lexer.Lex(); in Lex() 1140 tok = &Lexer.Lex(); in Lex() 1144 tok = &Lexer.Lex(); in Lex() 1147 tok = &Lexer.Lex(); in Lex() 1159 tok = &Lexer.Lex(); in Lex() 1166 Lexer.Lex(); in Lex() 1167 tok = &Lexer.Lex(); in Lex() 1177 return Lex(); in Lex() [all …]
|
| H A D | COFFMasmParser.cpp | 63 Lex(); in IgnoreDirective() 246 Lex(); in ParseSectionSwitch() 259 Lex(); in ParseDirectiveSegment() 290 Lex(); in ParseDirectiveSegmentEnd() 327 Lex(); in ParseDirectiveProc() 330 Lex(); in ParseDirectiveProc() 344 Lex(); in ParseDirectiveProc()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/AsmParser/ |
| H A D | LLParser.h | 89 LLLexer Lex; variable 166 : Context(Context), Lex(F, SM, Err, Context), M(M), Index(Index), in Context() 180 bool error(LocTy L, const Twine &Msg) const { return Lex.Error(L, Msg); } in error() 181 bool tokError(const Twine &Msg) const { return error(Lex.getLoc(), Msg); } in tokError() 201 if (Lex.getKind() != T) return false; in EatIfPresent() 202 Lex.Lex(); in EatIfPresent() 209 switch (Lex.getKind()) { in EatFastMathFlagsIfPresent() 210 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 211 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 212 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/ |
| H A D | ParsePragma.cpp | 837 PP.Lex(Tok); // pragma kind in HandlePragmaMSPragma() 854 PP.Lex(Tok); in HandlePragmaMSPragma() 855 PP.Lex(Tok); in HandlePragmaMSPragma() 865 PP.Lex(Tok); // ( in HandlePragmaMSSection() 884 PP.Lex(Tok); // , in HandlePragmaMSSection() 889 PP.Lex(Tok); // long/short in HandlePragmaMSSection() 919 PP.Lex(Tok); // Identifier in HandlePragmaMSSection() 929 PP.Lex(Tok); // ) in HandlePragmaMSSection() 935 PP.Lex(Tok); // eof in HandlePragmaMSSection() 946 PP.Lex(Tok); // ( in HandlePragmaMSSegment() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | script.cc | 199 class Lex class 217 Lex(const char* input_string, size_t input_length, int parsing_token) in Lex() function in gold::Lex 233 Lex::Mode 243 Lex(const Lex&); 244 Lex& operator=(const Lex&); 303 { return Lex::can_start_number(*c) ? c + 1 : NULL; } in can_continue_number() 338 const char* (Lex::*can_continue_fn)(const char*), 369 Lex::read_file(Input_file* input_file, std::string* contents) in read_file() 400 Lex::can_start_name(char c, char c2) in can_start_name() 441 Lex::can_continue_name(const char* c) in can_continue_name() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | script.cc | 199 class Lex class 217 Lex(const char* input_string, size_t input_length, int parsing_token) in Lex() function in gold::Lex 233 Lex::Mode 243 Lex(const Lex&); 244 Lex& operator=(const Lex&); 303 { return Lex::can_start_number(*c) ? c + 1 : NULL; } in can_continue_number() 338 const char* (Lex::*can_continue_fn)(const char*), 369 Lex::read_file(Input_file* input_file, std::string* contents) in read_file() 400 Lex::can_start_name(char c, char c2) in can_start_name() 441 Lex::can_continue_name(const char* c) in can_continue_name() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Format/ |
| H A D | FormatTokenLexer.cpp | 36 Lex.reset(new Lexer(ID, SourceMgr.getBufferOrFake(ID), SourceMgr, 38 Lex->SetKeepWhitespaceMode(true); 520 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral() 522 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral() 553 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral() 568 Lex->getBufferLocation() - CSharpStringLiteral->TokenText.size(); in handleCSharpVerbatimAndInterpolatedStrings() 577 for (; Offset != Lex->getBuffer().end(); ++Offset) { in handleCSharpVerbatimAndInterpolatedStrings() 580 if (Offset + 1 < Lex->getBuffer().end() && Offset[1] == '"') in handleCSharpVerbatimAndInterpolatedStrings() 589 if (Offset == Lex->getBuffer().end()) in handleCSharpVerbatimAndInterpolatedStrings() 612 SourceLocation loc = Offset < Lex->getBuffer().end() in handleCSharpVerbatimAndInterpolatedStrings() [all …]
|
| H A D | TokenAnalyzer.cpp | 69 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process() local 73 ArrayRef<FormatToken *> Toks(Lex.lex()); in process() 75 UnwrappedLineParser Parser(Style, Lex.getKeywords(), in process() 84 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process() 91 analyze(Annotator, AnnotatedLines, Lex); in process()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
| H A D | Pragma.cpp | 143 Self.Lex(Tok); in lex() 227 Lex(Tok); in Handle_Pragma() 231 Lex(Tok); in Handle_Pragma() 233 Lex(Tok); in Handle_Pragma() 240 Lex(Tok); in Handle_Pragma() 242 Lex(Tok); in Handle_Pragma() 336 return Lex(Tok); in Handle_Pragma() 396 return Lex(Tok); in HandleMicrosoft__pragma() 537 Lex(DependencyTok); in HandlePragmaDependency() 540 Lex(DependencyTok); in HandlePragmaDependency() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 370 Parser.Lex(); in parseRegister() 372 Parser.Lex(); // Eat high (odd) register and colon in parseRegister() 397 Parser.Lex(); // Eat register token. in tryParseRegisterOperand() 453 Parser.Lex(); in tryParseRelocExpression() 467 Parser.Lex(); in tryParseRelocExpression() 468 Parser.Lex(); // Eat modifier name and parenthesis in tryParseRelocExpression() 474 Parser.Lex(); // Eat gs modifier name in tryParseRelocExpression() 482 Parser.Lex(); in tryParseRelocExpression() 484 Parser.Lex(); // Eat the sign and parenthesis in tryParseRelocExpression() 494 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/CSKY/AsmParser/ |
| H A D | CSKYAsmParser.cpp | 403 getParser().Lex(); // Eat identifier token. in ParseRegister() 424 getLexer().Lex(); in parseRegister() 437 auto Tok = getParser().Lex(); // Eat '(' in parseBaseRegImm() 450 getParser().Lex(); // Eat ',' in parseBaseRegImm() 460 getParser().Lex(); // Eat '<<' in parseBaseRegImm() 479 getParser().Lex(); // Eat ')' in parseBaseRegImm() 578 getLexer().Lex(); // Eat '['. in parseConstpoolSymbol() 590 getLexer().Lex(); // Eat ']'. in parseConstpoolSymbol() 615 getLexer().Lex(); in ParseInstruction() 628 getParser().Lex(); // Consume the EndOfStatement. in ParseInstruction() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 319 getLexer().Lex(); // eat register token in tryParseRegister() 364 getLexer().Lex(); // Eat '$' in parseJccInstruction() 385 getParser().Lex(); // Consume the EndOfStatement. in parseJccInstruction() 412 getLexer().Lex(); // Eat ',' in ParseInstruction() 423 getParser().Lex(); // Consume the EndOfStatement. in ParseInstruction() 475 getLexer().Lex(); // Eat '(' in ParseOperand() 482 getLexer().Lex(); // Eat ')' in ParseOperand() 493 getLexer().Lex(); // Eat '&' in ParseOperand() 506 getLexer().Lex(); // Eat '@' in ParseOperand() 513 getLexer().Lex(); // Eat '+' in ParseOperand() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmParser.cpp | 329 Parser.Lex(); in isNext() 346 Parser.Lex(); in expectIdent() 356 Parser.Lex(); in parseRegTypeList() 371 Parser.Lex(); in parseSingleInteger() 384 Parser.Lex(); in parseSingleFloat() 406 Parser.Lex(); in parseSpecialFloatMaybe() 461 Parser.Lex(); in parseLimits() 471 Parser.Lex(); in parseLimits() 490 Parser.Lex(); in parseFunctionTableOperand() 528 Parser.Lex(); in ParseInstruction() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 111 Parser.Lex(); in consumeToken() 1485 Parser.Lex(); // Eat percent token. in ParseRegister() 1506 Parser.Lex(); // Eat 'st' in ParseRegister() 1513 Parser.Lex(); in ParseRegister() 1536 Parser.Lex(); in ParseRegister() 1543 Parser.Lex(); // Eat ')' in ParseRegister() 1556 Parser.Lex(); // Eat identifier token. in ParseRegister() 1881 Lex(); in ParseIntelExpression() 2039 Lex(); // eat type in ParseIntelExpression() 2198 getLexer().Lex(); in ParseIntelInlineAsmIdentifier() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 105 PP.Lex(PPTok); in RewriteMacrosInInput() 118 PP.Lex(PPTok); in RewriteMacrosInInput() 159 PP.Lex(PPTok); in RewriteMacrosInInput() 198 PP.Lex(PPTok); in RewriteMacrosInInput()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/AsmParser/ |
| H A D | M68kAsmParser.cpp | 540 PercentToken = Lex(); in parseRegister() 560 Parser.Lex(); in parseRegister() 601 Parser.Lex(); in parseImm() 636 Parser.Lex(); in parseMemOp() 657 Parser.Lex(); in parseMemOp() 674 Parser.Lex(); in parseMemOp() 690 Parser.Lex(); in parseMemOp() 713 Parser.Lex(); in parseMemOp() 717 Parser.Lex(); in parseMemOp() 748 Parser.Lex(); in eatComma() [all …]
|