/external/llvm/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 139 static int CurTok; variable 141 return CurTok = gettok(); in getNextToken() 150 if (!isascii(CurTok)) in GetTokPrecedence() 154 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 173 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 179 if (CurTok != ')') { in ParseIdentifierExpr() 185 if (CurTok == ')') break; in ParseIdentifierExpr() 187 if (CurTok != ',') in ParseIdentifierExpr() 212 if (CurTok != ')') in ParseParenExpr() 223 switch (CurTok) { in ParsePrimary() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 248 static int CurTok; variable 249 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 257 if (!isascii(CurTok)) in GetTokPrecedence() 261 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 291 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 297 if (CurTok != ')') { in ParseIdentifierExpr() 304 if (CurTok == ')') in ParseIdentifierExpr() 307 if (CurTok != ',') in ParseIdentifierExpr() 333 if (CurTok != ')') in ParseParenExpr() 348 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
D | toy-jit.cpp | 257 static int CurTok; variable 259 return CurTok = gettok(); in getNextToken() 268 if (!isascii(CurTok)) in GetTokPrecedence() 272 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 292 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 298 if (CurTok != ')') { in ParseIdentifierExpr() 304 if (CurTok == ')') break; in ParseIdentifierExpr() 306 if (CurTok != ',') in ParseIdentifierExpr() 331 if (CurTok != ')') in ParseParenExpr() 345 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
D | toy.cpp | 264 static int CurTok; variable 266 return CurTok = gettok(); in getNextToken() 275 if (!isascii(CurTok)) in GetTokPrecedence() 279 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 299 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 305 if (CurTok != ')') { in ParseIdentifierExpr() 311 if (CurTok == ')') break; in ParseIdentifierExpr() 313 if (CurTok != ',') in ParseIdentifierExpr() 338 if (CurTok != ')') in ParseParenExpr() 352 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 268 static int CurTok; variable 269 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 277 if (!isascii(CurTok)) in GetTokPrecedence() 281 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 311 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 317 if (CurTok != ')') { in ParseIdentifierExpr() 324 if (CurTok == ')') in ParseIdentifierExpr() 327 if (CurTok != ',') in ParseIdentifierExpr() 353 if (CurTok != ')') in ParseParenExpr() 368 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
D | toy-jit.cpp | 242 static int CurTok; variable 244 return CurTok = gettok(); in getNextToken() 253 if (!isascii(CurTok)) in GetTokPrecedence() 257 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 277 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 283 if (CurTok != ')') { in ParseIdentifierExpr() 289 if (CurTok == ')') break; in ParseIdentifierExpr() 291 if (CurTok != ',') in ParseIdentifierExpr() 316 if (CurTok != ')') in ParseParenExpr() 330 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
D | toy.cpp | 243 static int CurTok; variable 245 return CurTok = gettok(); in getNextToken() 254 if (!isascii(CurTok)) in GetTokPrecedence() 258 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 278 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 284 if (CurTok != ')') { in ParseIdentifierExpr() 290 if (CurTok == ')') break; in ParseIdentifierExpr() 292 if (CurTok != ',') in ParseIdentifierExpr() 317 if (CurTok != ')') in ParseParenExpr() 331 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 159 static int CurTok; variable 161 return CurTok = gettok(); in getNextToken() 170 if (!isascii(CurTok)) in GetTokPrecedence() 174 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 194 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 200 if (CurTok != ')') { in ParseIdentifierExpr() 206 if (CurTok == ')') break; in ParseIdentifierExpr() 208 if (CurTok != ',') in ParseIdentifierExpr() 233 if (CurTok != ')') in ParseParenExpr() 244 switch (CurTok) { in ParsePrimary() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/initial/ |
D | toy.cpp | 241 static int CurTok; variable 243 return CurTok = gettok(); in getNextToken() 252 if (!isascii(CurTok)) in GetTokPrecedence() 256 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 276 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 282 if (CurTok != ')') { in ParseIdentifierExpr() 288 if (CurTok == ')') break; in ParseIdentifierExpr() 290 if (CurTok != ',') in ParseIdentifierExpr() 315 if (CurTok != ')') in ParseParenExpr() 329 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 217 static int CurTok; variable 218 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 226 if (!isascii(CurTok)) in GetTokPrecedence() 230 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 260 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 266 if (CurTok != ')') { in ParseIdentifierExpr() 273 if (CurTok == ')') in ParseIdentifierExpr() 276 if (CurTok != ',') in ParseIdentifierExpr() 302 if (CurTok != ')') in ParseParenExpr() 317 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter8/ |
D | toy.cpp | 410 static int CurTok; variable 411 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 419 if (!isascii(CurTok)) in GetTokPrecedence() 423 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 455 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 461 if (CurTok != ')') { in ParseIdentifierExpr() 468 if (CurTok == ')') in ParseIdentifierExpr() 471 if (CurTok != ',') in ParseIdentifierExpr() 497 if (CurTok != ')') in ParseParenExpr() 514 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/complete/ |
D | toy.cpp | 283 static int CurTok; variable 285 return CurTok = gettok(); in getNextToken() 294 if (!isascii(CurTok)) in GetTokPrecedence() 298 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 318 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 324 if (CurTok != ')') { in ParseIdentifierExpr() 330 if (CurTok == ')') break; in ParseIdentifierExpr() 332 if (CurTok != ',') in ParseIdentifierExpr() 357 if (CurTok != ')') in ParseParenExpr() 371 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Orc/lazy_irgen/ |
D | toy.cpp | 257 static int CurTok; variable 259 return CurTok = gettok(); in getNextToken() 268 if (!isascii(CurTok)) in GetTokPrecedence() 272 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 299 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 305 if (CurTok != ')') { in ParseIdentifierExpr() 311 if (CurTok == ')') break; in ParseIdentifierExpr() 313 if (CurTok != ',') in ParseIdentifierExpr() 339 if (CurTok != ')') in ParseParenExpr() 354 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Orc/initial/ |
D | toy.cpp | 257 static int CurTok; variable 259 return CurTok = gettok(); in getNextToken() 268 if (!isascii(CurTok)) in GetTokPrecedence() 272 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 299 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 305 if (CurTok != ')') { in ParseIdentifierExpr() 311 if (CurTok == ')') break; in ParseIdentifierExpr() 313 if (CurTok != ',') in ParseIdentifierExpr() 339 if (CurTok != ')') in ParseParenExpr() 354 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/ |
D | toy.cpp | 257 static int CurTok; variable 259 return CurTok = gettok(); in getNextToken() 268 if (!isascii(CurTok)) in GetTokPrecedence() 272 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 299 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 305 if (CurTok != ')') { in ParseIdentifierExpr() 311 if (CurTok == ')') break; in ParseIdentifierExpr() 313 if (CurTok != ',') in ParseIdentifierExpr() 339 if (CurTok != ')') in ParseParenExpr() 354 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/examples/Kaleidoscope/Orc/fully_lazy/ |
D | toy.cpp | 258 static int CurTok; variable 260 return CurTok = gettok(); in getNextToken() 269 if (!isascii(CurTok)) in GetTokPrecedence() 273 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 300 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 306 if (CurTok != ')') { in ParseIdentifierExpr() 312 if (CurTok == ')') break; in ParseIdentifierExpr() 314 if (CurTok != ',') in ParseIdentifierExpr() 340 if (CurTok != ')') in ParseParenExpr() 355 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmLexer.h | 121 AsmToken CurTok; variable 151 return CurTok = LexToken(); in Lex() 161 return CurTok; in getTok() 178 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } in getKind() 181 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } in is() 184 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); } in isNot()
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 177 static int CurTok; variable 178 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 186 if (!isascii(CurTok)) in GetTokPrecedence() 190 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 220 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 226 if (CurTok != ')') { in ParseIdentifierExpr() 233 if (CurTok == ')') in ParseIdentifierExpr() 236 if (CurTok != ',') in ParseIdentifierExpr() 262 if (CurTok != ')') in ParseParenExpr() 273 switch (CurTok) { in ParsePrimary() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
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/clang/lib/Lex/ |
D | TokenLexer.cpp | 184 const Token &CurTok = Tokens[i]; in ExpandFunctionArguments() local 185 if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace()) in ExpandFunctionArguments() 188 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) { in ExpandFunctionArguments() 193 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments() 198 if (CurTok.is(tok::hash)) // Stringify in ExpandFunctionArguments() 232 IdentifierInfo *II = CurTok.getIdentifierInfo(); in ExpandFunctionArguments() 236 ResultToks.push_back(CurTok); in ExpandFunctionArguments() 298 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments() 342 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments()
|
D | PPDirectives.cpp | 1397 Token CurTok; in ConcatenateIncludeName() local 1399 Lex(CurTok); in ConcatenateIncludeName() 1400 while (CurTok.isNot(tok::eod)) { in ConcatenateIncludeName() 1401 End = CurTok.getLocation(); in ConcatenateIncludeName() 1404 if (CurTok.is(tok::code_completion)) { in ConcatenateIncludeName() 1406 Lex(CurTok); in ConcatenateIncludeName() 1412 if (CurTok.hasLeadingSpace()) in ConcatenateIncludeName() 1417 FilenameBuffer.resize(PreAppendSize+CurTok.getLength()); in ConcatenateIncludeName() 1420 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName() 1427 if (CurTok.getLength() != ActualLen) in ConcatenateIncludeName() [all …]
|
/external/llvm/docs/tutorial/ |
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 | 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 | 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)
|
/external/llvm/lib/MC/MCParser/ |
D | MCAsmLexer.cpp | 15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), in MCAsmLexer()
|