Home | History | Annotate | Download | only in MIRParser

Lines Matching refs:Range

62 MIToken &MIToken::reset(TokenKind Kind, StringRef Range) {
64 this->Range = Range;
156 auto Range = C;
160 StringRef String = Range.upto(R);
166 Token.reset(MIToken::Error, Range.remaining());
167 return Range;
171 Token.reset(Type, Range.upto(C))
172 .setStringValue(Range.upto(C).drop_front(PrefixLength));
179 auto Range = C;
183 Token.reset(MIToken::IntegerType, Range.upto(C));
236 auto Range = C;
239 auto Identifier = Range.upto(C);
250 auto Range = C;
271 Range.upto(C))
273 .setStringValue(Range.upto(C).drop_front(StringOffset));
281 auto Range = C;
286 Token.reset(Kind, Range.upto(C)).setIntegerValue(APSInt(NumberRange.upto(C)));
294 auto Range = C;
307 Token.reset(Kind, Range.upto(C))
309 .setStringValue(Range.upto(C).drop_front(StringOffset));
359 auto Range = C;
364 Token.reset(MIToken::VirtualRegister, Range.upto(C))
374 auto Range = C;
378 Token.reset(MIToken::NamedRegister, Range.upto(C))
379 .setStringValue(Range.upto(C).drop_front(1)); // Drop the '%'
390 auto Range = C;
395 Token.reset(MIToken::GlobalValue, Range.upto(C))
415 Cursor Range = C;
421 Token.reset(MIToken::FloatingPointLiteral, Range.upto(C));
425 static Cursor lexFloatingPointLiteral(Cursor Range, Cursor C, MIToken &Token) {
437 Token.reset(MIToken::FloatingPointLiteral, Range.upto(C));
444 auto Range = C;
449 return lexFloatingPointLiteral(Range, C, Token);
450 StringRef StrVal = Range.upto(C);
460 .Case("!range", MIToken::md_range)
468 auto Range = C;
471 Token.reset(MIToken::exclaim, Range.upto(C));
476 StringRef StrVal = Range.upto(C);
523 auto Range = C;
525 Token.reset(Kind, Range.upto(C));
532 auto Range = C;
534 Token.reset(MIToken::Newline, Range
542 auto Range = C;
550 Token.reset(MIToken::Error, Range.remaining());
557 Token.reset(MIToken::QuotedIRValue, Range.upto(C)).setStringValue(Value);