Lines Matching refs:Rule

327 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRef Rule,  in maybeLexIndex()  argument
329 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
332 C.advance(Rule.size()); in maybeLexIndex()
340 static Cursor maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule, in maybeLexIndexAndName() argument
342 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
345 C.advance(Rule.size()); in maybeLexIndexAndName()
350 unsigned StringOffset = Rule.size() + Number.size(); in maybeLexIndexAndName()
381 const StringRef Rule = "%subreg."; in maybeLexSubRegisterIndex() local
382 if (!C.remaining().startswith(Rule)) in maybeLexSubRegisterIndex()
384 return lexName(C, Token, MIToken::SubRegisterIndex, Rule.size(), in maybeLexSubRegisterIndex()
390 const StringRef Rule = "%ir-block."; in maybeLexIRBlock() local
391 if (!C.remaining().startswith(Rule)) in maybeLexIRBlock()
393 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
394 return maybeLexIndex(C, Token, Rule, MIToken::IRBlock); in maybeLexIRBlock()
395 return lexName(C, Token, MIToken::NamedIRBlock, Rule.size(), ErrorCallback); in maybeLexIRBlock()
400 const StringRef Rule = "%ir."; in maybeLexIRValue() local
401 if (!C.remaining().startswith(Rule)) in maybeLexIRValue()
403 if (isdigit(C.peek(Rule.size()))) in maybeLexIRValue()
404 return maybeLexIndex(C, Token, Rule, MIToken::IRValue); in maybeLexIRValue()
405 return lexName(C, Token, MIToken::NamedIRValue, Rule.size(), ErrorCallback); in maybeLexIRValue()
494 const StringRef Rule = "<mcsymbol "; in maybeLexMCSymbol() local
495 if (!C.remaining().startswith(Rule)) in maybeLexMCSymbol()
498 C.advance(Rule.size()); in maybeLexMCSymbol()
504 StringRef String = Start.upto(C).drop_front(Rule.size()); in maybeLexMCSymbol()
525 StringRef String = Start.upto(R).drop_front(Rule.size()); in maybeLexMCSymbol()