Commit 6905fa5
committed
Add a bunch of trace logging for CLIF and Wasm-to-CLIF translation
This adds trace logging for:
* `InstructionBuilder` methods
* Switching `FunctionBuilder`s between blocks
* A ton of GC-related Wasm-to-CLIF translation bits
The result is that it is wayyyyyyyy easier to tell what CLIF is generated for
what purpose when staring at trace logs, particularly for Wasm GC things where a
single Wasm instruction might become many blocks of CLIF.
At the same time, this consolidates some `translate_{array,struct}_get{,_s,_u}`
helpers so that there is less code duplication (purely mechanical; should not
change any actual translations or instructions we emit) just so that there were
fewer places to add trace logs to.1 parent a727985 commit 6905fa5
File tree
6 files changed
+161
-171
lines changed- cranelift
- codegen/meta/src
- frontend/src
- crates/cranelift/src
- gc
- enabled
- translate
6 files changed
+161
-171
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1181 | 1187 | | |
1182 | | - | |
| 1188 | + | |
1183 | 1189 | | |
1184 | 1190 | | |
1185 | 1191 | | |
1186 | | - | |
1187 | 1192 | | |
1188 | 1193 | | |
1189 | 1194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
1955 | 1961 | | |
1956 | 1962 | | |
1957 | 1963 | | |
| 1964 | + | |
1958 | 1965 | | |
1959 | | - | |
1960 | | - | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
1971 | | - | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
1975 | | - | |
1976 | | - | |
1977 | | - | |
1978 | | - | |
1979 | | - | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
1980 | 1974 | | |
1981 | 1975 | | |
1982 | 1976 | | |
| |||
2181 | 2175 | | |
2182 | 2176 | | |
2183 | 2177 | | |
| 2178 | + | |
2184 | 2179 | | |
2185 | | - | |
2186 | | - | |
2187 | | - | |
2188 | | - | |
2189 | | - | |
2190 | | - | |
2191 | | - | |
2192 | | - | |
2193 | | - | |
2194 | | - | |
2195 | | - | |
2196 | | - | |
2197 | | - | |
2198 | | - | |
2199 | | - | |
2200 | | - | |
2201 | | - | |
2202 | | - | |
2203 | | - | |
2204 | | - | |
2205 | | - | |
| 2180 | + | |
2206 | 2181 | | |
2207 | 2182 | | |
2208 | 2183 | | |
| |||
0 commit comments