Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h32 enum TokKind { enum
175 static inline bool isBangOperator(tgtok::TokKind Kind) { in isBangOperator()
180 static inline bool isObjectStart(tgtok::TokKind Kind) { in isObjectStart()
185 static inline bool isStringValue(tgtok::TokKind Kind) { in isStringValue()
199 tgtok::TokKind CurCode = tgtok::TokKind::Eof;
217 tgtok::TokKind Lex() { in Lex()
225 tgtok::TokKind getCode() const { return CurCode; } in getCode()
247 tgtok::TokKind LexToken(bool FileOrLineStart = false);
249 tgtok::TokKind ReturnError(SMLoc Loc, const Twine &Msg);
250 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg);
[all …]
H A DTGLexer.cpp34 tgtok::TokKind Kind;
106 tgtok::TokKind TGLexer::ReturnError(SMLoc Loc, const Twine &Msg) { in ReturnError()
111 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) { in ReturnError()
176 tgtok::TokKind TGLexer::LexToken(bool FileOrLineStart) { in LexToken()
215 tgtok::TokKind Kind = prepIsDirective(); in LexToken()
304 tgtok::TokKind TGLexer::LexString() { in LexString()
356 tgtok::TokKind TGLexer::LexVarName() { in LexVarName()
370 tgtok::TokKind TGLexer::LexIdentifier() { in LexIdentifier()
381 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str) in LexIdentifier()
429 tgtok::TokKind Tok = LexToken(); in LexInclude()
[all …]
H A DTGParser.h261 bool consume(tgtok::TokKind K);
H A DTGParser.cpp653 bool TGParser::consume(tgtok::TokKind K) { in consume()
1518 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation()
1947 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
2470 tgtok::TokKind Operation = Lex.getCode(); in ParseOperationForEachFilter()
2701 tgtok::TokKind Code = Lex.getCode(); in ParseSimpleValue()
2755 tgtok::TokKind Next = Lex.Lex(); in ParseSimpleValue()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseHLSLRootSignature.cpp122 assert(CurToken.TokKind == TokenKind::kw_RootFlags && in parseRootFlags()
126 CurToken.TokKind)) in parseRootFlags()
150 switch (CurToken.TokKind) { in parseRootFlags()
177 assert(CurToken.TokKind == TokenKind::kw_RootConstants && in parseRootConstants()
181 CurToken.TokKind)) in parseRootConstants()
221 assert((CurToken.TokKind == TokenKind::kw_CBV || in parseRootDescriptor()
222 CurToken.TokKind == TokenKind::kw_SRV || in parseRootDescriptor()
223 CurToken.TokKind == TokenKind::kw_UAV) && in parseRootDescriptor()
226 TokenKind DescriptorKind = CurToken.TokKind; in parseRootDescriptor()
229 CurToken.TokKind)) in parseRootDescriptor()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexHLSLRootSignature.cpp41 Result.TokKind = TokenKind::pu_##X; \ in lexToken()
57 Result.TokKind = in lexToken()
77 Result.TokKind = TokenKind::bReg; in lexToken()
80 Result.TokKind = TokenKind::tReg; in lexToken()
83 Result.TokKind = TokenKind::uReg; in lexToken()
86 Result.TokKind = TokenKind::sReg; in lexToken()
112 Result.TokKind = Switch.Default(TokenKind::invalid); in lexToken()
119 if (NextToken && NextToken->TokKind != TokenKind::end_of_stream) { in consumeToken()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DLexHLSLRootSignature.h32 Kind TokKind = Kind::invalid; member
43 RootSignatureToken(Kind TokKind, uint32_t LocOffset) in RootSignatureToken()
44 : TokKind(TokKind), LocOffset(LocOffset) {} in RootSignatureToken()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMasmParser.cpp1766 AsmToken::TokenKind TokKind = Lexer.getKind(); in parseBinOpRHS() local
1768 TokKind = StringSwitch<AsmToken::TokenKind>(Lexer.getTok().getString()) in parseBinOpRHS()
1781 .Default(TokKind); in parseBinOpRHS()
1784 unsigned TokPrec = getBinOpPrecedence(TokKind, Kind); in parseBinOpRHS()