Lines Matching refs:Rule
277 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRef Rule, in maybeLexIndex() argument
279 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex()
282 C.advance(Rule.size()); in maybeLexIndex()
290 static Cursor maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule, in maybeLexIndexAndName() argument
292 if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName()
295 C.advance(Rule.size()); in maybeLexIndexAndName()
300 unsigned StringOffset = Rule.size() + Number.size(); in maybeLexIndexAndName()
331 const StringRef Rule = "%subreg."; in maybeLexSubRegisterIndex() local
332 if (!C.remaining().startswith(Rule)) in maybeLexSubRegisterIndex()
334 return lexName(C, Token, MIToken::SubRegisterIndex, Rule.size(), in maybeLexSubRegisterIndex()
340 const StringRef Rule = "%ir-block."; in maybeLexIRBlock() local
341 if (!C.remaining().startswith(Rule)) in maybeLexIRBlock()
343 if (isdigit(C.peek(Rule.size()))) in maybeLexIRBlock()
344 return maybeLexIndex(C, Token, Rule, MIToken::IRBlock); in maybeLexIRBlock()
345 return lexName(C, Token, MIToken::NamedIRBlock, Rule.size(), ErrorCallback); in maybeLexIRBlock()
350 const StringRef Rule = "%ir."; in maybeLexIRValue() local
351 if (!C.remaining().startswith(Rule)) in maybeLexIRValue()
353 if (isdigit(C.peek(Rule.size()))) in maybeLexIRValue()
354 return maybeLexIndex(C, Token, Rule, MIToken::IRValue); in maybeLexIRValue()
355 return lexName(C, Token, MIToken::NamedIRValue, Rule.size(), ErrorCallback); in maybeLexIRValue()