Searched refs:TokKind (Results 1 - 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/tools/parser/
H A Dhlo_lexer.h39 TokKind Lex() { return current_kind_ = LexToken(); }
41 TokKind GetKind() const { return current_kind_; }
44 case TokKind::kName:
45 case TokKind::kAttributeName:
46 case TokKind::kDimLabels:
47 case TokKind::kDxD:
48 case TokKind::kPad:
49 case TokKind::kString:
50 case TokKind::kIdent:
57 CHECK(GetKind() == TokKind
[all...]
H A Dhlo_lexer.cc86 TokKind HloLexer::LexToken() {
98 return TokKind::kError;
101 return TokKind::kEof;
104 return TokKind::kError;
124 return TokKind::kArrow;
128 return TokKind::kEqual;
130 return TokKind::kComma;
134 return TokKind::kColon;
136 return TokKind::kLsquare;
138 return TokKind
[all...]
H A Dhlo_token.h28 enum class TokKind { class in namespace:xla::tools
73 string TokKindToString(TokKind kind);
H A Dhlo_parser.cc179 bool ParseInt64List(const TokKind start, const TokKind end,
180 const TokKind delim, std::vector<int64>* result);
195 bool ParseToken(TokKind kind, const string& msg);
209 bool EatIfPresent(TokKind kind);
264 if (lexer_.GetKind() != TokKind::kw_HloModule) {
287 } while (lexer_.GetKind() != TokKind::kEof);
326 const bool is_entry_computation = EatIfPresent(TokKind::kw_ENTRY);
392 if (!ParseToken(TokKind::kLbrace,
400 } while (lexer_.GetKind() != TokKind
[all...]
/external/llvm/lib/TableGen/
H A DTGLexer.h30 enum TokKind { enum in namespace:llvm::tgtok
74 tgtok::TokKind CurCode;
91 tgtok::TokKind Lex() {
99 tgtok::TokKind getCode() const { return CurCode; }
121 tgtok::TokKind LexToken();
123 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg);
129 tgtok::TokKind LexIdentifier();
131 tgtok::TokKind LexString();
132 tgtok::TokKind LexVarName();
133 tgtok::TokKind LexNumbe
[all...]
H A DTGLexer.cpp42 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) {
88 tgtok::TokKind TGLexer::LexToken() {
183 tgtok::TokKind TGLexer::LexString() {
235 tgtok::TokKind TGLexer::LexVarName() {
250 tgtok::TokKind TGLexer::LexIdentifier() {
266 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str)
293 tgtok::TokKind Tok = LexToken();
379 tgtok::TokKind TGLexer::LexNumber() {
434 tgtok::TokKind TGLexe
[all...]
H A DTGParser.cpp360 static bool isObjectStart(tgtok::TokKind K) {
880 tgtok::TokKind OpTok = Lex.getCode();
968 tgtok::TokKind LexCode = Lex.getCode();
/external/swiftshader/third_party/LLVM/lib/TableGen/
H A DTGLexer.h29 enum TokKind { enum in namespace:llvm::tgtok
68 tgtok::TokKind CurCode;
82 tgtok::TokKind Lex() {
90 tgtok::TokKind getCode() const { return CurCode; }
107 tgtok::TokKind LexToken();
109 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg);
114 tgtok::TokKind LexIdentifier();
116 tgtok::TokKind LexString();
117 tgtok::TokKind LexVarName();
118 tgtok::TokKind LexNumbe
[all...]
H A DTGLexer.cpp41 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) {
83 tgtok::TokKind TGLexer::LexToken() {
141 tgtok::TokKind TGLexer::LexString() {
193 tgtok::TokKind TGLexer::LexVarName() {
208 tgtok::TokKind TGLexer::LexIdentifier() {
225 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str)
251 tgtok::TokKind Tok = LexToken();
329 tgtok::TokKind TGLexer::LexNumber() {
384 tgtok::TokKind TGLexe
[all...]
H A DTGParser.cpp294 static bool isObjectStart(tgtok::TokKind K) {
805 tgtok::TokKind OpTok = Lex.getCode();
874 tgtok::TokKind LexCode = Lex.getCode();
/external/clang/lib/Parse/
H A DParseExprCXX.cpp1235 unsigned TokKind = 0; local
1237 case tok::kw_mutable: TokKind = 0; break;
1238 case tok::arrow: TokKind = 1; break;
1240 case tok::l_square: TokKind = 2; break;
1241 case tok::kw_constexpr: TokKind = 3; break;
1246 << TokKind

Completed in 346 milliseconds