Lines Matching refs:r
18 …r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*(@"?(?P=func)"?| -- Begin function (?P=func))\n(?:\s*\.?Lfunc_b…
19 r'(?:\.L[^$]+\$local:\n)?' # drop .L<func>$local:
20 r'(?:[ \t]+.cfi_startproc\n|.seh_proc[^\n]+\n)?' # drop optional cfi
21 r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
22 …r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function…
26 r'^(?P<func>[0-9a-zA-Z_$]+):\n' # f: (name of function)
27 r'\s+\.fnstart\n' # .fnstart
28 r'(?P<body>.*?)' # (body of the function)
29 r'^.Lfunc_end[0-9]+:', # .Lfunc_end0: or # -- End function
33 r'^_?(?P<func>[^:]+):[ \t]*\/\/[ \t]*@"?(?P=func)"?( (Function|Tail Call))?\n'
34 r'(?:[ \t]+.cfi_startproc\n)?' # drop optional cfi noise
35 r'(?P<body>.*?)\n'
37 r'^\s*(\.Lfunc_end[0-9]+|// -- End function)',
41 r'^_?(?P<func>[^:]+):[ \t]*;+[ \t]*@"?(?P=func)"?\n[^:]*?'
42 r'(?P<body>.*?)\n' # (body of the function)
44 r'^\s*(\.Lfunc_end[0-9]+:\n|\.section)',
48 r'^_?(?P<func>[^:]+):[ \t]*//[ \t]*@"?(?P=func)"?\n[^:]*?'
49 r'(?P<body>.*?)\n' # (body of the function)
51 r'.Lfunc_end[0-9]+:\n',
55 r'^_?(?P<func>[^:]+):[ \t]*;[ \t]*@"?(?P=func)"?\n'
56 r'(?P<body>.*?)\s*' # (body of the function)
57 r'.Lfunc_end[0-9]+:\n',
61 r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n[^:]*?' # f: (name of func)
62 r'(?:\s*\.?Ltmp[^:\n]*:\n)?[^:]*?' # optional .Ltmp<N> for EH
63 r'(?:^[ \t]+\.(frame|f?mask|set).*?\n)+' # Mips+LLVM standard asm prologue
64 r'(?P<body>.*?)\n' # (body of the function)
66 r'(?:(^[ \t]+\.set[^\n]*?\n)*^[ \t]+\.end.*?\n)'
67 r'(\$|\.L)func_end[0-9]+:\n', # $func_end0: (mips32 - O32) or
72 r'^_?(?P<func>[^:]+):[ \t]*;+[ \t]*@"?(?P=func)"?\n[^:]*?'
73 r'(?P<body>.*?)\n'
74 r'(\$|\.L)func_end[0-9]+:\n', # $func_end0:
78 r'^_?(?P<func>[^:]+):[ \t]*;+[ \t]*@"?(?P=func)"?\n[^:]*?'
79 r'(?P<body>.*?)\n'
80 r'.Lfunc_end[0-9]+:\n',
84 r'#[ \-\t]*Begin function (?P<func>[^.:]+)\n'
85 r'.*?'
86 r'^[_.]?(?P=func):(?:[ \t]*#+[ \t]*@"?(?P=func)"?)?\n'
87 r'(?:^[^#]*\n)*'
88 r'(?P<body>.*?)\n'
90 r'(?:^[ \t]*(?:\.(?:long|quad|v?byte)[ \t]+[^\n]+)\n)*'
91 r'(?:\.Lfunc_end|L\.\.(?P=func))[0-9]+:\n',
95 r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n'
96 … r'(?:\s*\.?L(?P=func)\$local:\n)?' # optional .L<func>$local: due to -fno-semantic-interposition
97 r'(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
98 r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
99 r'.Lfunc_end[0-9]+:\n',
103 r'^_?(?P<func>[^:]+):[ \t]*!+[ \t]*@"?(?P=func)"?\n'
104 r'(?:[ \t]+.cfi_startproc\n)?' # drop optional cfi noise
105 r'(?P<body>.*?)\s*'
106 r'.Lfunc_end[0-9]+:\n',
110 r'^_?(?P<func>[^:]+):[ \t]*!+[ \t]*@"?(?P=func)"?\n'
111 r'(?P<body>.*?)\s*'
112 r'.Lfunc_end[0-9]+:\n',
116 r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n'
117 r'[ \t]+.cfi_startproc\n'
118 r'(?P<body>.*?)\n'
119 r'.Lfunc_end[0-9]+:\n',
123 r'^_(?P<func>[^:]+):[ \t]*;[ \t]@"?(?P=func)"?\n'
124 r'([ \t]*.cfi_startproc\n[\s]*)?'
125 r'(?P<body>.*?)'
126 r'([ \t]*.cfi_endproc\n[\s]*)?'
127 r'^[ \t]*;[ \t]--[ \t]End[ \t]function',
131 r'@[ \t]--[ \t]Begin[ \t]function[ \t](?P<func>[^ \t]+?)\n'
132 r'^[ \t]*\.globl[ \t]*_(?P=func)[ \t]*'
133 r'(?P<directives>.*?)'
134 r'^_(?P=func):\n[ \t]*'
135 r'(?P<body>.*?)'
136 r'^[ \t]*@[ \t]--[ \t]End[ \t]function',
140 r'^_(?P<func>[^:]+):[ \t]*\n'
141 r'([ \t]*.cfi_startproc\n[ \t]*)?'
142 r'(?P<body>.*?)\n'
143 r'[ \t]*\.cfi_endproc\n',
147 r'^_(?P<func>[^:]+):\n'
148 r'(?P<body>.*?)\n'
149 r'[ \t]*\.data_region\n',
153 r'^_(?P<func>[^:]+):\n'
154 r'(?P<body>.*?)\n'
155 r'^[ \t]*@[ \t]--[ \t]End[ \t]function',
159 r'^_(?P<func>[^:]+):\n'
160 r'(?P<body>.*?)'
161 r'^[ \t]*@[ \t]--[ \t]End[ \t]function',
165 r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n'
166 r'(?P<body>.*?)\n'
167 r'^\s*(\.Lfunc_end[0-9]+:\n|end_function)',
171 r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n'
172 r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
173 r'.Lfunc_end[0-9]+:\n',
177 r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
178 r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
179 r'.Lfunc_end[0-9]+:\n',
186 r'^(\.(func|visible|weak|entry|noreturn|extern)\s+)+(\([^\)]*\)\s*)?'
189 r'(?P<func>[^\(\n]+)'
192 r'(?P<func_name_separator>\()'
198 r'[^\)]*\)(\s*//[^\n]*)?\n'
201 r'(?P<body>.*?)\n'
204 r'\s*// -- End function',
208 r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n'
209 r'(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
210 r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
211 r'.Lfunc_end[0-9]+:\n',
216 r'^(\s*\w+) [^#\n]+#+ ((?:[xyz]mm\d+|mem)( \{%k\d+\}( \{z\})?)? = .*)$',
221 r'^(\s*\w+) [^#\n]+#+ ((?:[xyz]mm\d+|mem)( \{%k\d+\}( \{z\})?)? = (?!.*(?:mem)).*)$',
226 r'-?\d+\(%([er])[sb]p\)(.*(?:Spill|Reload))$',
228 SCRUB_X86_SP_RE = re.compile(r'\d+\(%(esp|rsp)\)')
229 SCRUB_X86_RIP_RE = re.compile(r'[.\w]+\(%rip\)')
230 SCRUB_X86_LCP_RE = re.compile(r'\.?LCPI[0-9]+_[0-9]+')
231 SCRUB_X86_RET_RE = re.compile(r'ret[l|q]')
236 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
242 asm = SCRUB_X86_SHUFFLES_NO_MEM_RE.sub(r'\1 {{.*#+}} \2', asm)
244 asm = SCRUB_X86_SHUFFLES_RE.sub(r'\1 {{.*#+}} \2', asm)
248 asm = SCRUB_X86_SPILL_RELOAD_RE.sub(r'{{[-0-9]+}}(%\1{{[sb]}}p)\2', asm)
251 asm = SCRUB_X86_SP_RE.sub(r'{{[0-9]+}}(%\1)', asm)
254 asm = SCRUB_X86_RIP_RE.sub(r'{{.*}}(%rip)', asm)
256 asm = SCRUB_X86_LCP_RE.sub(r'{{\.?LCPI[0-9]+_[0-9]+}}', asm)
259 asm = SCRUB_X86_RET_RE.sub(r'ret{{[l|q]}}', asm)
263 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
269 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
273 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
279 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
285 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
291 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
295 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
301 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
305 asm = common.SCRUB_LOOP_COMMENT_RE.sub(r'#', asm)
307 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
309 asm = common.SCRUB_TAILING_COMMENT_TOKEN_RE.sub(r'', asm)
315 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
319 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
325 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
329 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
335 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
339 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
345 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
349 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
355 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
359 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
365 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
369 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
375 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
379 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
385 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
389 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
395 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
399 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
405 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
409 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
415 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
421 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
427 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
431 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)
437 asm = common.SCRUB_WHITESPACE_RE.sub(r' ', asm)
441 asm = common.SCRUB_TRAILING_WHITESPACE_RE.sub(r'', asm)