Lines Matching refs:peek

40   char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; }  in peek()  function in __anondf24bfd00111::Cursor
82 while (isblank(C.peek())) in skipWhitespace()
91 if (C.peek() != ';') in skipComment()
93 while (!isNewlineChar(C.peek()) && !C.isEOF()) in skipComment()
115 char Char = C.peek(); in unescapeQuotedString()
117 if (C.peek(1) == '\\') { in unescapeQuotedString()
123 if (isxdigit(C.peek(1)) && isxdigit(C.peek(2))) { in unescapeQuotedString()
124 Str += hexDigitValue(C.peek(1)) * 16 + hexDigitValue(C.peek(2)); in unescapeQuotedString()
139 assert(C.peek() == '"'); in lexStringConstant()
140 for (C.advance(); C.peek() != '"'; C.advance()) { in lexStringConstant()
141 if (C.isEOF() || isNewlineChar(C.peek())) { in lexStringConstant()
157 if (C.peek() == '"') { in lexName()
168 while (isIdentifierChar(C.peek())) in lexName()
176 if (C.peek() != 'i' || !isdigit(C.peek(1))) in maybeLexIntegerType()
180 while (isdigit(C.peek())) in maybeLexIntegerType()
233 if (!isalpha(C.peek()) && C.peek() != '_' && C.peek() != '.') in maybeLexIdentifier()
236 while (isIdentifierChar(C.peek())) in maybeLexIdentifier()
253 if (!isdigit(C.peek())) { in maybeLexMachineBasicBlock()
259 while (isdigit(C.peek())) in maybeLexMachineBasicBlock()
263 if (C.peek() == '.') { in maybeLexMachineBasicBlock()
266 while (isIdentifierChar(C.peek())) in maybeLexMachineBasicBlock()
279 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
284 while (isdigit(C.peek())) in maybeLexIndex()
292 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
297 while (isdigit(C.peek())) in maybeLexIndexAndName()
301 if (C.peek() == '.') { in maybeLexIndexAndName()
304 while (isIdentifierChar(C.peek())) in maybeLexIndexAndName()
335 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
346 if (isdigit(C.peek(Rule.size()))) in maybeLexIRValue()
355 while (isdigit(C.peek())) in lexVirtualRegister()
363 if (C.peek() != '%') in maybeLexRegister()
365 if (isdigit(C.peek(1))) in maybeLexRegister()
369 while (isIdentifierChar(C.peek())) in maybeLexRegister()
379 if (C.peek() != '@') in maybeLexGlobalValue()
381 if (!isdigit(C.peek(1))) in maybeLexGlobalValue()
387 while (isdigit(C.peek())) in maybeLexGlobalValue()
397 if (C.peek() != '$') in maybeLexExternalSymbol()
408 if (C.peek() != '0' || C.peek(1) != 'x') in maybeLexHexFloatingPointLiteral()
412 if (isValidHexFloatingPointPrefix(C.peek())) in maybeLexHexFloatingPointLiteral()
414 while (isxdigit(C.peek())) in maybeLexHexFloatingPointLiteral()
423 while (isdigit(C.peek())) in lexFloatingPointLiteral()
425 if ((C.peek() == 'e' || C.peek() == 'E') && in lexFloatingPointLiteral()
426 (isdigit(C.peek(1)) || in lexFloatingPointLiteral()
427 ((C.peek(1) == '-' || C.peek(1) == '+') && isdigit(C.peek(2))))) { in lexFloatingPointLiteral()
429 while (isdigit(C.peek())) in lexFloatingPointLiteral()
437 if (!isdigit(C.peek()) && (C.peek() != '-' || !isdigit(C.peek(1)))) in maybeLexNumericalLiteral()
441 while (isdigit(C.peek())) in maybeLexNumericalLiteral()
443 if (C.peek() == '.') in maybeLexNumericalLiteral()
462 if (C.peek() != '!') in maybeLexExlaim()
466 if (isdigit(C.peek()) || !isIdentifierChar(C.peek())) { in maybeLexExlaim()
470 while (isIdentifierChar(C.peek())) in maybeLexExlaim()
508 if (C.peek() == ':' && C.peek(1) == ':') { in maybeLexSymbol()
512 Kind = symbolToken(C.peek()); in maybeLexSymbol()
522 if (!isNewlineChar(C.peek())) in maybeLexNewline()
533 if (C.peek() != '`') in maybeLexEscapedIRValue()
538 while (C.peek() != '`') { in maybeLexEscapedIRValue()
539 if (C.isEOF() || isNewlineChar(C.peek())) { in maybeLexEscapedIRValue()
602 Twine("unexpected character '") + Twine(C.peek()) + "'"); in lexMIToken()