Home
last modified time | relevance | path

Searched refs:CurTok (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp242 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 …]
Dtoy.cpp243 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/MCJIT/cached/
Dtoy-jit.cpp257 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 …]
Dtoy.cpp264 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/Chapter2/
Dtoy.cpp171 static int CurTok; variable
172 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
180 if (!isascii(CurTok)) in GetTokPrecedence()
184 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
216 if (CurTok != ')') in ParseParenExpr()
230 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
236 if (CurTok != ')') { in ParseIdentifierExpr()
243 if (CurTok == ')') in ParseIdentifierExpr()
246 if (CurTok != ',') in ParseIdentifierExpr()
263 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h121 SmallVector<AsmToken, 1> CurTok; variable
151 assert(!CurTok.empty()); in Lex()
152 CurTok.erase(CurTok.begin()); in Lex()
153 if (CurTok.empty()) in Lex()
154 CurTok.emplace_back(LexToken()); in Lex()
155 return CurTok.front(); in Lex()
159 CurTok.insert(CurTok.begin(), Token); in UnLex()
169 return CurTok[0]; in getTok()
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp273 static int CurTok; variable
274 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
282 if (!isascii(CurTok)) in GetTokPrecedence()
286 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
319 if (CurTok != ')') in ParseParenExpr()
333 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
339 if (CurTok != ')') { in ParseIdentifierExpr()
346 if (CurTok == ')') in ParseIdentifierExpr()
349 if (CurTok != ',') in ParseIdentifierExpr()
370 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp254 static int CurTok; variable
255 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
263 if (!isascii(CurTok)) in GetTokPrecedence()
267 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
300 if (CurTok != ')') in ParseParenExpr()
314 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
320 if (CurTok != ')') { in ParseIdentifierExpr()
327 if (CurTok == ')') in ParseIdentifierExpr()
330 if (CurTok != ',') in ParseIdentifierExpr()
351 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp241 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/MCJIT/complete/
Dtoy.cpp283 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/initial/
Dtoy.cpp257 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_irgen/
Dtoy.cpp257 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/Chapter8/
Dtoy.cpp410 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()
456 if (CurTok != ')') in ParseParenExpr()
472 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
478 if (CurTok != ')') { in ParseIdentifierExpr()
485 if (CurTok == ')') in ParseIdentifierExpr()
488 if (CurTok != ',') in ParseIdentifierExpr()
511 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/
Dtoy.cpp257 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/Chapter5/
Dtoy.cpp221 static int CurTok; variable
222 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
230 if (!isascii(CurTok)) in GetTokPrecedence()
234 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
267 if (CurTok != ')') in ParseParenExpr()
281 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
287 if (CurTok != ')') { in ParseIdentifierExpr()
294 if (CurTok == ')') in ParseIdentifierExpr()
297 if (CurTok != ',') in ParseIdentifierExpr()
318 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp173 static int CurTok; variable
174 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
182 if (!isascii(CurTok)) in GetTokPrecedence()
186 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
219 if (CurTok != ')') in ParseParenExpr()
233 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
239 if (CurTok != ')') { in ParseIdentifierExpr()
246 if (CurTok == ')') in ParseIdentifierExpr()
249 if (CurTok != ',') in ParseIdentifierExpr()
266 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp179 static int CurTok; variable
180 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
188 if (!isascii(CurTok)) in GetTokPrecedence()
192 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
225 if (CurTok != ')') in ParseParenExpr()
239 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
245 if (CurTok != ')') { in ParseIdentifierExpr()
252 if (CurTok == ')') in ParseIdentifierExpr()
255 if (CurTok != ',') in ParseIdentifierExpr()
272 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/fully_lazy/
Dtoy.cpp258 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/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp49 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/
DTokenLexer.cpp184 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.isOneOf(tok::hash, 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()
DPPDirectives.cpp1393 Token CurTok; in ConcatenateIncludeName() local
1395 Lex(CurTok); in ConcatenateIncludeName()
1396 while (CurTok.isNot(tok::eod)) { in ConcatenateIncludeName()
1397 End = CurTok.getLocation(); in ConcatenateIncludeName()
1400 if (CurTok.is(tok::code_completion)) { in ConcatenateIncludeName()
1402 Lex(CurTok); in ConcatenateIncludeName()
1408 if (CurTok.hasLeadingSpace()) in ConcatenateIncludeName()
1413 FilenameBuffer.resize(PreAppendSize+CurTok.getLength()); in ConcatenateIncludeName()
1416 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName()
1423 if (CurTok.getLength() != ActualLen) in ConcatenateIncludeName()
[all …]
/external/llvm/docs/tutorial/
DLangImpl2.rst163 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
165 /// lexer and updates CurTok with its results.
166 static int CurTok;
168 return CurTok = gettok();
173 in our parser will assume that CurTok is the current token that needs to
235 if (CurTok != ')')
274 if (CurTok != '(') // Simple variable ref.
280 if (CurTok != ')') {
287 if (CurTok == ')')
290 if (CurTok != ',')
[all …]
DLangImpl6.rst177 switch (CurTok) {
187 if (!isascii(CurTok))
190 FnName += (char)CurTok;
195 if (CurTok == tok_number) {
204 if (CurTok != '(')
210 if (CurTok != ')')
341 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',')
345 int Opc = CurTok;
404 switch (CurTok) {
414 if (!isascii(CurTok))
[all …]
DLangImpl5.rst129 if (CurTok != tok_then)
137 if (CurTok != tok_else)
155 switch (CurTok) {
520 if (CurTok != tok_identifier)
526 if (CurTok != '=')
534 if (CurTok != ',')
544 if (CurTok == ',') {
551 if (CurTok != tok_in)
/external/llvm/lib/MC/MCParser/
DMCAsmLexer.cpp16 CurTok.emplace_back(AsmToken::Error, StringRef()); in MCAsmLexer()

12