Lines Matching refs:Rule

328 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRef Rule,  in maybeLexIndex()  argument
330 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
333 C.advance(Rule.size()); in maybeLexIndex()
341 static Cursor maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule, in maybeLexIndexAndName() argument
343 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
346 C.advance(Rule.size()); in maybeLexIndexAndName()
351 unsigned StringOffset = Rule.size() + Number.size(); in maybeLexIndexAndName()
382 const StringRef Rule = "%subreg."; in maybeLexSubRegisterIndex() local
383 if (!C.remaining().startswith(Rule)) in maybeLexSubRegisterIndex()
385 return lexName(C, Token, MIToken::SubRegisterIndex, Rule.size(), in maybeLexSubRegisterIndex()
391 const StringRef Rule = "%ir-block."; in maybeLexIRBlock() local
392 if (!C.remaining().startswith(Rule)) in maybeLexIRBlock()
394 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
395 return maybeLexIndex(C, Token, Rule, MIToken::IRBlock); in maybeLexIRBlock()
396 return lexName(C, Token, MIToken::NamedIRBlock, Rule.size(), ErrorCallback); in maybeLexIRBlock()
401 const StringRef Rule = "%ir."; in maybeLexIRValue() local
402 if (!C.remaining().startswith(Rule)) in maybeLexIRValue()
404 if (isdigit(C.peek(Rule.size()))) in maybeLexIRValue()
405 return maybeLexIndex(C, Token, Rule, MIToken::IRValue); in maybeLexIRValue()
406 return lexName(C, Token, MIToken::NamedIRValue, Rule.size(), ErrorCallback); in maybeLexIRValue()
495 const StringRef Rule = "<mcsymbol "; in maybeLexMCSymbol() local
496 if (!C.remaining().startswith(Rule)) in maybeLexMCSymbol()
499 C.advance(Rule.size()); in maybeLexMCSymbol()
505 StringRef String = Start.upto(C).drop_front(Rule.size()); in maybeLexMCSymbol()
526 StringRef String = Start.upto(R).drop_front(Rule.size()); in maybeLexMCSymbol()