Lines Matching defs:Cursor
26 class Cursor {
31 Cursor(NoneType) : Ptr(nullptr), End(nullptr) {}
33 explicit Cursor(StringRef Str) {
46 StringRef upto(Cursor C) const {
81 static Cursor skipWhitespace(Cursor C) {
90 static Cursor skipComment(Cursor C) {
110 Cursor C = Cursor(Value.substr(1, Value.size() - 2));
136 static Cursor lexStringConstant(
137 Cursor C,
152 static Cursor lexName(
153 Cursor C, MIToken &Token, MIToken::TokenKind Type, unsigned PrefixLength,
158 if (Cursor R = lexStringConstant(C, ErrorCallback)) {
175 static Cursor maybeLexIntegerType(Cursor C, MIToken &Token) {
232 static Cursor maybeLexIdentifier(Cursor C, MIToken &Token) {
244 static Cursor maybeLexMachineBasicBlock(
245 Cursor C, MIToken &Token,
277 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRef Rule,
290 static Cursor maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule,
313 static Cursor maybeLexJumpTableIndex(Cursor C, MIToken &Token) {
317 static Cursor maybeLexStackObject(Cursor C, MIToken &Token) {
321 static Cursor maybeLexFixedStackObject(Cursor C, MIToken &Token) {
325 static Cursor maybeLexConstantPoolItem(Cursor C, MIToken &Token) {
329 static Cursor maybeLexIRBlock(
330 Cursor C, MIToken &Token,
340 static Cursor maybeLexIRValue(
341 Cursor C, MIToken &Token,
351 static Cursor lexVirtualRegister(Cursor C, MIToken &Token) {
362 static Cursor maybeLexRegister(Cursor C, MIToken &Token) {
376 static Cursor maybeLexGlobalValue(
377 Cursor C, MIToken &Token,
394 static Cursor maybeLexExternalSymbol(
395 Cursor C, MIToken &Token,
407 static Cursor maybeLexHexFloatingPointLiteral(Cursor C, MIToken &Token) {
410 Cursor Range = C;
420 static Cursor lexFloatingPointLiteral(Cursor Range, Cursor C, MIToken &Token) {
436 static Cursor maybeLexNumericalLiteral(Cursor C, MIToken &Token) {
459 static Cursor maybeLexExlaim(
460 Cursor C, MIToken &Token,
505 static Cursor maybeLexSymbol(Cursor C, MIToken &Token) {
521 static Cursor maybeLexNewline(Cursor C, MIToken &Token) {
530 static Cursor maybeLexEscapedIRValue(
531 Cursor C, MIToken &Token,
557 auto C = skipComment(skipWhitespace(Cursor(Source)));
563 if (Cursor R = maybeLexIntegerType(C, Token))
565 if (Cursor R = maybeLexMachineBasicBlock(C, Token, ErrorCallback))
567 if (Cursor R = maybeLexIdentifier(C, Token))
569 if (Cursor R = maybeLexJumpTableIndex(C, Token))
571 if (Cursor R = maybeLexStackObject(C, Token))
573 if (Cursor R = maybeLexFixedStackObject(C, Token))
575 if (Cursor R = maybeLexConstantPoolItem(C, Token))
577 if (Cursor R = maybeLexIRBlock(C, Token, ErrorCallback))
579 if (Cursor R = maybeLexIRValue(C, Token, ErrorCallback))
581 if (Cursor R = maybeLexRegister(C, Token))
583 if (Cursor R = maybeLexGlobalValue(C, Token, ErrorCallback))
585 if (Cursor R = maybeLexExternalSymbol(C, Token, ErrorCallback))
587 if (Cursor R = maybeLexHexFloatingPointLiteral(C, Token))
589 if (Cursor R = maybeLexNumericalLiteral(C, Token))
591 if (Cursor R = maybeLexExlaim(C, Token, ErrorCallback))
593 if (Cursor R = maybeLexSymbol(C, Token))
595 if (Cursor R = maybeLexNewline(C, Token))
597 if (Cursor R = maybeLexEscapedIRValue(C, Token, ErrorCallback))