Lines Matching refs:Rule
340 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRef Rule, in maybeLexIndex() argument
342 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
345 C.advance(Rule.size()); in maybeLexIndex()
353 static Cursor maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule, in maybeLexIndexAndName() argument
355 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
358 C.advance(Rule.size()); in maybeLexIndexAndName()
363 unsigned StringOffset = Rule.size() + Number.size(); in maybeLexIndexAndName()
394 const StringRef Rule = "%subreg."; in maybeLexSubRegisterIndex() local
395 if (!C.remaining().starts_with(Rule)) in maybeLexSubRegisterIndex()
397 return lexName(C, Token, MIToken::SubRegisterIndex, Rule.size(), in maybeLexSubRegisterIndex()
403 const StringRef Rule = "%ir-block."; in maybeLexIRBlock() local
404 if (!C.remaining().starts_with(Rule)) in maybeLexIRBlock()
406 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
407 return maybeLexIndex(C, Token, Rule, MIToken::IRBlock); in maybeLexIRBlock()
408 return lexName(C, Token, MIToken::NamedIRBlock, Rule.size(), ErrorCallback); in maybeLexIRBlock()
413 const StringRef Rule = "%ir."; in maybeLexIRValue() local
414 if (!C.remaining().starts_with(Rule)) in maybeLexIRValue()
416 if (isdigit(C.peek(Rule.size()))) in maybeLexIRValue()
417 return maybeLexIndex(C, Token, Rule, MIToken::IRValue); in maybeLexIRValue()
418 return lexName(C, Token, MIToken::NamedIRValue, Rule.size(), ErrorCallback); in maybeLexIRValue()
507 const StringRef Rule = "<mcsymbol "; in maybeLexMCSymbol() local
508 if (!C.remaining().starts_with(Rule)) in maybeLexMCSymbol()
511 C.advance(Rule.size()); in maybeLexMCSymbol()
517 StringRef String = Start.upto(C).drop_front(Rule.size()); in maybeLexMCSymbol()
538 StringRef String = Start.upto(R).drop_front(Rule.size()); in maybeLexMCSymbol()