Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h41 SmallVector<AsmToken, 1> CurTok; variable
74 assert(!CurTok.empty()); in Lex()
76 IsAtStartOfStatement = CurTok.front().getKind() == AsmToken::EndOfStatement; in Lex()
77 CurTok.erase(CurTok.begin()); in Lex()
80 if (CurTok.empty()) { in Lex()
82 CurTok.insert(CurTok.begin(), T); in Lex()
84 return CurTok.front(); in Lex()
89 CurTok.insert(CurTok.begin(), Token); in UnLex()
101 return CurTok[0]; in getTok()
/external/llvm-project/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h41 SmallVector<AsmToken, 1> CurTok; variable
78 assert(!CurTok.empty()); in Lex()
80 IsAtStartOfStatement = CurTok.front().getKind() == AsmToken::EndOfStatement; in Lex()
81 CurTok.erase(CurTok.begin()); in Lex()
84 if (CurTok.empty()) { in Lex()
86 CurTok.insert(CurTok.begin(), T); in Lex()
88 return CurTok.front(); in Lex()
93 CurTok.insert(CurTok.begin(), Token); in UnLex()
105 return CurTok[0]; in getTok()
/external/llvm-project/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 …]
/external/llvm-project/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 …]
/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 …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h127 SmallVector<AsmToken, 1> CurTok; variable
157 assert(!CurTok.empty()); in Lex()
158 CurTok.erase(CurTok.begin()); in Lex()
161 if (CurTok.empty()) { in Lex()
163 CurTok.insert(CurTok.begin(), T); in Lex()
165 return CurTok.front(); in Lex()
169 CurTok.insert(CurTok.begin(), Token); in UnLex()
179 return CurTok[0]; in getTok()
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp166 static int CurTok; variable
167 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
175 if (!isascii(CurTok)) in GetTokPrecedence()
179 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
211 if (CurTok != ')') in ParseParenExpr()
225 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
231 if (CurTok != ')') { in ParseIdentifierExpr()
238 if (CurTok == ')') in ParseIdentifierExpr()
241 if (CurTok != ',') in ParseIdentifierExpr()
258 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
295 if (!isascii(CurTok)) in GetTokPrecedence()
299 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
332 if (CurTok != ')') in ParseParenExpr()
346 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
352 if (CurTok != ')') { in ParseIdentifierExpr()
359 if (CurTok == ')') in ParseIdentifierExpr()
362 if (CurTok != ',') in ParseIdentifierExpr()
383 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
295 if (!isascii(CurTok)) in GetTokPrecedence()
299 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
332 if (CurTok != ')') in ParseParenExpr()
346 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
352 if (CurTok != ')') { in ParseIdentifierExpr()
359 if (CurTok == ')') in ParseIdentifierExpr()
362 if (CurTok != ',') in ParseIdentifierExpr()
383 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp274 static int CurTok; variable
275 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
283 if (!isascii(CurTok)) in GetTokPrecedence()
287 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
320 if (CurTok != ')') in ParseParenExpr()
334 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
340 if (CurTok != ')') { in ParseIdentifierExpr()
347 if (CurTok == ')') in ParseIdentifierExpr()
350 if (CurTok != ',') in ParseIdentifierExpr()
371 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
295 if (!isascii(CurTok)) in GetTokPrecedence()
299 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
332 if (CurTok != ')') in ParseParenExpr()
346 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
352 if (CurTok != ')') { in ParseIdentifierExpr()
359 if (CurTok == ')') in ParseIdentifierExpr()
362 if (CurTok != ',') in ParseIdentifierExpr()
383 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp172 static int CurTok; variable
173 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
181 if (!isascii(CurTok)) in GetTokPrecedence()
185 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
217 if (CurTok != ')') in ParseParenExpr()
231 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
237 if (CurTok != ')') { in ParseIdentifierExpr()
244 if (CurTok == ')') in ParseIdentifierExpr()
247 if (CurTok != ',') in ParseIdentifierExpr()
264 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
Dtoy.cpp298 static int CurTok; variable
299 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
307 if (!isascii(CurTok)) in GetTokPrecedence()
311 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
344 if (CurTok != ')') in ParseParenExpr()
358 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
364 if (CurTok != ')') { in ParseIdentifierExpr()
371 if (CurTok == ')') in ParseIdentifierExpr()
374 if (CurTok != ',') in ParseIdentifierExpr()
395 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
Dtoy.cpp298 static int CurTok; variable
299 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
307 if (!isascii(CurTok)) in GetTokPrecedence()
311 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
344 if (CurTok != ')') in ParseParenExpr()
358 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
364 if (CurTok != ')') { in ParseIdentifierExpr()
371 if (CurTok == ')') in ParseIdentifierExpr()
374 if (CurTok != ',') in ParseIdentifierExpr()
395 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
Dtoy.cpp281 static int CurTok; variable
282 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
290 if (!isascii(CurTok)) in GetTokPrecedence()
294 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
327 if (CurTok != ')') in ParseParenExpr()
341 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
347 if (CurTok != ')') { in ParseIdentifierExpr()
354 if (CurTok == ')') in ParseIdentifierExpr()
357 if (CurTok != ',') in ParseIdentifierExpr()
378 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp304 static int CurTok; variable
305 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
313 if (!isascii(CurTok)) in GetTokPrecedence()
317 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
350 if (CurTok != ')') in ParseParenExpr()
364 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
370 if (CurTok != ')') { in ParseIdentifierExpr()
377 if (CurTok == ')') in ParseIdentifierExpr()
380 if (CurTok != ',') in ParseIdentifierExpr()
401 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
Dtoy.cpp298 static int CurTok; variable
299 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
307 if (!isascii(CurTok)) in GetTokPrecedence()
311 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
344 if (CurTok != ')') in ParseParenExpr()
358 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
364 if (CurTok != ')') { in ParseIdentifierExpr()
371 if (CurTok == ')') in ParseIdentifierExpr()
374 if (CurTok != ',') in ParseIdentifierExpr()
395 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp303 static int CurTok; variable
304 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
312 if (!isascii(CurTok)) in GetTokPrecedence()
316 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
349 if (CurTok != ')') in ParseParenExpr()
363 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
369 if (CurTok != ')') { in ParseIdentifierExpr()
376 if (CurTok == ')') in ParseIdentifierExpr()
379 if (CurTok != ',') in ParseIdentifierExpr()
400 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
Dtoy.cpp289 static int CurTok; variable
290 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
298 if (!isascii(CurTok)) in GetTokPrecedence()
302 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
335 if (CurTok != ')') in ParseParenExpr()
349 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
355 if (CurTok != ')') { in ParseIdentifierExpr()
362 if (CurTok == ')') in ParseIdentifierExpr()
365 if (CurTok != ',') in ParseIdentifierExpr()
386 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
295 if (!isascii(CurTok)) in GetTokPrecedence()
299 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
332 if (CurTok != ')') in ParseParenExpr()
346 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
352 if (CurTok != ')') { in ParseIdentifierExpr()
359 if (CurTok == ')') in ParseIdentifierExpr()
362 if (CurTok != ',') in ParseIdentifierExpr()
383 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp283 static int CurTok; variable
284 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
292 if (!isascii(CurTok)) in GetTokPrecedence()
296 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
329 if (CurTok != ')') in ParseParenExpr()
343 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
349 if (CurTok != ')') { in ParseIdentifierExpr()
356 if (CurTok == ')') in ParseIdentifierExpr()
359 if (CurTok != ',') in ParseIdentifierExpr()
380 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp281 static int CurTok; variable
282 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
290 if (!isascii(CurTok)) in GetTokPrecedence()
294 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
327 if (CurTok != ')') in ParseParenExpr()
341 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
347 if (CurTok != ')') { in ParseIdentifierExpr()
354 if (CurTok == ')') in ParseIdentifierExpr()
357 if (CurTok != ',') in ParseIdentifierExpr()
378 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp266 static int CurTok; variable
267 static int getNextToken() { return CurTok = gettok(); } in getNextToken()
275 if (!isascii(CurTok)) in GetTokPrecedence()
279 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
312 if (CurTok != ')') in ParseParenExpr()
326 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
332 if (CurTok != ')') { in ParseIdentifierExpr()
339 if (CurTok == ')') in ParseIdentifierExpr()
342 if (CurTok != ',') in ParseIdentifierExpr()
363 if (CurTok != tok_then) in ParseIfExpr()
[all …]

123