/external/llvm/lib/TableGen/ |
D | TGParser.cpp | 378 switch (Lex.getCode()) { in ParseObjectName() 413 if (Lex.getCode() != tgtok::Id) { in ParseClassID() 418 Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID() 420 TokError("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID() 422 Lex.Lex(); in ParseClassID() 432 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID() 437 MultiClass *Result = MultiClasses[Lex.getCurStrVal()].get(); in ParseMultiClassID() 439 TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'"); in ParseMultiClassID() 441 Lex.Lex(); in ParseMultiClassID() 454 Result.RefRange.Start = Lex.getLoc(); in ParseSubClassReference() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | TGParser.cpp | 497 switch (Lex.getCode()) { in ParseObjectName() 535 if (Lex.getCode() != tgtok::Id) { in ParseClassID() 540 Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID() 542 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID() 543 if (MultiClasses[Lex.getCurStrVal()].get()) in ParseClassID() 545 Lex.getCurStrVal() + "'"); in ParseClassID() 550 Lex.Lex(); in ParseClassID() 560 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID() 565 MultiClass *Result = MultiClasses[Lex.getCurStrVal()].get(); in ParseMultiClassID() 567 TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'"); in ParseMultiClassID() [all …]
|
/external/llvm-project/llvm/lib/TableGen/ |
D | TGParser.cpp | 492 if (Lex.getCode() == K) { in consume() 493 Lex.Lex(); in consume() 506 switch (Lex.getCode()) { in ParseObjectName() 544 if (Lex.getCode() != tgtok::Id) { in ParseClassID() 549 Record *Result = Records.getClass(Lex.getCurStrVal()); in ParseClassID() 551 std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'"); in ParseClassID() 552 if (MultiClasses[Lex.getCurStrVal()].get()) in ParseClassID() 554 Lex.getCurStrVal() + "'"); in ParseClassID() 559 Lex.Lex(); in ParseClassID() 569 if (Lex.getCode() != tgtok::Id) { in ParseMultiClassID() [all …]
|
/external/llvm-project/llvm/lib/AsmParser/ |
D | LLParser.cpp | 65 Lex.Lex(); in Run() 69 Lex.getLoc(), in Run() 87 Lex.Lex(); in parseStandaloneConstantValue() 92 if (Lex.getKind() != lltok::Eof) in parseStandaloneConstantValue() 93 return error(Lex.getLoc(), "expected end of string"); in parseStandaloneConstantValue() 100 Lex.Lex(); in parseTypeAtBeginning() 103 SMLoc Start = Lex.getLoc(); in parseTypeAtBeginning() 107 SMLoc End = Lex.getLoc(); in parseTypeAtBeginning() 306 switch (Lex.getKind()) { in parseTargetDefinitions() 325 switch (Lex.getKind()) { in parseTopLevelEntities() [all …]
|
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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/ |
D | LLParser.cpp | 66 Lex.Lex(); in Run() 70 Lex.getLoc(), in Run() 80 Lex.Lex(); in parseStandaloneConstantValue() 85 if (Lex.getKind() != lltok::Eof) in parseStandaloneConstantValue() 86 return Error(Lex.getLoc(), "expected end of string"); in parseStandaloneConstantValue() 93 Lex.Lex(); in parseTypeAtBeginning() 96 SMLoc Start = Lex.getLoc(); in parseTypeAtBeginning() 100 SMLoc End = Lex.getLoc(); in parseTypeAtBeginning() 301 switch (Lex.getKind()) { in ParseTopLevelEntities() 314 Lex.Lex(); in ParseTopLevelEntities() [all …]
|
D | LLParser.h | 92 LLLexer Lex; variable 173 : Context(Context), Lex(F, SM, Err, Context), M(M), Index(Index), in Context() 191 return Lex.Error(L, Msg); in Error() 194 return Error(Lex.getLoc(), Msg); in TokError() 215 if (Lex.getKind() != T) return false; in EatIfPresent() 216 Lex.Lex(); in EatIfPresent() 223 switch (Lex.getKind()) { in EatFastMathFlagsIfPresent() 224 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 225 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 226 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() [all …]
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 50 Lex.Lex(); in Run() 54 Lex.getLoc(), in Run() 64 Lex.Lex(); in parseStandaloneConstantValue() 69 if (Lex.getKind() != lltok::Eof) in parseStandaloneConstantValue() 70 return Error(Lex.getLoc(), "expected end of string"); in parseStandaloneConstantValue() 77 Lex.Lex(); in parseTypeAtBeginning() 80 SMLoc Start = Lex.getLoc(); in parseTypeAtBeginning() 84 SMLoc End = Lex.getLoc(); in parseTypeAtBeginning() 251 switch (Lex.getKind()) { in ParseTopLevelEntities() 282 assert(Lex.getKind() == lltok::kw_module); in ParseModuleAsm() [all …]
|
D | LLParser.h | 92 LLLexer Lex; variable 145 : Context(M->getContext()), Lex(F, SM, Err, M->getContext()), M(M), 159 return Lex.Error(L, Msg); in Error() 162 return Error(Lex.getLoc(), Msg); in TokError() 182 if (Lex.getKind() != T) return false; in EatIfPresent() 183 Lex.Lex(); in EatIfPresent() 190 switch (Lex.getKind()) { in EatFastMathFlagsIfPresent() 191 case lltok::kw_fast: FMF.setUnsafeAlgebra(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 192 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() 193 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent() [all …]
|
/external/llvm/tools/llvm-mcmarkup/ |
D | llvm-mcmarkup.cpp | 70 MarkupLexer &Lex; member in MarkupParser 73 MarkupParser(MarkupLexer &lex, SourceMgr &SrcMgr) : Lex(lex), SM(SrcMgr) {} in MarkupParser() 125 StringRef::const_iterator Start = Lex.getPosition(); in parseTag() 127 while(Lex.getNextChar() != ':') { in parseTag() 129 if (Lex.isEOF()) in parseTag() 132 StringRef RawTag(Start, Lex.getPosition() - Start - 1); in parseTag() 153 MarkupLexer Lex(InputSource); in parseMCMarkup() local 154 MarkupParser Parser(Lex, SrcMgr); in parseMCMarkup() 158 for (int CurChar = Lex.getNextChar(); in parseMCMarkup() 160 CurChar = Lex.getNextChar()) { in parseMCMarkup() [all …]
|
/external/llvm-project/clang/lib/Tooling/Inclusions/ |
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 …]
|
/external/llvm/lib/MC/MCParser/ |
D | COFFAsmParser.cpp | 285 Lex(); in ParseDirectiveSymbolAttribute() 289 Lex(); in ParseDirectiveSymbolAttribute() 306 Lex(); in ParseSectionSwitch() 319 Lex(); in ParseSectionName() 348 Lex(); in ParseDirectiveSection() 354 Lex(); in ParseDirectiveSection() 364 Lex(); in ParseDirectiveSection() 377 Lex(); in ParseDirectiveSection() 406 Lex(); in ParseDirectiveDef() 418 Lex(); in ParseDirectiveScl() [all …]
|
D | ELFAsmParser.cpp | 176 Lex(); in ParseDirectiveSymbolAttribute() 180 Lex(); in ParseDirectiveSymbolAttribute() 191 Lex(); in ParseSectionSwitch() 207 Lex(); in ParseDirectiveSize() 228 Lex(); in ParseSectionName() 242 Lex(); in ParseSectionName() 245 Lex(); in ParseSectionName() 248 Lex(); in ParseSectionName() 312 Lex(); // Eat the #. in parseSunStyleSectionFlags() 329 Lex(); // Eat the flag. in parseSunStyleSectionFlags() [all …]
|
D | AsmParser.cpp | 226 const AsmToken &Lex() override; 262 Lexer.Lex(); in parseEOL() 267 Lex(); in parseEOL() 278 Lex(); in parseToken() 286 Lex(); in parseIntToken() 662 const AsmToken &AsmParser::Lex() { in Lex() function in AsmParser 674 const AsmToken *tok = &Lexer.Lex(); in Lex() 680 tok = &Lexer.Lex(); in Lex() 689 return Lex(); in Lex() 703 Lex(); in Run() [all …]
|
D | DarwinAsmParser.cpp | 398 Lex(); in parseSectionSwitch() 436 Lex(); in parseDirectiveAltEntry() 452 Lex(); in parseDirectiveDesc() 461 Lex(); in parseDirectiveDesc() 498 Lex(); in parseDirectiveIndirectSymbol() 511 Lex(); in parseDirectiveDumpOrLoad() 516 Lex(); in parseDirectiveDumpOrLoad() 540 Lex(); in parseDirectiveLinkerOption() 546 Lex(); in parseDirectiveLinkerOption() 565 Lex(); in parseDirectiveLsym() [all …]
|
/external/llvm-project/llvm/lib/MC/MCParser/ |
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 …]
|
D | ELFAsmParser.cpp | 194 Lex(); in ParseDirectiveSymbolAttribute() 198 Lex(); in ParseDirectiveSymbolAttribute() 209 Lex(); in ParseSectionSwitch() 225 Lex(); in ParseDirectiveSize() 233 Lex(); in ParseDirectiveSize() 247 Lex(); in ParseSectionName() 260 Lex(); in ParseSectionName() 263 Lex(); in ParseSectionName() 266 Lex(); in ParseSectionName() 343 Lex(); // Eat the #. in parseSunStyleSectionFlags() [all …]
|
D | DarwinAsmParser.cpp | 478 Lex(); in parseSectionSwitch() 516 Lex(); in parseDirectiveAltEntry() 532 Lex(); in parseDirectiveDesc() 541 Lex(); in parseDirectiveDesc() 578 Lex(); in parseDirectiveIndirectSymbol() 591 Lex(); in parseDirectiveDumpOrLoad() 596 Lex(); in parseDirectiveDumpOrLoad() 625 Lex(); in parseDirectiveLinkerOption() 644 Lex(); in parseDirectiveLsym() 653 Lex(); in parseDirectiveLsym() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/ |
D | ELFAsmParser.cpp | 194 Lex(); in ParseDirectiveSymbolAttribute() 198 Lex(); in ParseDirectiveSymbolAttribute() 209 Lex(); in ParseSectionSwitch() 225 Lex(); in ParseDirectiveSize() 233 Lex(); in ParseDirectiveSize() 247 Lex(); in ParseSectionName() 260 Lex(); in ParseSectionName() 263 Lex(); in ParseSectionName() 266 Lex(); in ParseSectionName() 343 Lex(); // Eat the #. in parseSunStyleSectionFlags() [all …]
|
D | COFFAsmParser.cpp | 294 Lex(); in ParseDirectiveSymbolAttribute() 298 Lex(); in ParseDirectiveSymbolAttribute() 315 Lex(); in ParseSectionSwitch() 328 Lex(); in ParseSectionName() 358 Lex(); in ParseDirectiveSection() 364 Lex(); in ParseDirectiveSection() 374 Lex(); in ParseDirectiveSection() 387 Lex(); in ParseDirectiveSection() 416 Lex(); in ParseDirectiveDef() 428 Lex(); in ParseDirectiveScl() [all …]
|
D | DarwinAsmParser.cpp | 478 Lex(); in parseSectionSwitch() 516 Lex(); in parseDirectiveAltEntry() 532 Lex(); in parseDirectiveDesc() 541 Lex(); in parseDirectiveDesc() 578 Lex(); in parseDirectiveIndirectSymbol() 591 Lex(); in parseDirectiveDumpOrLoad() 596 Lex(); in parseDirectiveDumpOrLoad() 625 Lex(); in parseDirectiveLinkerOption() 644 Lex(); in parseDirectiveLsym() 653 Lex(); in parseDirectiveLsym() [all …]
|
/external/llvm-project/clang/unittests/Format/ |
D | MacroExpanderTest.cpp | 14 MacroExpanderTest() : Lex(Allocator, Buffers) {} in MacroExpanderTest() 18 Lex.SourceMgr.get(), Lex.Style, in create() 19 Lex.Allocator, Lex.IdentTable); in create() 25 return text(Macros.expand(Lex.id(Name), lexArgs(Args))); 32 Result.push_back(uneof(Lex.lex(Arg))); in lexArgs() 72 TestLexer Lex; member in clang::format::__anon02b5ee4e0111::MacroExpanderTest 118 auto *A = Lex.id("A"); in TEST_F() 138 auto *B = Lex.id("B"); in TEST_F() 161 auto *A = Lex.id("A"); in TEST_F() 162 auto *B = Lex.id("B"); in TEST_F() [all …]
|
/external/clang/lib/Parse/ |
D | ParsePragma.cpp | 524 PP.Lex(Tok); // pragma kind in HandlePragmaMSPragma() 541 PP.Lex(Tok); in HandlePragmaMSPragma() 542 PP.Lex(Tok); in HandlePragmaMSPragma() 552 PP.Lex(Tok); // ( in HandlePragmaMSSection() 571 PP.Lex(Tok); // , in HandlePragmaMSSection() 576 PP.Lex(Tok); // long/short in HandlePragmaMSSection() 606 PP.Lex(Tok); // Identifier in HandlePragmaMSSection() 616 PP.Lex(Tok); // ) in HandlePragmaMSSection() 622 PP.Lex(Tok); // eof in HandlePragmaMSSection() 633 PP.Lex(Tok); // ( in HandlePragmaMSSegment() [all …]
|
/external/llvm-project/clang/lib/Parse/ |
D | ParsePragma.cpp | 828 PP.Lex(Tok); // pragma kind in HandlePragmaMSPragma() 845 PP.Lex(Tok); in HandlePragmaMSPragma() 846 PP.Lex(Tok); in HandlePragmaMSPragma() 856 PP.Lex(Tok); // ( in HandlePragmaMSSection() 875 PP.Lex(Tok); // , in HandlePragmaMSSection() 880 PP.Lex(Tok); // long/short in HandlePragmaMSSection() 910 PP.Lex(Tok); // Identifier in HandlePragmaMSSection() 920 PP.Lex(Tok); // ) in HandlePragmaMSSection() 926 PP.Lex(Tok); // eof in HandlePragmaMSSection() 937 PP.Lex(Tok); // ( in HandlePragmaMSSegment() [all …]
|
/external/llvm/lib/Target/AMDGPU/AsmParser/ |
D | AMDGPUAsmParser.cpp | 831 Parser.Lex(); in ParseAMDGPURegister() 851 Parser.Lex(); in ParseAMDGPURegister() 855 Parser.Lex(); in ParseAMDGPURegister() 859 Parser.Lex(); in ParseAMDGPURegister() 867 Parser.Lex(); in ParseAMDGPURegister() 877 Parser.Lex(); in ParseAMDGPURegister() 885 Parser.Lex(); in ParseAMDGPURegister() 894 Parser.Lex(); in ParseAMDGPURegister() 896 Parser.Lex(); in ParseAMDGPURegister() 972 Parser.Lex(); in parseImm() [all …]
|