OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:CurTok
(Results
1 - 17
of
17
) sorted by null
/external/llvm/examples/Kaleidoscope/Chapter2/
toy.cpp
134
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
136
/// lexer and updates
CurTok
with its results.
137
static int
CurTok
;
139
return
CurTok
= gettok();
148
if (!isascii(
CurTok
))
152
int TokPrec = BinopPrecedence[
CurTok
];
172
if (
CurTok
!= '(') // Simple variable ref.
178
if (
CurTok
!= ')') {
184
if (
CurTok
== ')') break
[
all
...]
/external/llvm/include/llvm/MC/MCParser/
MCAsmLexer.h
110
AsmToken
CurTok
;
139
return
CurTok
= LexToken();
149
return
CurTok
;
163
AsmToken::TokenKind getKind() const { return
CurTok
.getKind(); }
166
bool is(AsmToken::TokenKind K) const { return
CurTok
.is(K); }
169
bool isNot(AsmToken::TokenKind K) const { return
CurTok
.isNot(K); }
/external/llvm/lib/MC/MCParser/
MCAsmLexer.cpp
15
MCAsmLexer::MCAsmLexer() :
CurTok
(AsmToken::Error, StringRef()),
/external/llvm/examples/Kaleidoscope/Chapter6/
toy.cpp
218
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
220
/// lexer and updates
CurTok
with its results.
221
static int
CurTok
;
223
return
CurTok
= gettok();
232
if (!isascii(
CurTok
))
236
int TokPrec = BinopPrecedence[
CurTok
];
256
if (
CurTok
!= '(') // Simple variable ref.
262
if (
CurTok
!= ')') {
268
if (
CurTok
== ')') break
[
all
...]
/external/llvm/examples/Kaleidoscope/Chapter3/
toy.cpp
154
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
156
/// lexer and updates
CurTok
with its results.
157
static int
CurTok
;
159
return
CurTok
= gettok();
168
if (!isascii(
CurTok
))
172
int TokPrec = BinopPrecedence[
CurTok
];
192
if (
CurTok
!= '(') // Simple variable ref.
198
if (
CurTok
!= ')') {
204
if (
CurTok
== ')') break
[
all
...]
/external/llvm/examples/Kaleidoscope/Chapter7/
toy.cpp
236
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
238
/// lexer and updates
CurTok
with its results.
239
static int
CurTok
;
241
return
CurTok
= gettok();
250
if (!isascii(
CurTok
))
254
int TokPrec = BinopPrecedence[
CurTok
];
274
if (
CurTok
!= '(') // Simple variable ref.
280
if (
CurTok
!= ')') {
286
if (
CurTok
== ')') break
[
all
...]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
toy-jit.cpp
254
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
256
/// lexer and updates
CurTok
with its results.
257
static int
CurTok
;
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
== ')') break
[
all
...]
toy.cpp
260
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
262
/// lexer and updates
CurTok
with its results.
263
static int
CurTok
;
265
return
CurTok
= gettok();
274
if (!isascii(
CurTok
))
278
int TokPrec = BinopPrecedence[
CurTok
];
298
if (
CurTok
!= '(') // Simple variable ref.
304
if (
CurTok
!= ')') {
310
if (
CurTok
== ')') break
[
all
...]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
toy.cpp
237
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
239
/// lexer and updates
CurTok
with its results.
240
static int
CurTok
;
242
return
CurTok
= gettok();
251
if (!isascii(
CurTok
))
255
int TokPrec = BinopPrecedence[
CurTok
];
275
if (
CurTok
!= '(') // Simple variable ref.
281
if (
CurTok
!= ')') {
287
if (
CurTok
== ')') break
[
all
...]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
toy-jit.cpp
239
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
241
/// lexer and updates
CurTok
with its results.
242
static int
CurTok
;
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
== ')') break
[
all
...]
toy.cpp
239
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
241
/// lexer and updates
CurTok
with its results.
242
static int
CurTok
;
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
== ')') break
[
all
...]
/external/llvm/examples/Kaleidoscope/Chapter5/
toy.cpp
190
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
192
/// lexer and updates
CurTok
with its results.
193
static int
CurTok
;
195
return
CurTok
= gettok();
204
if (!isascii(
CurTok
))
208
int TokPrec = BinopPrecedence[
CurTok
];
228
if (
CurTok
!= '(') // Simple variable ref.
234
if (
CurTok
!= ')') {
240
if (
CurTok
== ')') break
[
all
...]
/external/llvm/examples/Kaleidoscope/Chapter4/
toy.cpp
161
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
163
/// lexer and updates
CurTok
with its results.
164
static int
CurTok
;
166
return
CurTok
= gettok();
175
if (!isascii(
CurTok
))
179
int TokPrec = BinopPrecedence[
CurTok
];
199
if (
CurTok
!= '(') // Simple variable ref.
205
if (
CurTok
!= ')') {
211
if (
CurTok
== ')') break
[
all
...]
/external/clang/lib/Rewrite/Frontend/
RewriteMacros.cpp
49
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
++];
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
toy.cpp
284
///
CurTok
/getNextToken - Provide a simple token buffer.
CurTok
is the current
286
/// lexer and updates
CurTok
with its results.
287
static int
CurTok
;
289
return
CurTok
= gettok();
298
if (!isascii(
CurTok
))
302
int TokPrec = BinopPrecedence[
CurTok
];
322
if (
CurTok
!= '(') // Simple variable ref.
328
if (
CurTok
!= ')') {
334
if (
CurTok
== ')') break
[
all
...]
/external/clang/lib/Lex/
TokenLexer.cpp
191
const Token &
CurTok
= Tokens[i];
192
if (
CurTok
.is(tok::hash) ||
CurTok
.is(tok::hashat)) {
197
getExpansionLocForMacroDefLoc(
CurTok
.getLocation());
202
if (
CurTok
.is(tok::hash)) // Stringify
216
if (
CurTok
.hasLeadingSpace() || NextTokGetsSpace)
228
IdentifierInfo *II =
CurTok
.getIdentifierInfo();
232
ResultToks.push_back(
CurTok
);
298
updateLocForMacroArgTokens(
CurTok
.getLocation(),
307
CurTok
.hasLeadingSpace() |
[
all
...]
PPDirectives.cpp
[
all
...]
Completed in 1276 milliseconds