/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_lexer.cc | 80 TokKind HloLexer::LookAhead() { in LookAhead() 81 if (GetKind() == TokKind::kEof || GetKind() == TokKind::kError) { in LookAhead() 88 TokKind kind = GetKind(); in LookAhead() 94 TokKind HloLexer::LexToken() { in LexToken() 106 return TokKind::kError; in LexToken() 109 return TokKind::kEof; in LexToken() 112 return TokKind::kError; in LexToken() 132 return TokKind::kArrow; in LexToken() 136 return TokKind::kEqual; in LexToken() 140 return TokKind::kLeq; in LexToken() [all …]
|
D | hlo_lexer.h | 35 enum class TokKind { enum 85 string TokKindToString(TokKind kind); 97 TokKind Lex() { return token_state_.current_kind = LexToken(); } in Lex() 99 TokKind GetKind() const { return token_state_.current_kind; } in GetKind() 102 case TokKind::kName: in GetStrVal() 103 case TokKind::kAttributeName: in GetStrVal() 104 case TokKind::kDimLabels: in GetStrVal() 105 case TokKind::kDxD: in GetStrVal() 106 case TokKind::kPad: in GetStrVal() 107 case TokKind::kString: in GetStrVal() [all …]
|
D | hlo_parser.cc | 432 bool ParseInt64List(const TokKind start, const TokKind end, 433 const TokKind delim, std::vector<int64>* result); 434 bool ParseInt64ListList(const TokKind start, const TokKind end, 435 const TokKind delim, 439 bool ParseList(const TokKind start, const TokKind end, const TokKind delim, 467 bool ParseToken(TokKind kind, const std::string& msg); 496 bool EatIfPresent(TokKind kind); 596 if (lexer_.GetKind() == TokKind::kw_HloModule) { in Run() 650 if (!ParseToken(TokKind::kLbrace, "Expects '{' at the start of ShapeIndex")) { in ParseShapeIndex() 655 while (lexer_.GetKind() != TokKind::kRbrace) { in ParseShapeIndex() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | TGLexer.h | 32 enum TokKind { enum 82 tgtok::TokKind CurCode = tgtok::TokKind::Eof; 100 tgtok::TokKind Lex() { in Lex() 108 tgtok::TokKind getCode() const { return CurCode; } in getCode() 130 tgtok::TokKind LexToken(bool FileOrLineStart = false); 132 tgtok::TokKind ReturnError(SMLoc Loc, const Twine &Msg); 133 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg); 139 tgtok::TokKind LexIdentifier(); 141 tgtok::TokKind LexString(); 142 tgtok::TokKind LexVarName(); [all …]
|
D | TGLexer.cpp | 35 tgtok::TokKind Kind; 69 tgtok::TokKind TGLexer::ReturnError(SMLoc Loc, const Twine &Msg) { in ReturnError() 74 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) { in ReturnError() 136 tgtok::TokKind TGLexer::LexToken(bool FileOrLineStart) { in LexToken() 176 tgtok::TokKind Kind = prepIsDirective(); in LexToken() 254 tgtok::TokKind TGLexer::LexString() { in LexString() 306 tgtok::TokKind TGLexer::LexVarName() { in LexVarName() 320 tgtok::TokKind TGLexer::LexIdentifier() { in LexIdentifier() 336 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str) in LexIdentifier() 368 tgtok::TokKind Tok = LexToken(); in LexInclude() [all …]
|
D | TGParser.cpp | 484 static bool isObjectStart(tgtok::TokKind K) { in isObjectStart() 1091 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation() 1416 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
|
/external/llvm-project/llvm/lib/TableGen/ |
D | TGLexer.h | 32 enum TokKind { enum 88 tgtok::TokKind CurCode = tgtok::TokKind::Eof; 106 tgtok::TokKind Lex() { in Lex() 114 tgtok::TokKind getCode() const { return CurCode; } in getCode() 136 tgtok::TokKind LexToken(bool FileOrLineStart = false); 138 tgtok::TokKind ReturnError(SMLoc Loc, const Twine &Msg); 139 tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg); 145 tgtok::TokKind LexIdentifier(); 147 tgtok::TokKind LexString(); 148 tgtok::TokKind LexVarName(); [all …]
|
D | TGLexer.cpp | 36 tgtok::TokKind Kind; 70 tgtok::TokKind TGLexer::ReturnError(SMLoc Loc, const Twine &Msg) { in ReturnError() 75 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) { in ReturnError() 137 tgtok::TokKind TGLexer::LexToken(bool FileOrLineStart) { in LexToken() 176 tgtok::TokKind Kind = prepIsDirective(); in LexToken() 267 tgtok::TokKind TGLexer::LexString() { in LexString() 319 tgtok::TokKind TGLexer::LexVarName() { in LexVarName() 333 tgtok::TokKind TGLexer::LexIdentifier() { in LexIdentifier() 344 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str) in LexIdentifier() 389 tgtok::TokKind Tok = LexToken(); in LexInclude() [all …]
|
D | TGParser.h | 213 bool consume(tgtok::TokKind K);
|
D | TGParser.cpp | 485 static bool isObjectStart(tgtok::TokKind K) { in isObjectStart() 491 bool TGParser::consume(tgtok::TokKind K) { in consume() 1097 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation() 1368 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation() 1664 tgtok::TokKind Operation = Lex.getCode(); in ParseOperationForEachFilter()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 30 enum TokKind { enum 74 tgtok::TokKind CurCode; 91 tgtok::TokKind Lex() { in Lex() 99 tgtok::TokKind getCode() const { return CurCode; } in getCode() 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 LexNumber(); [all …]
|
D | TGLexer.cpp | 42 tgtok::TokKind TGLexer::ReturnError(const char *Loc, const Twine &Msg) { in ReturnError() 88 tgtok::TokKind TGLexer::LexToken() { in LexToken() 183 tgtok::TokKind TGLexer::LexString() { in LexString() 235 tgtok::TokKind TGLexer::LexVarName() { in LexVarName() 250 tgtok::TokKind TGLexer::LexIdentifier() { in LexIdentifier() 266 tgtok::TokKind Kind = StringSwitch<tgtok::TokKind>(Str) in LexIdentifier() 293 tgtok::TokKind Tok = LexToken(); in LexInclude() 379 tgtok::TokKind TGLexer::LexNumber() { in LexNumber() 434 tgtok::TokKind TGLexer::LexBracket() { in LexBracket() 457 tgtok::TokKind TGLexer::LexExclaim() { in LexExclaim() [all …]
|
D | TGParser.cpp | 360 static bool isObjectStart(tgtok::TokKind K) { in isObjectStart() 880 tgtok::TokKind OpTok = Lex.getCode(); in ParseOperation() 968 tgtok::TokKind LexCode = Lex.getCode(); in ParseOperation()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | BracesAroundStatementsCheck.cpp | 44 tok::TokenKind TokKind = getTokenKind(Loc, SM, Context); in forwardSkipWhitespaceAndComments() local 45 if (TokKind != tok::comment) in forwardSkipWhitespaceAndComments() 62 tok::TokenKind TokKind = getTokenKind(Loc, SM, Context); in findEndLocation() local 63 if (TokKind == tok::NUM_TOKENS || TokKind == tok::semi || in findEndLocation() 64 TokKind == tok::r_brace) { in findEndLocation() 74 tok::TokenKind TokKind = getTokenKind(Loc, SM, Context); in findEndLocation() local 75 if (TokKind == tok::semi) in findEndLocation() 89 tok::TokenKind TokKind = getTokenKind(Loc, SM, Context); in findEndLocation() local 90 if (TokKind != tok::comment) { in findEndLocation() 198 tok::TokenKind TokKind = getTokenKind(RParenLoc, SM, Context); in findRParenLoc() local [all …]
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 1428 unsigned TokKind = 0; in ParseLambdaExpressionAfterIntroducer() local 1430 case tok::kw_mutable: TokKind = 0; break; in ParseLambdaExpressionAfterIntroducer() 1431 case tok::arrow: TokKind = 1; break; in ParseLambdaExpressionAfterIntroducer() 1438 case tok::l_square: TokKind = 2; break; in ParseLambdaExpressionAfterIntroducer() 1439 case tok::kw_constexpr: TokKind = 3; break; in ParseLambdaExpressionAfterIntroducer() 1440 case tok::kw_consteval: TokKind = 4; break; in ParseLambdaExpressionAfterIntroducer() 1441 case tok::kw_requires: TokKind = 5; break; in ParseLambdaExpressionAfterIntroducer() 1446 << TokKind in ParseLambdaExpressionAfterIntroducer()
|
/external/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 1235 unsigned TokKind = 0; in ParseLambdaExpressionAfterIntroducer() local 1237 case tok::kw_mutable: TokKind = 0; break; in ParseLambdaExpressionAfterIntroducer() 1238 case tok::arrow: TokKind = 1; break; in ParseLambdaExpressionAfterIntroducer() 1240 case tok::l_square: TokKind = 2; break; in ParseLambdaExpressionAfterIntroducer() 1241 case tok::kw_constexpr: TokKind = 3; break; in ParseLambdaExpressionAfterIntroducer() 1246 << TokKind in ParseLambdaExpressionAfterIntroducer()
|
/external/llvm-project/llvm/lib/MC/MCParser/ |
D | MasmParser.cpp | 1915 AsmToken::TokenKind TokKind = Lexer.getKind(); in parseBinOpRHS() local 1917 TokKind = StringSwitch<AsmToken::TokenKind>(Lexer.getTok().getString()) in parseBinOpRHS() 1927 .Default(TokKind); in parseBinOpRHS() 1930 unsigned TokPrec = getBinOpPrecedence(TokKind, Kind); in parseBinOpRHS()
|