| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TGParser.cpp | 654 if (Lex.getCode() == K) { in consume() 655 Lex.Lex(); in consume() 668 switch (Lex.getCode()) { in ParseObjectName() 707 if (Lex.getCode() != tgtok::Id) { in ParseClassID() 712 const Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID() 714 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID() 715 if (MultiClasses[Lex.getCurStrVal()].get()) in ParseClassID() 717 Lex.getCurStrVal() + "'"); in ParseClassID() 721 Result->appendReferenceLoc(Lex.getLocRange()); in ParseClassID() 724 Lex.Lex(); in ParseClassID() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLParser.cpp | 78 Lex.Lex(); in Run() 82 Lex.getLoc(), in Run() 97 Lex.Lex(); in parseStandaloneConstantValue() 102 if (Lex.getKind() != lltok::Eof) in parseStandaloneConstantValue() 103 return error(Lex.getLoc(), "expected end of string"); in parseStandaloneConstantValue() 110 Lex.Lex(); in parseTypeAtBeginning() 113 SMLoc Start = Lex.getLoc(); in parseTypeAtBeginning() 117 SMLoc End = Lex.getLoc(); in parseTypeAtBeginning() 126 Lex.Lex(); in parseDIExpressionBodyAtBeginning() 129 SMLoc Start = Lex.getLoc(); in parseDIExpressionBodyAtBeginning() [all …]
|
| /freebsd/contrib/llvm-project/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 …]
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
| H A D | COFFAsmParser.cpp | 308 Lex(); in parseDirectiveSymbolAttribute() 312 Lex(); in parseDirectiveSymbolAttribute() 333 Lex(); in parseSectionSwitch() 346 Lex(); in parseSectionName() 381 Lex(); in parseSectionArguments() 387 Lex(); in parseSectionArguments() 398 Lex(); in parseSectionArguments() 411 Lex(); in parseSectionArguments() 458 Lex(); in parseDirectiveDef() 470 Lex(); in parseDirectiveScl() [all …]
|
| H A D | ELFAsmParser.cpp | 176 Lex(); in parseDirectiveSymbolAttribute() 180 Lex(); in parseDirectiveSymbolAttribute() 191 Lex(); in parseSectionSwitch() 206 Lex(); in parseDirectiveSize() 214 Lex(); in parseDirectiveSize() 228 Lex(); in parseSectionName() 241 Lex(); in parseSectionName() 244 Lex(); in parseSectionName() 247 Lex(); in parseSectionName() 347 Lex(); // Eat the #. in parseSunStyleSectionFlags() [all …]
|
| H A D | MCAsmParser.cpp | 55 Lex(); in parseEOL() 62 Lex(); in parseEOL() 71 Lex(); in parseToken() 79 Lex(); in parseIntToken() 115 getLexer().Lex(); in Error() 122 Lex(); in addErrorSuffix() 157 Lex(); // Eat the Tag in parseGNUAttribute() 158 Lex(); // Eat the comma in parseGNUAttribute() 162 Lex(); // Eat the IntegerValue in parseGNUAttribute()
|
| H A D | DarwinAsmParser.cpp | 479 Lex(); in parseSectionSwitch() 514 Lex(); in parseDirectiveAltEntry() 527 Lex(); in parseDirectiveDesc() 536 Lex(); in parseDirectiveDesc() 572 Lex(); in parseDirectiveIndirectSymbol() 585 Lex(); in parseDirectiveDumpOrLoad() 590 Lex(); in parseDirectiveDumpOrLoad() 619 Lex(); in parseDirectiveLinkerOption() 635 Lex(); in parseDirectiveLsym() 644 Lex(); in parseDirectiveLsym() [all …]
|
| H A D | WasmAsmParser.cpp | 80 Lex(); in isNext() 131 Lex(); in parseGroup() 134 Lex(); in parseGroup() 139 Lex(); in parseGroup() 182 Lex(); in parseSectionDirective() 245 Lex(); in parseDirectiveType() 262 Lex(); in parseDirectiveType() 273 Lex(); in ParseDirectiveIdent() 276 Lex(); in ParseDirectiveIdent() 303 Lex(); in ParseDirectiveSymbolAttribute() [all …]
|
| H A D | MCAsmParserExtension.cpp | 35 Lex(); in parseDirectiveCGProfile() 44 Lex(); in parseDirectiveCGProfile() 66 Lex(); in maybeParseUniqueID() 74 Lex(); in maybeParseUniqueID()
|
| H A D | AsmParser.cpp | 237 const AsmToken &Lex() override; 721 Lexer.Lex(); in lexLeadingSpaces() 893 const AsmToken &AsmParser::Lex() { in Lex() function in AsmParser 905 const AsmToken *tok = &Lexer.Lex(); in Lex() 911 tok = &Lexer.Lex(); in Lex() 920 return Lex(); in Lex() 952 Lex(); in Run() 985 Lex(); in Run() 1073 Lexer.Lex(); in eatToEndOfStatement() 1077 Lexer.Lex(); in eatToEndOfStatement() [all …]
|
| H A D | MasmParser.cpp | 493 const AsmToken &Lex(ExpandKind ExpandNextToken); 494 const AsmToken &Lex() override { return Lex(ExpandMacros); } in Lex() function in __anon60b61cd60111::MasmParser 1075 Lexer.Lex(); in expandMacros() 1078 Lexer.Lex(); in expandMacros() 1116 Lexer.Lex(); in expandMacros() 1120 const AsmToken &MasmParser::Lex(ExpandKind ExpandNextToken) { in Lex() function in MasmParser 1134 const AsmToken *tok = &Lexer.Lex(); in Lex() 1157 tok = &Lexer.Lex(); in Lex() 1164 Lexer.Lex(); in Lex() 1165 tok = &Lexer.Lex(); in Lex() [all …]
|
| H A D | COFFMasmParser.cpp | 58 Lex(); in IgnoreDirective() 226 Lex(); in parseSectionSwitch() 241 Lex(); in parseDirectiveSegment() 272 Lex(); in parseDirectiveSegment() 310 Lex(); in parseDirectiveSegment() 379 Lex(); in parseDirectiveSegmentEnd() 455 Lex(); in parseDirectiveProc() 458 Lex(); in parseDirectiveProc() 473 Lex(); in parseDirectiveProc()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | LLParser.h | 114 LLLexer Lex; variable 194 Lex(F, SM, Err, Context), M(M), Index(Index), Slots(Slots), in Context() 213 bool error(LocTy L, const Twine &Msg) { return Lex.ParseError(L, Msg); } in error() 214 bool tokError(const Twine &Msg) { return error(Lex.getLoc(), Msg); } in tokError() 236 if (Lex.getKind() != T) return false; in EatIfPresent() 237 Lex.Lex(); in EatIfPresent() 244 switch (Lex.getKind()) { in EatFastMathFlagsIfPresent() 245 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 246 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 247 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParsePragma.cpp | 316 PP.Lex(Tok); in HandlePragma() 322 PP.Lex(Tok); // Consume the l_paren. in HandlePragma() 331 PP.Lex(Tok); in HandlePragma() 334 PP.Lex(Tok); in HandlePragma() 344 PP.Lex(Tok); // Consume the r_paren. in HandlePragma() 1027 PP.Lex(Tok); // pragma kind in HandlePragmaMSPragma() 1050 PP.Lex(Tok); in HandlePragmaMSPragma() 1051 PP.Lex(Tok); in HandlePragmaMSPragma() 1061 PP.Lex(Tok); // ( in HandlePragmaMSSection() 1080 PP.Lex(Tok); // , in HandlePragmaMSSection() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | Pragma.cpp | 140 Self.Lex(Tok); in lex() 224 Lex(Tok); in Handle_Pragma() 228 Lex(Tok); in Handle_Pragma() 230 Lex(Tok); in Handle_Pragma() 237 Lex(Tok); in Handle_Pragma() 239 Lex(Tok); in Handle_Pragma() 299 return Lex(Tok); in Handle_Pragma() 409 return Lex(Tok); in HandleMicrosoft__pragma() 553 Lex(DependencyTok); in HandlePragmaDependency() 556 Lex(DependencyTok); in HandlePragmaDependency() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | FormatTokenLexer.cpp | 39 Lex.reset(new Lexer(ID, SourceMgr.getBufferOrFake(ID), SourceMgr, LangOpts)); 40 Lex->SetKeepWhitespaceMode(true); 705 const auto *S = Lex->getBufferLocation(); in tryParseJavaTextBlock() 706 const auto *End = Lex->getBuffer().end(); in tryParseJavaTextBlock() 728 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(S))); in tryParseJavaTextBlock() 754 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral() 756 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral() 787 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral() 872 const char *StrBegin = Lex->getBufferLocation() - TokenText.size(); in handleCSharpVerbatimAndInterpolatedStrings() 876 const auto End = Lex->getBuffer().end(); in handleCSharpVerbatimAndInterpolatedStrings() [all …]
|
| H A D | TokenAnalyzer.cpp | 102 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process() local 105 ArrayRef<FormatToken *> Toks(Lex.lex()); in process() 107 UnwrappedLineParser Parser(Env.getSourceManager(), Style, Lex.getKeywords(), in process() 119 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process() 127 analyze(Annotator, AnnotatedLines, Lex); in process()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 387 Parser.Lex(); in parseRegister() 389 Parser.Lex(); // Eat high (odd) register and colon in parseRegister() 419 Parser.Lex(); // Eat register token. in tryParseRegisterOperand() 482 Parser.Lex(); in tryParseRelocExpression() 483 Parser.Lex(); // Eat modifier name and parenthesis in tryParseRelocExpression() 489 Parser.Lex(); // Eat gs modifier name in tryParseRelocExpression() 497 Parser.Lex(); in tryParseRelocExpression() 499 Parser.Lex(); // Eat the sign and parenthesis in tryParseRelocExpression() 509 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression() 514 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 125 Parser.Lex(); in consumeToken() 1539 Parser.Lex(); // Eat percent token. in ParseRegister() 1560 Parser.Lex(); // Eat 'st' in ParseRegister() 1567 Parser.Lex(); in ParseRegister() 1590 Parser.Lex(); in ParseRegister() 1597 Parser.Lex(); // Eat ')' in ParseRegister() 1610 Parser.Lex(); // Eat identifier token. in ParseRegister() 1941 Lex(); in ParseIntelExpression() 2099 Lex(); // eat type in ParseIntelExpression() 2264 getLexer().Lex(); in ParseIntelInlineAsmIdentifier() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
| H A D | SparcAsmParser.cpp | 950 Parser.Lex(); in tryParseRegister() 954 Parser.Lex(); in tryParseRegister() 1013 Parser.Lex(); // Eat the comma or plus. in parseInstruction() 1025 Parser.Lex(); // Consume the EndOfStatement. in parseInstruction() 1165 getParser().Lex(); // Eat '%' in parseTailRelocSym() 1181 Parser.Lex(); // Eat the identifier. in parseTailRelocSym() 1185 getParser().Lex(); // Eat '(' in parseTailRelocSym() 1209 Parser.Lex(); // Eat the '#'. in parseMembarTag() 1220 Parser.Lex(); // Eat the identifier token. in parseMembarTag() 1228 Parser.Lex(); // Eat the '|'. in parseMembarTag() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 104 PP.Lex(PPTok); in RewriteMacrosInInput() 117 PP.Lex(PPTok); in RewriteMacrosInInput() 158 PP.Lex(PPTok); in RewriteMacrosInInput() 197 PP.Lex(PPTok); in RewriteMacrosInInput()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmParser.cpp | 398 Parser.Lex(); in isNext() 415 Parser.Lex(); in expectIdent() 425 Parser.Lex(); in parseRegTypeList() 439 Parser.Lex(); in parseSingleInteger() 451 Parser.Lex(); in parseSingleFloat() 472 Parser.Lex(); in parseSpecialFloatMaybe() 532 Parser.Lex(); in parseLimits() 542 Parser.Lex(); in parseLimits() 562 Parser.Lex(); in parseFunctionTableOperand() 596 Parser.Lex(); in parseInstruction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 375 getParser().Lex(); // Eat identifier token. in tryParseRegister() 389 getLexer().Lex(); in parseOperandAsOperator() 419 getLexer().Lex(); in parseOperandAsOperator() 435 getLexer().Lex(); in parseOperandAsOperator() 461 getLexer().Lex(); in parseRegister() 516 getLexer().Lex(); in parseInstruction() 536 getParser().Lex(); in parseInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/ |
| H A D | MipsAsmParser.cpp | 6509 Parser.Lex(); in parseMemOperand() 6549 Parser.Lex(); in parseMemOperand() 6553 Parser.Lex(); in parseMemOperand() 6557 Parser.Lex(); in parseMemOperand() 6561 Parser.Lex(); in parseMemOperand() 6565 Parser.Lex(); in parseMemOperand() 6569 Parser.Lex(); in parseMemOperand() 6573 Parser.Lex(); in parseMemOperand() 6577 Parser.Lex(); in parseMemOperand() 6581 Parser.Lex(); in parseMemOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
| H A D | VEAsmParser.cpp | 848 Parser.Lex(); in tryParseRegister() 855 Parser.Lex(); in tryParseRegister() 997 Parser.Lex(); // Eat the comma. in parseInstruction() 1009 Parser.Lex(); // Consume the EndOfStatement. in parseInstruction() 1228 Parser.Lex(); // Eat the ( in parseMEMOperand() 1259 Parser.Lex(); // Eat the ) in parseMEMOperand() 1266 Parser.Lex(); // Eat the , in parseMEMOperand() 1277 Parser.Lex(); // Eat the ) in parseMEMOperand() 1346 Parser.Lex(); // Eat the ( in parseMEMAsOperand() 1357 Parser.Lex(); // Eat the , in parseMEMAsOperand() [all …]
|