• Home
  • Raw
  • Download

Lines Matching refs:re

13 import re
46 IFDEF_RE = re.compile(r'\s*#(ifndef|endif|ifdef).*')
48 COMMENT_RE = re.compile(SPACES + r'((//|#)\s*.+)')
50 LABEL = re.compile(r'(\w+):')
52 INSTR_RE = re.compile(INSTR + COMMENTS)
54 INSTR_REGLIST_CONSEC_RE = re.compile(INSTR + REGLIST_CONSEC + COMMENTS)
56 INSTR_REGLIST_LIST_RE = re.compile(INSTR + REGLIST_INDIV + COMMENTS)
58 INSTR_OP_RE = re.compile(INSTR + REG + COMMENTS)
60 INSTR_B_IMM = re.compile(INSTR + B_IMM + COMMENTS)
62 INSTR_B_REG_IMM_IMM = re.compile(INSTR + REG + COMMA + IMM + COMMA + B_IMM + COMMENTS)
64 P2ALIGN_RE = re.compile(SPACES + r'\.p2align\s+(\d+)')
66 INSTR_REG_IMM_RE = re.compile(INSTR + REG + COMMA + IMM + COMMENTS)
68 INSTR_REG_MEMOP_RE = re.compile(INSTR + REG + COMMA + MEMOP + COMMENTS)
70 INSTR_REG_MEMOP_IMM_RE = re.compile(INSTR + REG + COMMA + MEMOP + COMMA + IMM + COMMENTS)
72 INSTR_REG_MEMOP_OFFSET_RE = re.compile(INSTR + REG + COMMA + MEMOP_OFFSET_MAYBE_WB +
75 INSTR_REG_REG_MEMOP_RE = re.compile(INSTR + REG + COMMA + REG + COMMA +
78 INSTR_REG_REG_MEMOP_OFFSET_RE = re.compile(INSTR + REG + COMMA + REG + COMMA +
81 INSTR_REG_REG_MEMOP_IMM_RE = re.compile(INSTR + REG + COMMA + REG + COMMA +
84 INSTR_MEMOP_OFFSET_RE = re.compile(INSTR + MEMOP_OFFSET + COMMENTS)
86 INSTR_REG_REG_RE = re.compile(INSTR + REG + COMMA + REG_OR_IMM + COMMENTS)
88 INSTR_REG_REG_REG_RE = re.compile(INSTR + REG + COMMA + REG + COMMA +
91 INSTR_REG_REG_REG_IMM_RE = re.compile(INSTR + REG + COMMA + REG + COMMA + REG +
94 INSTR_REGLIST_INDIV_MEMOP_REG = re.compile(INSTR + REGLIST_INDIV + COMMA +
97 INSTR_REGLIST_CONSEC_MEMOP_REG = re.compile(INSTR + REGLIST_CONSEC + COMMA +
100 INSTR_REG_REGLIST_CONSECT = re.compile(INSTR + REG + COMMA + REGLIST_CONSEC +
103 INSTR_REG_REGLIST_CONSECT_WB = re.compile(INSTR + REG + WB + COMMA +
106 INSTR_REG_REGLIST_INDIV_WB = re.compile(INSTR + REG + WB + COMMA +
109 INSTR_REGLIST_INDIV_MEMOP = re.compile(INSTR + REGLIST_INDIV + COMMA +
112 INSTR_REGLIST_INDIV_MEMOP_IMM = re.compile(INSTR + REGLIST_INDIV + COMMA +
115 INSTR_REGLIST_CONSEC_MEMOP = re.compile(INSTR + REGLIST_CONSEC + COMMA +
118 INSTR_REGLIST_REPLICATE_MEMOP = re.compile(INSTR + REGLIST_INDIV_REPLICATE +
121 INSTR_REGLIST_INDEX_MEMOP = re.compile(INSTR + REGLIST_INDEX + COMMA +
124 INSTR_REG_FPSCR = re.compile(INSTR + f'({APSR}|{REG_NO_GROUP})' + COMMA +
128 INSTR_PLD_MEMOP = re.compile(INSTR + f'(PLDL1KEEP)' + COMMA + MEMOP + COMMENTS)
130 INSTR_PLD_MEMOP_OFFSET = re.compile(INSTR + f'(PLDL1KEEP)' + COMMA + MEMOP_OFFSET + COMMENTS)
134 INSTR_REG_REG_REG_COND_RE = re.compile(INSTR + REG + COMMA + REG + COMMA + REG + COMMA + COND + COM…
142 return re.sub(r'_(\d+)', r'r_\1', s, 1)
179 return re.sub(r'(\w+\.)(\d+)?(\w+)', repl, regs)
253 re.sub('\d{4}', str(datetime.date.today().year), line,
282 elif any(re.fullmatch(p, line) for p in IGNORE_LINES):
293 m = re.fullmatch(IFDEF_RE, line)
297 m = re.fullmatch(COMMENT_RE, line)
302 m = re.fullmatch(LABEL, line)
307 m = re.fullmatch(INSTR_RE, line)
311 m = re.fullmatch(INSTR_OP_RE, line)
315 m = re.fullmatch(INSTR_REGLIST_CONSEC_MEMOP_REG, line)
321 m = re.fullmatch(INSTR_REGLIST_INDIV_MEMOP_REG, line)
326 m = re.fullmatch(INSTR_REGLIST_CONSEC_RE, line)
330 m = re.fullmatch(INSTR_REGLIST_LIST_RE, line)
334 m = re.fullmatch(INSTR_MEMOP_OFFSET_RE, line)
338 m = re.fullmatch(INSTR_REG_MEMOP_RE, line)
342 m = re.fullmatch(INSTR_REG_MEMOP_IMM_RE , line)
346 m = re.fullmatch(INSTR_REG_MEMOP_OFFSET_RE, line)
355 m = re.fullmatch(INSTR_REG_REG_MEMOP_RE, line)
360 m = re.fullmatch(INSTR_REG_REG_MEMOP_OFFSET_RE, line)
369 m = re.fullmatch(INSTR_REG_REG_MEMOP_IMM_RE , line)
374 m = re.fullmatch(INSTR_REG_IMM_RE, line)
378 m = re.fullmatch(INSTR_REG_REG_REG_RE, line)
383 m = re.fullmatch(INSTR_REG_REG_REG_IMM_RE, line)
388 m = re.fullmatch(INSTR_REG_REG_RE, line)
392 m = re.fullmatch(INSTR_REG_REGLIST_CONSECT, line)
397 m = re.fullmatch(INSTR_REG_REGLIST_CONSECT_WB, line)
402 m = re.fullmatch(INSTR_REG_REGLIST_INDIV_WB, line)
407 m = re.fullmatch(INSTR_B_IMM, line)
411 m = re.fullmatch(INSTR_B_REG_IMM_IMM , line)
415 m = re.fullmatch(INSTR_REGLIST_INDIV_MEMOP, line)
421 m = re.fullmatch(INSTR_REGLIST_INDIV_MEMOP_IMM, line)
427 m = re.fullmatch(INSTR_REGLIST_CONSEC_MEMOP, line)
433 m = re.fullmatch(INSTR_REGLIST_REPLICATE_MEMOP, line)
444 m = re.fullmatch(INSTR_REGLIST_INDEX_MEMOP, line)
450 m = re.fullmatch(P2ALIGN_RE, line)
454 m = re.fullmatch(INSTR_REG_FPSCR, line)
458 m = re.fullmatch(INSTR_PLD_MEMOP, line)
462 m = re.fullmatch(INSTR_PLD_MEMOP_OFFSET, line)
466 m = re.fullmatch(INSTR_REG_REG_REG_COND_RE, line)
492 m = re.search('(\d+)x(\d+)', input_file)