Home
last modified time | relevance | path

Searched refs:TokKind (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h32 enum TokKind { enum
173 static inline bool isBangOperator(tgtok::TokKind Kind) { in isBangOperator()
178 static inline bool isObjectStart(tgtok::TokKind Kind) { in isObjectStart()
183 static inline bool isStringValue(tgtok::TokKind Kind) { in isStringValue()
197 tgtok::TokKind CurCode = tgtok::TokKind::Eof;
215 tgtok::TokKind Lex() { in Lex()
223 tgtok::TokKind getCode() const { return CurCode; } in getCode()
245 tgtok::TokKind LexToken(bool FileOrLineStart = false);
247 tgtok::TokKind ReturnError(SMLoc Loc, const Twine &Msg);
248 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg);
[all …]
H A DTGLexer.cpp36 tgtok::TokKind Kind;
72 tgtok::TokKind TGLexer::ReturnError(SMLoc Loc, const Twine &Msg) { in ReturnError()
77 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) { in ReturnError()
142 tgtok::TokKind TGLexer::LexToken(bool FileOrLineStart) { in LexToken()
181 tgtok::TokKind Kind = prepIsDirective(); in LexToken()
271 tgtok::TokKind TGLexer::LexString() { in LexString()
323 tgtok::TokKind TGLexer::LexVarName() { in LexVarName()
337 tgtok::TokKind TGLexer::LexIdentifier() { in LexIdentifier()
348 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str) in LexIdentifier()
396 tgtok::TokKind Tok = LexToken(); in LexInclude()
[all …]
H A DTGParser.h260 bool consume(tgtok::TokKind K);
H A DTGParser.cpp656 bool TGParser::consume(tgtok::TokKind K) { in consume()
1450 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation()
1871 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
2391 tgtok::TokKind Operation = Lex.getCode(); in ParseOperationForEachFilter()
2621 tgtok::TokKind Code = Lex.getCode(); in ParseSimpleValue()
2675 tgtok::TokKind Next = Lex.Lex(); in ParseSimpleValue()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMasmParser.cpp2034 AsmToken::TokenKind TokKind = Lexer.getKind(); in parseBinOpRHS() local
2036 TokKind = StringSwitch<AsmToken::TokenKind>(Lexer.getTok().getString()) in parseBinOpRHS()
2049 .Default(TokKind); in parseBinOpRHS()
2052 unsigned TokPrec = getBinOpPrecedence(TokKind, Kind); in parseBinOpRHS()