Searched refs:CurTok (Results 1 - 22 of 22) sorted by relevance

/external/llvm/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp136 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
138 /// lexer and updates CurTok with its results.
139 static int CurTok; variable
141 return CurTok = gettok();
150 if (!isascii(CurTok))
154 int TokPrec = BinopPrecedence[CurTok];
173 if (CurTok != '(') // Simple variable ref.
179 if (CurTok != ')') {
185 if (CurTok
[all...]
/external/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h121 AsmToken CurTok; member in class:llvm::MCAsmLexer
151 return CurTok = LexToken();
161 return CurTok;
178 AsmToken::TokenKind getKind() const { return CurTok.getKind(); }
181 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); }
184 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
/external/llvm/lib/MC/MCParser/
H A DMCAsmLexer.cpp15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()),
/external/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp245 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
247 /// lexer and updates CurTok with its results.
248 static int CurTok; variable
249 static int getNextToken() { return CurTok = gettok(); }
257 if (!isascii(CurTok))
261 int TokPrec = BinopPrecedence[CurTok];
291 if (CurTok != '(') // Simple variable ref.
297 if (CurTok != ')') {
304 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp156 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
158 /// lexer and updates CurTok with its results.
159 static int CurTok; variable
161 return CurTok = gettok();
170 if (!isascii(CurTok))
174 int TokPrec = BinopPrecedence[CurTok];
194 if (CurTok != '(') // Simple variable ref.
200 if (CurTok != ')') {
206 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp265 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
267 /// lexer and updates CurTok with its results.
268 static int CurTok; variable
269 static int getNextToken() { return CurTok = gettok(); }
277 if (!isascii(CurTok))
281 int TokPrec = BinopPrecedence[CurTok];
311 if (CurTok != '(') // Simple variable ref.
317 if (CurTok != ')') {
324 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp407 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
409 /// lexer and updates CurTok with its results.
410 static int CurTok; variable
411 static int getNextToken() { return CurTok = gettok(); }
419 if (!isascii(CurTok))
423 int TokPrec = BinopPrecedence[CurTok];
455 if (CurTok != '(') // Simple variable ref.
461 if (CurTok != ')') {
468 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp254 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
256 /// lexer and updates CurTok with its results.
257 static int CurTok; variable
259 return CurTok = gettok();
268 if (!isascii(CurTok))
272 int TokPrec = BinopPrecedence[CurTok];
292 if (CurTok != '(') // Simple variable ref.
298 if (CurTok != ')') {
304 if (CurTok
[all...]
H A Dtoy.cpp261 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
263 /// lexer and updates CurTok with its results.
264 static int CurTok; variable
266 return CurTok = gettok();
275 if (!isascii(CurTok))
279 int TokPrec = BinopPrecedence[CurTok];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp238 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
240 /// lexer and updates CurTok with its results.
241 static int CurTok; variable
243 return CurTok = gettok();
252 if (!isascii(CurTok))
256 int TokPrec = BinopPrecedence[CurTok];
276 if (CurTok != '(') // Simple variable ref.
282 if (CurTok != ')') {
288 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp239 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
241 /// lexer and updates CurTok with its results.
242 static int CurTok; variable
244 return CurTok = gettok();
253 if (!isascii(CurTok))
257 int TokPrec = BinopPrecedence[CurTok];
277 if (CurTok != '(') // Simple variable ref.
283 if (CurTok != ')') {
289 if (CurTok
[all...]
H A Dtoy.cpp240 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
242 /// lexer and updates CurTok with its results.
243 static int CurTok; variable
245 return CurTok = gettok();
254 if (!isascii(CurTok))
258 int TokPrec = BinopPrecedence[CurTok];
278 if (CurTok != '(') // Simple variable ref.
284 if (CurTok != ')') {
290 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp214 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
216 /// lexer and updates CurTok with its results.
217 static int CurTok; variable
218 static int getNextToken() { return CurTok = gettok(); }
226 if (!isascii(CurTok))
230 int TokPrec = BinopPrecedence[CurTok];
260 if (CurTok != '(') // Simple variable ref.
266 if (CurTok != ')') {
273 if (CurTok
[all...]
/external/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp49 unsigned &CurTok, bool ReturnComment) {
50 assert(CurTok < RawTokens.size() && "Overran eof!");
53 if (!ReturnComment && RawTokens[CurTok].is(tok::comment))
54 ++CurTok;
56 return RawTokens[CurTok++];
48 GetNextRawTok(const std::vector<Token> &RawTokens, unsigned &CurTok, bool ReturnComment) argument
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp280 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
282 /// lexer and updates CurTok with its results.
283 static int CurTok; variable
285 return CurTok = gettok();
294 if (!isascii(CurTok))
298 int TokPrec = BinopPrecedence[CurTok];
318 if (CurTok != '(') // Simple variable ref.
324 if (CurTok != ')') {
330 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/fully_lazy/
H A Dtoy.cpp255 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
257 /// lexer and updates CurTok with its results.
258 static int CurTok; variable
260 return CurTok = gettok();
269 if (!isascii(CurTok))
273 int TokPrec = BinopPrecedence[CurTok];
300 if (CurTok != '(') // Simple variable ref.
306 if (CurTok != ')') {
312 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/initial/
H A Dtoy.cpp254 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
256 /// lexer and updates CurTok with its results.
257 static int CurTok; variable
259 return CurTok = gettok();
268 if (!isascii(CurTok))
272 int TokPrec = BinopPrecedence[CurTok];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/
H A Dtoy.cpp254 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
256 /// lexer and updates CurTok with its results.
257 static int CurTok; variable
259 return CurTok = gettok();
268 if (!isascii(CurTok))
272 int TokPrec = BinopPrecedence[CurTok];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/lazy_irgen/
H A Dtoy.cpp254 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
256 /// lexer and updates CurTok with its results.
257 static int CurTok; variable
259 return CurTok = gettok();
268 if (!isascii(CurTok))
272 int TokPrec = BinopPrecedence[CurTok];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp174 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
176 /// lexer and updates CurTok with its results.
177 static int CurTok; variable
178 static int getNextToken() { return CurTok = gettok(); }
186 if (!isascii(CurTok))
190 int TokPrec = BinopPrecedence[CurTok];
220 if (CurTok != '(') // Simple variable ref.
226 if (CurTok != ')') {
233 if (CurTok
[all...]
/external/clang/lib/Lex/
H A DTokenLexer.cpp184 const Token &CurTok = Tokens[i]; local
185 if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace())
188 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) {
193 getExpansionLocForMacroDefLoc(CurTok.getLocation());
198 if (CurTok.is(tok::hash)) // Stringify
232 IdentifierInfo *II = CurTok.getIdentifierInfo();
236 ResultToks.push_back(CurTok);
298 updateLocForMacroArgTokens(CurTok.getLocation(),
342 updateLocForMacroArgTokens(CurTok
[all...]
H A DPPDirectives.cpp1397 Token CurTok; local
1399 Lex(CurTok);
1400 while (CurTok.isNot(tok::eod)) {
1401 End = CurTok.getLocation();
1404 if (CurTok.is(tok::code_completion)) {
1406 Lex(CurTok);
1412 if (CurTok.hasLeadingSpace())
1417 FilenameBuffer.resize(PreAppendSize+CurTok.getLength());
1420 unsigned ActualLen = getSpelling(CurTok, BufPtr);
1427 if (CurTok
[all...]

Completed in 255 milliseconds