| ... | ... | @@ -4428,11 +4428,13 @@ fn runCodegenInner(pt: Zcu.PerThread, func_index: InternPool.Index, air: *Air) e |
| 4428 | 4428 | var liveness: Air.Liveness = try .analyze(zcu, air.*, ip); |
| 4429 | 4429 | defer liveness.deinit(gpa); |
| 4430 | 4430 | |
| 4431 | | // TODO: surely writing to stderr from n threads simultaneously will work flawlessly |
| 4432 | 4431 | if (build_options.enable_debug_extensions and comp.verbose_air) { |
| 4433 | | std.debug.print("# Begin Function AIR: {}:\n", .{fqn.fmt(ip)}); |
| 4434 | | air.dump(pt, liveness); |
| 4435 | | std.debug.print("# End Function AIR: {}\n\n", .{fqn.fmt(ip)}); |
| 4432 | std.debug.lockStdErr(); |
| 4433 | defer std.debug.unlockStdErr(); |
| 4434 | const stderr = std.io.getStdErr().writer(); |
| 4435 | stderr.print("# Begin Function AIR: {}:\n", .{fqn.fmt(ip)}) catch {}; |
| 4436 | air.write(stderr, pt, liveness); |
| 4437 | stderr.print("# End Function AIR: {}\n\n", .{fqn.fmt(ip)}) catch {}; |
| 4436 | 4438 | } |
| 4437 | 4439 | |
| 4438 | 4440 | if (std.debug.runtime_safety) { |