Home
last modified time | relevance | path

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

12

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp139 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/
Dtoy.cpp248 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/
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/Chapter7/
Dtoy.cpp268 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/
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/Chapter3/
Dtoy.cpp159 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/
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/Chapter5/
Dtoy.cpp217 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/
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()
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/
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/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/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_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/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/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h121 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/
Dtoy.cpp177 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/
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.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()
DPPDirectives.cpp1397 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/
DLangImpl2.rst153 /// 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 …]
DLangImpl6.rst170 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 …]
DLangImpl5.rst119 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/
DMCAsmLexer.cpp15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), in MCAsmLexer()

12