Commit 37635ba
committed
Wire up PYTHONJITDUMPLIR env var for LIR dump output
Add shouldDumpLir() helper in gen_asm.cpp that checks both
getConfig().log.dump_lir and the PYTHONJITDUMPLIR environment
variable. The env var fallback is needed because the C++ FlagProcessor
may not pick up -X options due to init ordering in Phoenix builds.
The env var result is cached after first check (static local).
All 4 JIT_LOGIF dump sites now use shouldDumpLir().
This is a permanent verification tool per Alex's directive — amortised
cost over all future C++→C conversions.1 parent 615cba2 commit 37635ba
1 file changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| |||
1263 | 1278 | | |
1264 | 1279 | | |
1265 | 1280 | | |
1266 | | - | |
| 1281 | + | |
1267 | 1282 | | |
1268 | 1283 | | |
1269 | 1284 | | |
| |||
1275 | 1290 | | |
1276 | 1291 | | |
1277 | 1292 | | |
1278 | | - | |
| 1293 | + | |
1279 | 1294 | | |
1280 | 1295 | | |
1281 | 1296 | | |
| |||
1309 | 1324 | | |
1310 | 1325 | | |
1311 | 1326 | | |
1312 | | - | |
| 1327 | + | |
1313 | 1328 | | |
1314 | 1329 | | |
1315 | 1330 | | |
| |||
1321 | 1336 | | |
1322 | 1337 | | |
1323 | 1338 | | |
1324 | | - | |
| 1339 | + | |
1325 | 1340 | | |
1326 | 1341 | | |
1327 | 1342 | | |
| |||
0 commit comments