Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp76 Lex.Lex(); in Run()
95 Lex.Lex(); in parseStandaloneConstantValue()
108 Lex.Lex(); in parseTypeAtBeginning()
547 Lex.Lex(); in parseModuleAsm()
590 Lex.Lex(); in parseSourceFileName()
655 Lex.Lex(); in parseDeclare()
679 Lex.Lex(); in parseDefine()
700 Lex.Lex(); in parseGlobalType()
771 Lex.Lex(); in parseNamedGlobal()
799 Lex.Lex(); in parseComdat()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp658 Lex.Lex(); in consume()
726 Lex.Lex(); in ParseClassID()
745 Lex.Lex(); in ParseMultiClassID()
1006 Lex.Lex(); in ParseRangePiece()
1095 Lex.Lex(); in ParseType()
1098 Lex.Lex(); in ParseType()
1101 Lex.Lex(); in ParseType()
1104 Lex.Lex(); in ParseType()
3263 Lex.Lex(); in ParseDeclaration()
3318 Lex.Lex(); in ParseForeachDeclaration()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp51 Lex.LexFromRawLexer(Tok); in getOffsetAfterTokenSequence()
52 return GetOffsetAfterSequence(SM, Lex, Tok); in getOffsetAfterTokenSequence()
60 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName() argument
68 Lex.LexFromRawLexer(Tok); in checkAndConsumeDirectiveWithName()
72 void skipComments(Lexer &Lex, Token &Tok) { in skipComments() argument
74 if (Lex.LexFromRawLexer(Tok)) in skipComments()
94 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
104 skipComments(Lex, Tok); in getOffsetAfterHeaderGuardsAndComments()
127 Lex.LexFromRawLexer(Tok); in checkAndConsumeInclusiveDirective()
132 if (Lex.LexFromRawLexer(Tok)) in checkAndConsumeInclusiveDirective()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp315 Lex(); in ParseDirectiveSymbolAttribute()
336 Lex(); in ParseSectionSwitch()
349 Lex(); in ParseSectionName()
459 Lex(); in ParseDirectiveDef()
471 Lex(); in ParseDirectiveScl()
484 Lex(); in ParseDirectiveType()
490 Lex(); in ParseDirectiveEndef()
519 Lex(); in ParseDirectiveSecRel32()
565 Lex(); in ParseDirectiveSafeSEH()
580 Lex(); in ParseDirectiveSecIdx()
[all …]
H A DELFAsmParser.cpp203 Lex(); in ParseDirectiveSymbolAttribute()
214 Lex(); in ParseSectionSwitch()
230 Lex(); in ParseDirectiveSize()
238 Lex(); in ParseDirectiveSize()
420 Lex(); in maybeParseSectionType()
441 Lex(); in parseMergeSize()
453 Lex(); in parseGroup()
478 Lex(); in parseLinkedToSym()
499 Lex(); in maybeParseUniqueID()
507 Lex(); in maybeParseUniqueID()
[all …]
H A DMCAsmParser.cpp52 Lex(); in parseEOL()
59 Lex(); in parseEOL()
68 Lex(); in parseToken()
76 Lex(); in parseIntToken()
113 getLexer().Lex(); in Error()
120 Lex(); in addErrorSuffix()
155 Lex(); // Eat the Tag in parseGNUAttribute()
156 Lex(); // Eat the comma in parseGNUAttribute()
160 Lex(); // Eat the IntegerValue in parseGNUAttribute()
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.cpp80 Lex(); in isNext()
128 Lex(); in parseGroup()
131 Lex(); in parseGroup()
136 Lex(); in parseGroup()
179 Lex(); in parseSectionDirective()
244 Lex(); in parseDirectiveType()
261 Lex(); in parseDirectiveType()
272 Lex(); in ParseDirectiveIdent()
275 Lex(); in ParseDirectiveIdent()
303 Lex(); in ParseDirectiveSymbolAttribute()
[all …]
H A DAsmParser.cpp976 Lex(); in Run()
2419 Lex(); in parseCppHashLineFilenameComment()
2423 Lex(); in parseCppHashLineFilenameComment()
2919 Lex(); in handleMacroEntry()
2927 Lex(); in handleMacroExit()
3103 Lex(); in parseEscapedString()
3160 Lex(); in parseDirectiveReloc()
3286 Lex(); in parseRealValue()
3846 Lex(); in parseDirectiveCVInlineSiteId()
3858 Lex(); in parseDirectiveCVInlineSiteId()
[all …]
H A DMasmParser.cpp1344 Lex(); in Run()
2751 Lex(); in parseCppHashLineFilenameComment()
2755 Lex(); in parseCppHashLineFilenameComment()
3255 Lex(); in handleMacroEntry()
3265 Lex(); in handleMacroExit()
3323 Lex(); in handleMacroInvocation()
3532 Lex(); in parseEscapedString()
3868 Lex(); in parseRealValue()
5108 Lex(); in parseDirectiveCVInlineSiteId()
5120 Lex(); in parseDirectiveCVInlineSiteId()
[all …]
H A DCOFFMasmParser.cpp59 Lex(); in IgnoreDirective()
232 Lex(); in ParseSectionSwitch()
247 Lex(); in ParseDirectiveSegment()
278 Lex(); in ParseDirectiveSegment()
316 Lex(); in ParseDirectiveSegment()
385 Lex(); in ParseDirectiveSegmentEnd()
459 Lex(); in ParseDirectiveProc()
462 Lex(); in ParseDirectiveProc()
476 Lex(); in ParseDirectiveProc()
H A DMCAsmParserExtension.cpp35 Lex(); in ParseDirectiveCGProfile()
44 Lex(); in ParseDirectiveCGProfile()
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h110 LLLexer Lex; variable
227 Lex.Lex(); in EatIfPresent()
235 case lltok::kw_fast: FMF.setFast(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
236 case lltok::kw_nnan: FMF.setNoNaNs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
237 case lltok::kw_ninf: FMF.setNoInfs(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
238 case lltok::kw_nsz: FMF.setNoSignedZeros(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
239 case lltok::kw_arcp: FMF.setAllowReciprocal(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
242 Lex.Lex(); in EatFastMathFlagsIfPresent()
244 case lltok::kw_reassoc: FMF.setAllowReassoc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
245 case lltok::kw_afn: FMF.setApproxFunc(); Lex.Lex(); continue; in EatFastMathFlagsIfPresent()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParsePragma.cpp319 PP.Lex(Tok); in HandlePragma()
2124 PP.Lex(Tok); in HandlePragma()
2134 PP.Lex(Tok); in HandlePragma()
2208 PP.Lex(Tok); in HandlePragma()
2239 PP.Lex(Tok); in HandlePragma()
2341 PP.Lex(Tok); in ParseAlignPragma()
2353 PP.Lex(Tok); in ParseAlignPragma()
2389 PP.Lex(Tok); in ParseAlignPragma()
2429 PP.Lex(Tok); in HandlePragma()
2471 PP.Lex(Tok); in HandlePragma()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPragma.cpp228 Lex(Tok); in Handle_Pragma()
232 Lex(Tok); in Handle_Pragma()
241 Lex(Tok); in Handle_Pragma()
577 Lex(Tok); in ParsePragmaPushOrPopMacro()
585 Lex(Tok); in ParsePragmaPushOrPopMacro()
601 Lex(Tok); in ParsePragmaPushOrPopMacro()
692 Lex(Tok); in HandlePragmaIncludeAlias()
714 Lex(Tok); in HandlePragmaIncludeAlias()
733 Lex(Tok); in HandlePragmaIncludeAlias()
882 Lex(Tok); in HandlePragmaHdrstop()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DFormatTokenLexer.cpp38 Lex->SetKeepWhitespaceMode(true);
621 const char *Offset = Lex->getBufferLocation(); in tryParseJSRegexLiteral()
623 StringRef Buffer = Lex->getBuffer(); in tryParseJSRegexLiteral()
746 const auto End = Lex->getBuffer().end(); in handleCSharpVerbatimAndInterpolatedStrings()
791 Lex->getSourceLocation(Lex->getBufferLocation() - 2 + Text.size()))); in handleTableGenMultilineString()
869 const char *Offset = Lex->getBufferLocation(); in handleTemplateStrings()
923 To = Lex->getBuffer().size(); in tryParsePythonComment()
1360 const char *Start = Lex->getBufferLocation(); in readRawTokenVerilogSpecific()
1378 Lex->seek(Lex->getCurrentBufferOffset() + Len, /*IsAtStartofline=*/false); in readRawTokenVerilogSpecific()
1386 Lex->LexFromRawLexer(Tok.Tok); in readRawToken()
[all …]
H A DTokenAnalyzer.cpp105 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process() local
108 ArrayRef<FormatToken *> Toks(Lex.lex()); in process()
110 UnwrappedLineParser Parser(Env.getSourceManager(), Style, Lex.getKeywords(), in process()
122 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process()
130 analyze(Annotator, AnnotatedLines, Lex); in process()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp384 Parser.Lex(); in parseRegister()
416 Parser.Lex(); // Eat register token. in tryParseRegisterOperand()
474 Parser.Lex(); in tryParseRelocExpression()
489 Parser.Lex(); in tryParseRelocExpression()
501 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
506 Parser.Lex(); // Eat closing parenthesis in tryParseRelocExpression()
552 Parser.Lex(); // Eat the token. in parseOperand()
576 Parser.Lex(); // Eat register token. in parseMemriOperand()
614 Parser.Lex(); in eatComma()
706 Parser.Lex(); in parseLiteralValues()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp105 PP.Lex(PPTok); in RewriteMacrosInInput()
118 PP.Lex(PPTok); in RewriteMacrosInInput()
159 PP.Lex(PPTok); in RewriteMacrosInInput()
198 PP.Lex(PPTok); in RewriteMacrosInInput()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp818 Parser.Lex(); in tryParseRegister()
821 Parser.Lex(); in tryParseRegister()
1013 getParser().Lex(); // Eat '%' in parseTailRelocSym()
1033 getParser().Lex(); // Eat '(' in parseTailRelocSym()
1057 Parser.Lex(); // Eat the '#'. in parseMembarTag()
1094 Parser.Lex(); // Eat the '#'. in parseASITag()
1162 Parser.Lex(); // Eat the [ in parseOperand()
1169 Parser.Lex(); // eat % in parseOperand()
1192 Parser.Lex(); // Eat the ] in parseOperand()
1199 Parser.Lex(); // Eat the %. in parseOperand()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp785 PP.Lex(PragmaTok); in HandlePragma()
833 PP.Lex(Tok); in PrintPreprocessedTokens()
836 PP.Lex(Tok); in PrintPreprocessedTokens()
842 PP.Lex(Tok); in PrintPreprocessedTokens()
850 PP.Lex(Tok); in PrintPreprocessedTokens()
862 PP.Lex(Tok); in PrintPreprocessedTokens()
868 PP.Lex(Tok); in PrintPreprocessedTokens()
883 PP.Lex(Tok); in PrintPreprocessedTokens()
927 PP.Lex(Tok); in PrintPreprocessedTokens()
945 do PP.Lex(Tok); in DoPrintMacros()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp118 Parser.Lex(); in consumeToken()
1537 Parser.Lex(); in ParseRegister()
1560 Parser.Lex(); in ParseRegister()
1915 Lex(); in ParseIntelExpression()
2348 Lex(); in ParseIntelDotOperator()
2693 Parser.Lex(); in parseATTOperand()
3506 Parser.Lex(); in ParseInstruction()
4636 Parser.Lex(); in ParseDirectiveCode()
4643 Parser.Lex(); in ParseDirectiveCode()
4650 Parser.Lex(); in ParseDirectiveCode()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp364 Parser.Lex(); in isNext()
381 Parser.Lex(); in expectIdent()
391 Parser.Lex(); in parseRegTypeList()
406 Parser.Lex(); in parseSingleInteger()
419 Parser.Lex(); in parseSingleFloat()
441 Parser.Lex(); in parseSpecialFloatMaybe()
501 Parser.Lex(); in parseLimits()
511 Parser.Lex(); in parseLimits()
568 Parser.Lex(); in ParseInstruction()
575 Parser.Lex(); in ParseInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp366 getParser().Lex(); // Eat identifier token. in tryParseRegister()
380 getLexer().Lex(); in parseOperandAsOperator()
410 getLexer().Lex(); in parseOperandAsOperator()
426 getLexer().Lex(); in parseOperandAsOperator()
452 getLexer().Lex(); in parseRegister()
508 getLexer().Lex(); in ParseInstruction()
528 getParser().Lex(); in ParseInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp7143 Parser.Lex(); in parseSetReorderDirective()
7157 Parser.Lex(); in parseSetNoReorderDirective()
7171 Parser.Lex(); in parseSetMacroDirective()
7185 Parser.Lex(); in parseSetNoMacroDirective()
7203 Parser.Lex(); in parseSetMsaDirective()
7216 Parser.Lex(); in parseSetNoMsaDirective()
7432 Parser.Lex(); in parseSetPopDirective()
7453 Parser.Lex(); in parseSetPushDirective()
7467 Parser.Lex(); in parseSetSoftFloatDirective()
7478 Parser.Lex(); in parseSetHardFloatDirective()
[all …]

1234