Home
last modified time | relevance | path

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

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp145 static int CurTok; variable
147 return CurTok = gettok(); in getNextToken()
156 if (!isascii(CurTok)) in GetTokPrecedence()
160 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
180 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
186 if (CurTok != ')') { in ParseIdentifierExpr()
192 if (CurTok == ')') break; in ParseIdentifierExpr()
194 if (CurTok != ',') in ParseIdentifierExpr()
219 if (CurTok != ')') in ParseParenExpr()
230 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp221 static int CurTok; variable
223 return CurTok = gettok(); in getNextToken()
232 if (!isascii(CurTok)) in GetTokPrecedence()
236 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
256 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
262 if (CurTok != ')') { in ParseIdentifierExpr()
268 if (CurTok == ')') break; in ParseIdentifierExpr()
270 if (CurTok != ',') in ParseIdentifierExpr()
295 if (CurTok != ')') in ParseParenExpr()
309 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp239 static int CurTok; variable
241 return CurTok = gettok(); in getNextToken()
250 if (!isascii(CurTok)) in GetTokPrecedence()
254 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
274 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
280 if (CurTok != ')') { in ParseIdentifierExpr()
286 if (CurTok == ')') break; in ParseIdentifierExpr()
288 if (CurTok != ',') in ParseIdentifierExpr()
313 if (CurTok != ')') in ParseParenExpr()
327 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/include/llvm/MC/
DMCTargetAsmLexer.h21 AsmToken CurTok; variable
59 return CurTok = LexToken(); in Lex()
64 return CurTok; in getTok()
78 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } in getKind()
81 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } in is()
84 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); } in isNot()
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp157 static int CurTok; variable
159 return CurTok = gettok(); in getNextToken()
168 if (!isascii(CurTok)) in GetTokPrecedence()
172 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
192 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
198 if (CurTok != ')') { in ParseIdentifierExpr()
204 if (CurTok == ')') break; in ParseIdentifierExpr()
206 if (CurTok != ',') in ParseIdentifierExpr()
231 if (CurTok != ')') in ParseParenExpr()
242 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp193 static int CurTok; variable
195 return CurTok = gettok(); in getNextToken()
204 if (!isascii(CurTok)) in GetTokPrecedence()
208 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
228 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
234 if (CurTok != ')') { in ParseIdentifierExpr()
240 if (CurTok == ')') break; in ParseIdentifierExpr()
242 if (CurTok != ',') in ParseIdentifierExpr()
267 if (CurTok != ')') in ParseParenExpr()
281 if (CurTok != tok_then) in ParseIfExpr()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp164 static int CurTok; variable
166 return CurTok = gettok(); in getNextToken()
175 if (!isascii(CurTok)) in GetTokPrecedence()
179 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence()
199 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr()
205 if (CurTok != ')') { in ParseIdentifierExpr()
211 if (CurTok == ')') break; in ParseIdentifierExpr()
213 if (CurTok != ',') in ParseIdentifierExpr()
238 if (CurTok != ')') in ParseParenExpr()
249 switch (CurTok) { in ParsePrimary()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h119 AsmToken CurTok; variable
147 return CurTok = LexToken(); in Lex()
157 return CurTok; in getTok()
171 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } in getKind()
174 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } in is()
177 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); } in isNot()
/external/clang/lib/Lex/
DTokenLexer.cpp142 const Token &CurTok = Tokens[i]; in ExpandFunctionArguments() local
143 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) { in ExpandFunctionArguments()
148 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments()
153 if (CurTok.is(tok::hash)) // Stringify in ExpandFunctionArguments()
167 if (CurTok.hasLeadingSpace() || NextTokGetsSpace) in ExpandFunctionArguments()
179 IdentifierInfo *II = CurTok.getIdentifierInfo(); in ExpandFunctionArguments()
183 ResultToks.push_back(CurTok); in ExpandFunctionArguments()
237 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments()
246 CurTok.hasLeadingSpace() || in ExpandFunctionArguments()
252 NextTokGetsSpace = CurTok.hasLeadingSpace(); in ExpandFunctionArguments()
[all …]
DPPDirectives.cpp1225 Token CurTok; in ConcatenateIncludeName() local
1227 Lex(CurTok); in ConcatenateIncludeName()
1228 while (CurTok.isNot(tok::eod)) { in ConcatenateIncludeName()
1229 End = CurTok.getLocation(); in ConcatenateIncludeName()
1232 if (CurTok.is(tok::code_completion)) { in ConcatenateIncludeName()
1234 Lex(CurTok); in ConcatenateIncludeName()
1240 if (CurTok.hasLeadingSpace()) in ConcatenateIncludeName()
1245 FilenameBuffer.resize(PreAppendSize+CurTok.getLength()); in ConcatenateIncludeName()
1248 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName()
1255 if (CurTok.getLength() != ActualLen) in ConcatenateIncludeName()
[all …]
/external/clang/lib/Rewrite/Frontend/
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/llvm/lib/MC/MCParser/
DMCAsmLexer.cpp15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), TokStart(0) { in MCAsmLexer()