/external/llvm/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 145 static int CurTok; variable 147 return CurTok = gettok(); in getNextToken() 156 if (!isascii(CurTok)) in GetTokPrecedence() 160 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 180 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 186 if (CurTok != ')') { in ParseIdentifierExpr() 192 if (CurTok == ')') break; in ParseIdentifierExpr() 194 if (CurTok != ',') in ParseIdentifierExpr() 219 if (CurTok != ')') in ParseParenExpr() 230 switch (CurTok) { in ParsePrimary() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 221 static int CurTok; variable 223 return CurTok = gettok(); in getNextToken() 232 if (!isascii(CurTok)) in GetTokPrecedence() 236 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 256 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 262 if (CurTok != ')') { in ParseIdentifierExpr() 268 if (CurTok == ')') break; in ParseIdentifierExpr() 270 if (CurTok != ',') in ParseIdentifierExpr() 295 if (CurTok != ')') in ParseParenExpr() 309 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 239 static int CurTok; variable 241 return CurTok = gettok(); in getNextToken() 250 if (!isascii(CurTok)) in GetTokPrecedence() 254 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 274 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 280 if (CurTok != ')') { in ParseIdentifierExpr() 286 if (CurTok == ')') break; in ParseIdentifierExpr() 288 if (CurTok != ',') in ParseIdentifierExpr() 313 if (CurTok != ')') in ParseParenExpr() 327 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 157 static int CurTok; variable 159 return CurTok = gettok(); in getNextToken() 168 if (!isascii(CurTok)) in GetTokPrecedence() 172 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 192 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 198 if (CurTok != ')') { in ParseIdentifierExpr() 204 if (CurTok == ')') break; in ParseIdentifierExpr() 206 if (CurTok != ',') in ParseIdentifierExpr() 231 if (CurTok != ')') in ParseParenExpr() 242 switch (CurTok) { in ParsePrimary() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 193 static int CurTok; variable 195 return CurTok = gettok(); in getNextToken() 204 if (!isascii(CurTok)) in GetTokPrecedence() 208 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 228 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 234 if (CurTok != ')') { in ParseIdentifierExpr() 240 if (CurTok == ')') break; in ParseIdentifierExpr() 242 if (CurTok != ',') in ParseIdentifierExpr() 267 if (CurTok != ')') in ParseParenExpr() 281 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 164 static int CurTok; variable 166 return CurTok = gettok(); in getNextToken() 175 if (!isascii(CurTok)) in GetTokPrecedence() 179 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 199 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 205 if (CurTok != ')') { in ParseIdentifierExpr() 211 if (CurTok == ')') break; in ParseIdentifierExpr() 213 if (CurTok != ',') in ParseIdentifierExpr() 238 if (CurTok != ')') in ParseParenExpr() 249 switch (CurTok) { in ParsePrimary() [all …]
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmLexer.h | 110 AsmToken CurTok; variable 139 return CurTok = LexToken(); in Lex() 149 return CurTok; in getTok() 163 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } in getKind() 166 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } in is() 169 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); } in isNot()
|
/external/clang/lib/Lex/ |
D | TokenLexer.cpp | 191 const Token &CurTok = Tokens[i]; in ExpandFunctionArguments() local 192 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) { in ExpandFunctionArguments() 197 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments() 202 if (CurTok.is(tok::hash)) // Stringify in ExpandFunctionArguments() 216 if (CurTok.hasLeadingSpace() || NextTokGetsSpace) in ExpandFunctionArguments() 228 IdentifierInfo *II = CurTok.getIdentifierInfo(); in ExpandFunctionArguments() 232 ResultToks.push_back(CurTok); in ExpandFunctionArguments() 288 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments() 297 CurTok.hasLeadingSpace() || in ExpandFunctionArguments() 303 NextTokGetsSpace = CurTok.hasLeadingSpace(); in ExpandFunctionArguments() [all …]
|
D | PPDirectives.cpp | 1224 Token CurTok; in ConcatenateIncludeName() local 1226 Lex(CurTok); in ConcatenateIncludeName() 1227 while (CurTok.isNot(tok::eod)) { in ConcatenateIncludeName() 1228 End = CurTok.getLocation(); in ConcatenateIncludeName() 1231 if (CurTok.is(tok::code_completion)) { in ConcatenateIncludeName() 1233 Lex(CurTok); in ConcatenateIncludeName() 1239 if (CurTok.hasLeadingSpace()) in ConcatenateIncludeName() 1244 FilenameBuffer.resize(PreAppendSize+CurTok.getLength()); in ConcatenateIncludeName() 1247 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName() 1254 if (CurTok.getLength() != ActualLen) in ConcatenateIncludeName() [all …]
|
/external/clang/lib/Rewrite/Frontend/ |
D | RewriteMacros.cpp | 49 unsigned &CurTok, bool ReturnComment) { in GetNextRawTok() argument 50 assert(CurTok < RawTokens.size() && "Overran eof!"); in GetNextRawTok() 53 if (!ReturnComment && RawTokens[CurTok].is(tok::comment)) in GetNextRawTok() 54 ++CurTok; in GetNextRawTok() 56 return RawTokens[CurTok++]; in GetNextRawTok()
|
/external/llvm/docs/tutorial/ |
D | LangImpl6.rst | 170 switch (CurTok) { 180 if (!isascii(CurTok)) 183 FnName += (char)CurTok; 188 if (CurTok == tok_number) { 197 if (CurTok != '(') 203 if (CurTok != ')') 327 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') 331 int Opc = CurTok; 387 switch (CurTok) { 397 if (!isascii(CurTok)) [all …]
|
D | LangImpl2.rst | 153 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 155 /// lexer and updates CurTok with its results. 156 static int CurTok; 158 return CurTok = gettok(); 163 in our parser will assume that CurTok is the current token that needs to 219 if (CurTok != ')') 258 if (CurTok != '(') // Simple variable ref. 264 if (CurTok != ')') { 270 if (CurTok == ')') break; 272 if (CurTok != ',') [all …]
|
D | LangImpl7.rst | 694 switch (CurTok) { 717 if (CurTok != tok_identifier) 731 if (CurTok == '=') { 741 if (CurTok != ',') break; 744 if (CurTok != tok_identifier) 754 if (CurTok != tok_in) 1094 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 1096 /// lexer and updates CurTok with its results. 1097 static int CurTok; 1099 return CurTok = gettok(); [all …]
|
D | LangImpl5.rst | 119 if (CurTok != tok_then) 126 if (CurTok != tok_else) 142 switch (CurTok) { 489 if (CurTok != tok_identifier) 495 if (CurTok != '=') 502 if (CurTok != ',') 511 if (CurTok == ',') { 517 if (CurTok != tok_in) 936 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 938 /// lexer and updates CurTok with its results. [all …]
|
D | LangImpl4.rst | 603 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 605 /// lexer and updates CurTok with its results. 606 static int CurTok; 608 return CurTok = gettok(); 617 if (!isascii(CurTok)) 621 int TokPrec = BinopPrecedence[CurTok]; 641 if (CurTok != '(') // Simple variable ref. 647 if (CurTok != ')') { 653 if (CurTok == ')') break; 655 if (CurTok != ',') [all …]
|
D | LangImpl3.rst | 748 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 750 /// lexer and updates CurTok with its results. 751 static int CurTok; 753 return CurTok = gettok(); 762 if (!isascii(CurTok)) 766 int TokPrec = BinopPrecedence[CurTok]; 786 if (CurTok != '(') // Simple variable ref. 792 if (CurTok != ')') { 798 if (CurTok == ')') break; 800 if (CurTok != ',') [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | MCAsmLexer.cpp | 15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), in MCAsmLexer()
|