Lines Matching refs:Rule

336 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRef Rule,  in maybeLexIndex()  argument
338 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
341 C.advance(Rule.size()); in maybeLexIndex()
349 static Cursor maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule, in maybeLexIndexAndName() argument
351 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
354 C.advance(Rule.size()); in maybeLexIndexAndName()
359 unsigned StringOffset = Rule.size() + Number.size(); in maybeLexIndexAndName()
390 const StringRef Rule = "%subreg."; in maybeLexSubRegisterIndex() local
391 if (!C.remaining().starts_with(Rule)) in maybeLexSubRegisterIndex()
393 return lexName(C, Token, MIToken::SubRegisterIndex, Rule.size(), in maybeLexSubRegisterIndex()
399 const StringRef Rule = "%ir-block."; in maybeLexIRBlock() local
400 if (!C.remaining().starts_with(Rule)) in maybeLexIRBlock()
402 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
403 return maybeLexIndex(C, Token, Rule, MIToken::IRBlock); in maybeLexIRBlock()
404 return lexName(C, Token, MIToken::NamedIRBlock, Rule.size(), ErrorCallback); in maybeLexIRBlock()
409 const StringRef Rule = "%ir."; in maybeLexIRValue() local
410 if (!C.remaining().starts_with(Rule)) in maybeLexIRValue()
412 if (isdigit(C.peek(Rule.size()))) in maybeLexIRValue()
413 return maybeLexIndex(C, Token, Rule, MIToken::IRValue); in maybeLexIRValue()
414 return lexName(C, Token, MIToken::NamedIRValue, Rule.size(), ErrorCallback); in maybeLexIRValue()
503 const StringRef Rule = "<mcsymbol "; in maybeLexMCSymbol() local
504 if (!C.remaining().starts_with(Rule)) in maybeLexMCSymbol()
507 C.advance(Rule.size()); in maybeLexMCSymbol()
513 StringRef String = Start.upto(C).drop_front(Rule.size()); in maybeLexMCSymbol()
534 StringRef String = Start.upto(R).drop_front(Rule.size()); in maybeLexMCSymbol()