Lines Matching defs:Rule
343 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRef Rule,
345 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size())))
348 C.advance(Rule.size());
356 static Cursor maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule,
358 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size())))
361 C.advance(Rule.size());
366 unsigned StringOffset = Rule.size() + Number.size();
397 const StringRef Rule = "%subreg.";
398 if (!C.remaining().starts_with(Rule))
400 return lexName(C, Token, MIToken::SubRegisterIndex, Rule.size(),
406 const StringRef Rule = "%ir-block.";
407 if (!C.remaining().starts_with(Rule))
409 if (isdigit(C.peek(Rule.size())))
410 return maybeLexIndex(C, Token, Rule, MIToken::IRBlock);
411 return lexName(C, Token, MIToken::NamedIRBlock, Rule.size(), ErrorCallback);
416 const StringRef Rule = "%ir.";
417 if (!C.remaining().starts_with(Rule))
419 if (isdigit(C.peek(Rule.size())))
420 return maybeLexIndex(C, Token, Rule, MIToken::IRValue);
421 return lexName(C, Token, MIToken::NamedIRValue, Rule.size(), ErrorCallback);
510 const StringRef Rule = "<mcsymbol ";
511 if (!C.remaining().starts_with(Rule))
514 C.advance(Rule.size());
520 StringRef String = Start.upto(C).drop_front(Rule.size());
541 StringRef String = Start.upto(R).drop_front(Rule.size());