Home | History | Annotate | Download | only in MIRParser

Lines Matching refs:Rule

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