/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmLexer.h | 41 SmallVector<AsmToken, 1> CurTok; variable 82 assert(!CurTok.empty()); in Lex() 84 IsAtStartOfStatement = CurTok.front().getKind() == AsmToken::EndOfStatement; in Lex() 85 CurTok.erase(CurTok.begin()); in Lex() 88 if (CurTok.empty()) { in Lex() 90 CurTok.insert(CurTok.begin(), T); in Lex() 92 return CurTok.front(); in Lex() 97 CurTok.insert(CurTok.begin(), Token); in UnLex() 109 return CurTok[0]; in getTok()
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
H A D | toy-jit.cpp | 242 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 …]
|
H A D | toy.cpp | 243 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached/ |
H A D | toy-jit.cpp | 257 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 …]
|
H A D | toy.cpp | 264 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter2/ |
H A D | toy.cpp | 166 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter8/ |
H A D | toy.cpp | 304 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
H A D | toy.cpp | 298 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter7/ |
H A D | toy.cpp | 303 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
H A D | toy.cpp | 298 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
H A D | toy.cpp | 298 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
H A D | toy.cpp | 281 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter6/ |
H A D | toy.cpp | 281 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/initial/ |
H A D | toy.cpp | 241 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter9/ |
H A D | toy.cpp | 411 static int CurTok; variable 412 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 420 if (!isascii(CurTok)) in GetTokPrecedence() 424 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 457 if (CurTok != ')') in ParseParenExpr() 473 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 479 if (CurTok != ')') { in ParseIdentifierExpr() 486 if (CurTok == ')') in ParseIdentifierExpr() 489 if (CurTok != ',') in ParseIdentifierExpr() 512 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete/ |
H A D | toy.cpp | 283 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter3/ |
H A D | toy.cpp | 192 static int CurTok; variable 193 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 201 if (!isascii(CurTok)) in GetTokPrecedence() 205 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 238 if (CurTok != ')') in ParseParenExpr() 252 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 258 if (CurTok != ')') { in ParseIdentifierExpr() 265 if (CurTok == ')') in ParseIdentifierExpr() 268 if (CurTok != ',') in ParseIdentifierExpr() 285 switch (CurTok) { in ParsePrimary() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter5/ |
H A D | toy.cpp | 247 static int CurTok; variable 248 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 256 if (!isascii(CurTok)) in GetTokPrecedence() 260 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 293 if (CurTok != ')') in ParseParenExpr() 307 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 313 if (CurTok != ')') { in ParseIdentifierExpr() 320 if (CurTok == ')') in ParseIdentifierExpr() 323 if (CurTok != ',') in ParseIdentifierExpr() 344 if (CurTok != tok_then) in ParseIfExpr() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter4/ |
H A D | toy.cpp | 202 static int CurTok; variable 203 static int getNextToken() { return CurTok = gettok(); } in getNextToken() 211 if (!isascii(CurTok)) in GetTokPrecedence() 215 int TokPrec = BinopPrecedence[CurTok]; in GetTokPrecedence() 248 if (CurTok != ')') in ParseParenExpr() 262 if (CurTok != '(') // Simple variable ref. in ParseIdentifierExpr() 268 if (CurTok != ')') { in ParseIdentifierExpr() 275 if (CurTok == ')') in ParseIdentifierExpr() 278 if (CurTok != ',') in ParseIdentifierExpr() 295 switch (CurTok) { in ParsePrimary() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/ |
H A D | RewriteMacros.cpp | 48 unsigned &CurTok, bool ReturnComment) { in GetNextRawTok() argument 49 assert(CurTok < RawTokens.size() && "Overran eof!"); in GetNextRawTok() 52 if (!ReturnComment && RawTokens[CurTok].is(tok::comment)) in GetNextRawTok() 53 ++CurTok; in GetNextRawTok() 55 return RawTokens[CurTok++]; in GetNextRawTok()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
H A D | TokenLexer.cpp | 255 const Token &CurTok = Tokens[I]; in ExpandFunctionArguments() local 262 if (I != 0 && !Tokens[I-1].is(tok::hashhash) && CurTok.hasLeadingSpace()) in ExpandFunctionArguments() 265 if (VCtx.isVAOptToken(CurTok)) { in ExpandFunctionArguments() 271 VCtx.sawVAOptFollowedByOpeningParens(CurTok.getLocation(), in ExpandFunctionArguments() 369 if (CurTok.isOneOf(tok::hash, tok::hashat)) { in ExpandFunctionArguments() 377 CurTok.is(tok::hashat)); in ExpandFunctionArguments() 382 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments() 386 bool Charify = CurTok.is(tok::hashat); in ExpandFunctionArguments() 416 IdentifierInfo *II = CurTok.getIdentifierInfo(); in ExpandFunctionArguments() 420 ResultToks.push_back(CurTok); in ExpandFunctionArguments() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
H A D | LangImpl02.rst | 165 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 167 /// lexer and updates CurTok with its results. 168 static int CurTok; 170 return CurTok = gettok(); 175 in our parser will assume that CurTok is the current token that needs to 237 if (CurTok != ')') 276 if (CurTok != '(') // Simple variable ref. 282 if (CurTok != ')') { 289 if (CurTok == ')') 292 if (CurTok != ',') [all …]
|
H A D | LangImpl06.rst | 178 switch (CurTok) { 188 if (!isascii(CurTok)) 191 FnName += (char)CurTok; 196 if (CurTok == tok_number) { 205 if (CurTok != '(') 211 if (CurTok != ')') 342 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') 346 int Opc = CurTok; 405 switch (CurTok) { 415 if (!isascii(CurTok)) [all …]
|
H A D | LangImpl05.rst | 130 if (CurTok != tok_then) 138 if (CurTok != tok_else) 156 switch (CurTok) { 522 if (CurTok != tok_identifier) 528 if (CurTok != '=') 536 if (CurTok != ',') 546 if (CurTok == ',') { 553 if (CurTok != tok_in) 571 switch (CurTok) {
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/AsmParser/ |
H A D | AVRAsmParser.cpp | 442 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression() local 443 if (CurTok == AsmToken::Minus || in tryParseRelocExpression() 447 assert(CurTok == AsmToken::Plus); in tryParseRelocExpression() 452 if (CurTok == AsmToken::Minus || CurTok == AsmToken::Plus) in tryParseRelocExpression()
|