Commit 213ab96
authored
[flang][NFC] Use tablegen to reduce MemoryAllocationOpt boilerplate (#90062)
This is another one that runs on functions but isn't appropriate to also
run on other top level operations. It needs to find all paths that
return from the function to free heap allocated memory. There isn't a
generic concept for general top level operations which is equivalent to
looking for function returns.
I removed the manual definition of the options structure because there
is already an identical definition in tablegen and the options are
documented in Passes.td.1 parent 46b66df commit 213ab96
File tree
4 files changed
+9
-29
lines changed- flang
- include/flang
- Optimizer/Transforms
- Tools
- lib/Optimizer/Transforms
4 files changed
+9
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
68 | | - | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 31 | | |
43 | 32 | | |
44 | 33 | | |
| |||
68 | 57 | | |
69 | 58 | | |
70 | 59 | | |
71 | | - | |
72 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
73 | 63 | | |
74 | 64 | | |
75 | 65 | | |
| |||
168 | 158 | | |
169 | 159 | | |
170 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
171 | 164 | | |
172 | 165 | | |
173 | 166 | | |
| |||
211 | 204 | | |
212 | 205 | | |
213 | 206 | | |
214 | | - | |
| 207 | + | |
215 | 208 | | |
216 | 209 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
0 commit comments