/openbsd/gnu/llvm/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmLexer.h | 39 SmallVector<AsmToken, 1> CurTok; variable 80 assert(!CurTok.empty()); in Lex() 82 IsAtStartOfStatement = CurTok.front().getKind() == AsmToken::EndOfStatement; in Lex() 83 CurTok.erase(CurTok.begin()); in Lex() 86 if (CurTok.empty()) { in Lex() 88 CurTok.insert(CurTok.begin(), T); in Lex() 90 return CurTok.front(); in Lex() 95 CurTok.insert(CurTok.begin(), Token); in UnLex() 107 return CurTok[0]; in getTok()
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/cached/ |
H A D | toy-jit.cpp | 257 static int CurTok; variable 298 if (CurTok != ')') { in ParseIdentifierExpr() 331 if (CurTok != ')') in ParseParenExpr() 373 if (CurTok != '=') in ParseForExpr() 380 if (CurTok != ',') in ParseForExpr() 458 switch (CurTok) { in ParsePrimary() 474 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 478 int Opc = CurTok; in ParseUnary() 538 switch (CurTok) { in ParsePrototype() 574 if (CurTok != '(') in ParsePrototype() [all …]
|
H A D | toy.cpp | 264 static int CurTok; variable 305 if (CurTok != ')') { in ParseIdentifierExpr() 338 if (CurTok != ')') in ParseParenExpr() 380 if (CurTok != '=') in ParseForExpr() 387 if (CurTok != ',') in ParseForExpr() 465 switch (CurTok) { in ParsePrimary() 481 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 485 int Opc = CurTok; in ParseUnary() 545 switch (CurTok) { in ParsePrototype() 581 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
H A D | toy-jit.cpp | 242 static int CurTok; variable 283 if (CurTok != ')') { in ParseIdentifierExpr() 316 if (CurTok != ')') in ParseParenExpr() 358 if (CurTok != '=') in ParseForExpr() 365 if (CurTok != ',') in ParseForExpr() 443 switch (CurTok) { in ParsePrimary() 459 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 463 int Opc = CurTok; in ParseUnary() 523 switch (CurTok) { in ParsePrototype() 559 if (CurTok != '(') in ParsePrototype() [all …]
|
H A D | toy.cpp | 243 static int CurTok; variable 284 if (CurTok != ')') { in ParseIdentifierExpr() 317 if (CurTok != ')') in ParseParenExpr() 359 if (CurTok != '=') in ParseForExpr() 366 if (CurTok != ',') in ParseForExpr() 444 switch (CurTok) { in ParsePrimary() 460 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 464 int Opc = CurTok; in ParseUnary() 524 switch (CurTok) { in ParsePrototype() 560 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter2/ |
H A D | toy.cpp | 166 static int CurTok; variable 175 if (!isascii(CurTok)) in GetTokPrecedence() 211 if (CurTok != ')') in ParseParenExpr() 231 if (CurTok != ')') { in ParseIdentifierExpr() 238 if (CurTok == ')') in ParseIdentifierExpr() 241 if (CurTok != ',') in ParseIdentifierExpr() 258 switch (CurTok) { in ParsePrimary() 284 int BinOp = CurTok; in ParseBinOpRHS() 327 if (CurTok != '(') in ParsePrototype() 333 if (CurTok != ')') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter7/ |
H A D | toy.cpp | 303 static int CurTok; variable 349 if (CurTok != ')') in ParseParenExpr() 369 if (CurTok != ')') { in ParseIdentifierExpr() 431 if (CurTok != '=') in ParseForExpr() 438 if (CurTok != ',') in ParseForExpr() 523 switch (CurTok) { in ParsePrimary() 546 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 550 int Opc = CurTok; in ParseUnary() 615 switch (CurTok) { in ParsePrototype() 651 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter8/ |
H A D | toy.cpp | 303 static int CurTok; variable 349 if (CurTok != ')') in ParseParenExpr() 369 if (CurTok != ')') { in ParseIdentifierExpr() 431 if (CurTok != '=') in ParseForExpr() 438 if (CurTok != ',') in ParseForExpr() 523 switch (CurTok) { in ParsePrimary() 546 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 550 int Opc = CurTok; in ParseUnary() 615 switch (CurTok) { in ParsePrototype() 651 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
H A D | toy.cpp | 298 static int CurTok; variable 344 if (CurTok != ')') in ParseParenExpr() 364 if (CurTok != ')') { in ParseIdentifierExpr() 426 if (CurTok != '=') in ParseForExpr() 433 if (CurTok != ',') in ParseForExpr() 518 switch (CurTok) { in ParsePrimary() 541 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 545 int Opc = CurTok; in ParseUnary() 610 switch (CurTok) { in ParsePrototype() 646 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
H A D | toy.cpp | 298 static int CurTok; variable 344 if (CurTok != ')') in ParseParenExpr() 364 if (CurTok != ')') { in ParseIdentifierExpr() 426 if (CurTok != '=') in ParseForExpr() 433 if (CurTok != ',') in ParseForExpr() 518 switch (CurTok) { in ParsePrimary() 541 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 545 int Opc = CurTok; in ParseUnary() 610 switch (CurTok) { in ParsePrototype() 646 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
H A D | toy.cpp | 298 static int CurTok; variable 344 if (CurTok != ')') in ParseParenExpr() 364 if (CurTok != ')') { in ParseIdentifierExpr() 426 if (CurTok != '=') in ParseForExpr() 433 if (CurTok != ',') in ParseForExpr() 518 switch (CurTok) { in ParsePrimary() 541 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 545 int Opc = CurTok; in ParseUnary() 610 switch (CurTok) { in ParsePrototype() 646 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
H A D | toy.cpp | 281 static int CurTok; variable 327 if (CurTok != ')') in ParseParenExpr() 347 if (CurTok != ')') { in ParseIdentifierExpr() 409 if (CurTok != '=') in ParseForExpr() 416 if (CurTok != ',') in ParseForExpr() 501 switch (CurTok) { in ParsePrimary() 524 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 528 int Opc = CurTok; in ParseUnary() 593 switch (CurTok) { in ParsePrototype() 629 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter6/ |
H A D | toy.cpp | 281 static int CurTok; variable 327 if (CurTok != ')') in ParseParenExpr() 347 if (CurTok != ')') { in ParseIdentifierExpr() 409 if (CurTok != '=') in ParseForExpr() 416 if (CurTok != ',') in ParseForExpr() 452 switch (CurTok) { in ParsePrimary() 473 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 477 int Opc = CurTok; in ParseUnary() 542 switch (CurTok) { in ParsePrototype() 578 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/initial/ |
H A D | toy.cpp | 241 static int CurTok; variable 282 if (CurTok != ')') { in ParseIdentifierExpr() 315 if (CurTok != ')') in ParseParenExpr() 357 if (CurTok != '=') in ParseForExpr() 364 if (CurTok != ',') in ParseForExpr() 442 switch (CurTok) { in ParsePrimary() 458 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 462 int Opc = CurTok; in ParseUnary() 522 switch (CurTok) { in ParsePrototype() 558 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter9/ |
H A D | toy.cpp | 411 static int CurTok; variable 457 if (CurTok != ')') in ParseParenExpr() 479 if (CurTok != ')') { in ParseIdentifierExpr() 543 if (CurTok != '=') in ParseForExpr() 550 if (CurTok != ',') in ParseForExpr() 635 switch (CurTok) { in ParsePrimary() 658 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 662 int Opc = CurTok; in ParseUnary() 730 switch (CurTok) { in ParsePrototype() 766 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/complete/ |
H A D | toy.cpp | 283 static int CurTok; variable 324 if (CurTok != ')') { in ParseIdentifierExpr() 357 if (CurTok != ')') in ParseParenExpr() 399 if (CurTok != '=') in ParseForExpr() 406 if (CurTok != ',') in ParseForExpr() 484 switch (CurTok) { in ParsePrimary() 500 if (!isascii(CurTok) || CurTok == '(' || CurTok == ',') in ParseUnary() 504 int Opc = CurTok; in ParseUnary() 564 switch (CurTok) { in ParsePrototype() 600 if (CurTok != '(') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter3/ |
H A D | toy.cpp | 192 static int CurTok; variable 201 if (!isascii(CurTok)) in GetTokPrecedence() 238 if (CurTok != ')') in ParseParenExpr() 258 if (CurTok != ')') { in ParseIdentifierExpr() 265 if (CurTok == ')') in ParseIdentifierExpr() 268 if (CurTok != ',') in ParseIdentifierExpr() 285 switch (CurTok) { in ParsePrimary() 311 int BinOp = CurTok; in ParseBinOpRHS() 354 if (CurTok != '(') in ParsePrototype() 360 if (CurTok != ')') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter5/ |
H A D | toy.cpp | 247 static int CurTok; variable 256 if (!isascii(CurTok)) in GetTokPrecedence() 293 if (CurTok != ')') in ParseParenExpr() 313 if (CurTok != ')') { in ParseIdentifierExpr() 375 if (CurTok != '=') in ParseForExpr() 382 if (CurTok != ',') in ParseForExpr() 392 if (CurTok == ',') { in ParseForExpr() 418 switch (CurTok) { in ParsePrimary() 491 if (CurTok != '(') in ParsePrototype() 497 if (CurTok != ')') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/llvm/examples/Kaleidoscope/Chapter4/ |
H A D | toy.cpp | 202 static int CurTok; variable 211 if (!isascii(CurTok)) in GetTokPrecedence() 248 if (CurTok != ')') in ParseParenExpr() 268 if (CurTok != ')') { in ParseIdentifierExpr() 275 if (CurTok == ')') in ParseIdentifierExpr() 278 if (CurTok != ',') in ParseIdentifierExpr() 295 switch (CurTok) { in ParsePrimary() 321 int BinOp = CurTok; in ParseBinOpRHS() 364 if (CurTok != '(') in ParsePrototype() 370 if (CurTok != ')') in ParsePrototype() [all …]
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/clang/lib/Lex/ |
H A D | TokenLexer.cpp | 257 const Token &CurTok = Tokens[I]; in ExpandFunctionArguments() local 267 if (VCtx.isVAOptToken(CurTok)) { in ExpandFunctionArguments() 273 VCtx.sawVAOptFollowedByOpeningParens(CurTok.getLocation(), in ExpandFunctionArguments() 371 if (CurTok.isOneOf(tok::hash, tok::hashat)) { in ExpandFunctionArguments() 379 CurTok.is(tok::hashat)); in ExpandFunctionArguments() 384 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments() 388 bool Charify = CurTok.is(tok::hashat); in ExpandFunctionArguments() 418 IdentifierInfo *II = CurTok.getIdentifierInfo(); in ExpandFunctionArguments() 422 ResultToks.push_back(CurTok); in ExpandFunctionArguments() 482 updateLocForMacroArgTokens(CurTok.getLocation(), in ExpandFunctionArguments() [all …]
|
/openbsd/gnu/llvm/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
H A D | LangImpl02.rst | 165 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 168 static int CurTok; 237 if (CurTok != ')') 282 if (CurTok != ')') { 289 if (CurTok == ')') 327 switch (CurTok) { 370 if (!isascii(CurTok)) 465 int BinOp = CurTok; 581 if (CurTok != '(') 588 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) {
|
/openbsd/gnu/llvm/llvm/lib/Target/AVR/AsmParser/ |
H A D | AVRAsmParser.cpp | 454 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression() local 455 if (CurTok == AsmToken::Minus || CurTok == AsmToken::Plus) in tryParseRelocExpression() 466 if (CurTok != AsmToken::Identifier || in tryParseRelocExpression()
|