Home
last modified time | relevance | path

Searched refs:Lex (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd-12.1/contrib/llvm/lib/TableGen/
H A DTGParser.cpp543 Lex.Lex(); in ParseClassID()
562 Lex.Lex(); in ParseMultiClassID()
609 Lex.Lex(); in ParseSubClassReference()
654 Lex.Lex(); in ParseSubMultiClassReference()
692 Lex.Lex(); in ParseRangePiece()
2222 Lex.Lex(); in ParseDeclaration()
2269 Lex.Lex(); in ParseForeachDeclaration()
2419 Lex.Lex(); in ParseBodyItem()
2441 Lex.Lex(); in ParseBody()
2448 Lex.Lex(); in ParseBody()
[all …]
H A DTGParser.h89 TGLexer Lex; variable
120 : Lex(SrcMgr, Macros), CurMultiClass(nullptr), Records(records) {} in TGParser()
131 return Error(Lex.getLoc(), Msg); in TokError()
134 return Lex.getDependencies(); in getDependencies()
/freebsd-12.1/contrib/llvm/lib/AsmParser/
H A DLLParser.cpp67 Lex.Lex(); in Run()
81 Lex.Lex(); in parseStandaloneConstantValue()
94 Lex.Lex(); in parseTypeAtBeginning()
349 Lex.Lex(); in ParseModuleAsm()
389 Lex.Lex(); in ParseSourceFileName()
404 Lex.Lex(); in ParseDepLibs()
476 Lex.Lex(); in ParseDeclare()
499 Lex.Lex(); in ParseDefine()
519 Lex.Lex(); in ParseGlobalType()
586 Lex.Lex(); in ParseNamedGlobal()
[all …]
H A DLLParser.h93 LLLexer Lex; variable
217 Lex.Lex(); in EatIfPresent()
225 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
226 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
227 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
228 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
229 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
232 Lex.Lex(); in EatFastMathFlagsIfPresent()
234 case lltok::kw_reassoc: FMF.setAllowReassoc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
235 case lltok::kw_afn: FMF.setApproxFunc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
[all …]
/freebsd-12.1/contrib/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp314 Lex(); in ParseDirectiveSymbolAttribute()
331 Lex(); in ParseSectionSwitch()
344 Lex(); in ParseSectionName()
432 Lex(); in ParseDirectiveDef()
444 Lex(); in ParseDirectiveScl()
457 Lex(); in ParseDirectiveType()
463 Lex(); in ParseDirectiveEndef()
492 Lex(); in ParseDirectiveSecRel32()
538 Lex(); in ParseDirectiveSafeSEH()
553 Lex(); in ParseDirectiveSecIdx()
[all …]
H A DELFAsmParser.cpp199 Lex(); in ParseDirectiveSymbolAttribute()
210 Lex(); in ParseSectionSwitch()
226 Lex(); in ParseDirectiveSize()
234 Lex(); in ParseDirectiveSize()
396 Lex(); in maybeParseSectionType()
417 Lex(); in parseMergeSize()
429 Lex(); in parseGroup()
451 Lex(); in parseMetadataSym()
465 Lex(); in maybeParseUniqueID()
473 Lex(); in maybeParseUniqueID()
[all …]
H A DDarwinAsmParser.cpp479 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()
645 Lex(); in parseDirectiveLsym()
654 Lex(); in parseDirectiveLsym()
684 Lex(); in parseDirectiveSection()
[all …]
H A DWasmAsmParser.cpp69 if (ok) Lex(); in IsNext()
87 while (Lexer->isNot(AsmToken::EndOfStatement)) Parser->Lex(); in parseSectionDirective()
100 Lex(); in parseDirectiveSize()
106 Lex(); in parseDirectiveSize()
121 Lex(); in parseDirectiveType()
132 Lex(); in parseDirectiveType()
H A DAsmParser.cpp859 Lex(); in Run()
1017 Lex(); in parseParenExpr()
2269 Lex(); in parseCppHashLineFilenameComment()
2273 Lex(); in parseCppHashLineFilenameComment()
2769 Lex(); in handleMacroEntry()
2777 Lex(); in handleMacroExit()
2918 Lex(); in parseEscapedString()
2963 Lex(); in parseDirectiveReloc()
3090 Lex(); in parseRealValue()
3642 Lex(); in parseDirectiveCVInlineSiteId()
[all …]
H A DMCAsmParser.cpp46 Lex(); in parseEOL()
55 Lex(); in parseToken()
63 Lex(); in parseIntToken()
100 getLexer().Lex(); in Error()
107 Lex(); in addErrorSuffix()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp48 Lex.LexFromRawLexer(Tok); in getOffsetAfterTokenSequence()
49 return GetOffsetAfterSequence(SM, Lex, Tok); in getOffsetAfterTokenSequence()
61 Lex.LexFromRawLexer(Tok); in checkAndConsumeDirectiveWithName()
65 void skipComments(Lexer &Lex, Token &Tok) { in skipComments() argument
67 if (Lex.LexFromRawLexer(Tok)) in skipComments()
81 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
84 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
98 Lex.LexFromRawLexer(Tok); in checkAndConsumeInclusiveDirective()
101 if (Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeInclusiveDirective()
103 if (Lex.LexFromRawLexer(Tok)) in checkAndConsumeInclusiveDirective()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Parse/
H A DParsePragma.cpp1641 PP.Lex(Tok); in HandlePragma()
1651 PP.Lex(Tok); in HandlePragma()
1722 PP.Lex(Tok); in HandlePragma()
1752 PP.Lex(Tok); in HandlePragma()
1847 PP.Lex(Tok); in ParseAlignPragma()
1854 PP.Lex(Tok); in ParseAlignPragma()
1882 PP.Lex(Tok); in ParseAlignPragma()
1921 PP.Lex(Tok); in HandlePragma()
1963 PP.Lex(Tok); in HandlePragma()
2000 PP.Lex(Tok); in HandlePragma()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DFormatTokenLexer.cpp37 Lex->SetKeepWhitespaceMode(true);
233 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral()
235 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral()
291 const char *Offset = Lex->getBufferLocation(); in handleTemplateStrings()
293 for (; Offset != Lex->getBuffer().end(); ++Offset) { in handleTemplateStrings()
330 SourceLocation loc = Offset < Lex->getBuffer().end() in handleTemplateStrings()
346 To = Lex->getBuffer().size(); in tryParsePythonComment()
351 SourceLocation Loc = To < Lex->getBuffer().size() in tryParsePythonComment()
563 const char *Offset = Lex->getBufferLocation(); in getNextToken()
680 Lex->LexFromRawLexer(Tok.Tok); in readRawToken()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DPragma.cpp218 Lex(Tok); in Handle_Pragma()
225 Lex(Tok); in Handle_Pragma()
253 Lex(Tok); in Handle_Pragma()
346 Lex(Tok); in HandleMicrosoft__pragma()
355 Lex(Tok); in HandleMicrosoft__pragma()
543 Lex(Tok); in ParsePragmaPushOrPopMacro()
551 Lex(Tok); in ParsePragmaPushOrPopMacro()
567 Lex(Tok); in ParsePragmaPushOrPopMacro()
658 Lex(Tok); in HandlePragmaIncludeAlias()
691 Lex(Tok); in HandlePragmaIncludeAlias()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp352 Parser.Lex(); in parseRegister()
374 Parser.Lex(); // Eat register token. in tryParseRegisterOperand()
430 Parser.Lex(); in tryParseRelocExpression()
444 Parser.Lex(); in tryParseRelocExpression()
459 Parser.Lex(); in tryParseRelocExpression()
471 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
476 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
523 Parser.Lex(); // Eat the token. in parseOperand()
548 Parser.Lex(); // Eat register token. in parseMemriOperand()
575 Parser.Lex(); in eatComma()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp2598 Lex(); in ParseDirectiveMajorMinor()
2701 Lex(); in ParseDirectiveAMDHSAKernel()
2952 Lex(); in ParseDirectiveHSACodeObjectISA()
2959 Lex(); in ParseDirectiveHSACodeObjectISA()
2965 Lex(); in ParseDirectiveHSACodeObjectISA()
2969 Lex(); in ParseDirectiveHSACodeObjectISA()
2975 Lex(); in ParseDirectiveHSACodeObjectISA()
2996 Lex(); in ParseAMDKernelCodeTValue()
3014 Lex(); in ParseDirectiveAMDKernelCodeT()
3036 Lex(); in ParseDirectiveAMDGPUHsaKernel()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp303 getLexer().Lex(); // eat register token in ParseRegister()
348 getLexer().Lex(); // Eat '$' in parseJccInstruction()
369 getParser().Lex(); // Consume the EndOfStatement. in parseJccInstruction()
396 getLexer().Lex(); // Eat ',' in ParseInstruction()
407 getParser().Lex(); // Consume the EndOfStatement. in ParseInstruction()
459 getLexer().Lex(); // Eat '(' in ParseOperand()
466 getLexer().Lex(); // Eat ')' in ParseOperand()
477 getLexer().Lex(); // Eat '&' in ParseOperand()
490 getLexer().Lex(); // Eat '@' in ParseOperand()
497 getLexer().Lex(); // Eat '+' in ParseOperand()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp265 Parser.Lex(); in isNext()
282 Parser.Lex(); in expectIdent()
322 Parser.Lex(); in parseRegTypeList()
337 Parser.Lex(); in parseSingleInteger()
389 Parser.Lex(); in ParseInstruction()
396 Parser.Lex(); in ParseInstruction()
462 Parser.Lex(); in ParseInstruction()
476 Parser.Lex(); in ParseInstruction()
493 Parser.Lex(); in ParseInstruction()
497 Parser.Lex(); in ParseInstruction()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp106 PP.Lex(PPTok); in RewriteMacrosInInput()
119 PP.Lex(PPTok); in RewriteMacrosInInput()
160 PP.Lex(PPTok); in RewriteMacrosInInput()
199 PP.Lex(PPTok); in RewriteMacrosInInput()
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp945 getLexer().Lex(); in parseRegister()
1058 getParser().Lex(); // Eat '%' in parseOperandWithModifier()
1076 getParser().Lex(); // Eat '(' in parseOperandWithModifier()
1130 getParser().Lex(); // Eat '(' in parseMemOpBaseReg()
1212 getLexer().Lex(); in ParseInstruction()
1303 Parser.Lex(); in parseDirectiveOption()
1316 Parser.Lex(); in parseDirectiveOption()
1330 Parser.Lex(); in parseDirectiveOption()
1342 Parser.Lex(); in parseDirectiveOption()
1354 Parser.Lex(); in parseDirectiveOption()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp6476 Parser.Lex(); in parseSetReorderDirective()
6490 Parser.Lex(); in parseSetNoReorderDirective()
6504 Parser.Lex(); in parseSetMacroDirective()
6518 Parser.Lex(); in parseSetNoMacroDirective()
6536 Parser.Lex(); in parseSetMsaDirective()
6549 Parser.Lex(); in parseSetNoMsaDirective()
6750 Parser.Lex(); in parseSetPopDirective()
6771 Parser.Lex(); in parseSetPushDirective()
6785 Parser.Lex(); in parseSetSoftFloatDirective()
6796 Parser.Lex(); in parseSetHardFloatDirective()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp663 PP.Lex(PragmaTok); in HandlePragma()
682 PP.Lex(PragmaTok); in HandlePragma()
730 PP.Lex(Tok); in PrintPreprocessedTokens()
735 PP.Lex(Tok); in PrintPreprocessedTokens()
746 PP.Lex(Tok); in PrintPreprocessedTokens()
751 PP.Lex(Tok); in PrintPreprocessedTokens()
756 PP.Lex(Tok); in PrintPreprocessedTokens()
787 PP.Lex(Tok); in PrintPreprocessedTokens()
805 do PP.Lex(Tok); in DoPrintMacros()
887 PP.Lex(Tok); in DoPrintPreprocessedInput()
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp639 Parser.Lex(); in ParseRegister()
642 Parser.Lex(); in ParseRegister()
736 Parser.Lex(); // Eat the '+' in parseMEMOperand()
770 Parser.Lex(); // Eat the '#'. in parseMembarTag()
791 Parser.Lex(); // Eat the '|'. in parseMembarTag()
815 Parser.Lex(); // Eat the [ in parseOperand()
821 Parser.Lex(); // eat % in parseOperand()
843 Parser.Lex(); // Eat the ] in parseOperand()
880 Parser.Lex(); // Eat the '%'. in parseSparcAsmOperand()
967 Parser.Lex(); // Eat the comma in parseBranchModifiers()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp81 Parser.Lex(); in consumeToken()
1125 getParser().Lex(); in ParseRegister()
1622 getLexer().Lex(); in ParseIntelInlineAsmIdentifier()
1717 Lex(); in ParseIntelDotOperator()
1946 Parser.Lex(); in ParseATTOperand()
2316 Parser.Lex(); in ParseInstruction()
2558 Parser.Lex(); in ParseInstruction()
3369 Parser.Lex(); in ParseDirectiveCode()
3376 Parser.Lex(); in ParseDirectiveCode()
3383 Parser.Lex(); in ParseDirectiveCode()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp332 getParser().Lex(); // Eat identifier token. in ParseRegister()
347 getLexer().Lex(); in parseOperandAsOperator()
377 getLexer().Lex(); in parseOperandAsOperator()
393 getLexer().Lex(); in parseOperandAsOperator()
419 getLexer().Lex(); in parseRegister()
490 getParser().Lex(); in ParseInstruction()

1234