Skip to content

Conversation

zerbina
Copy link
Collaborator

@zerbina zerbina commented Oct 4, 2025

Summary

Pretty-print the anonymous constants as their value in --expandArc
and --showir output.

Details

When the MIR environment is available, anonymous constants are now
rendered as their value, not as their raw ID (which is dependent on
externalities unrelated to the body of the procedure).

The goal is to keep tests inspecting --expandArc and --showir
output from starting to fail when unrelated processing changes in
the future -- the tests affected by the change in rendering are
updated.

At least when the environment is available. This makes the output of
rendering less dependent on externalities (e.g., in what order
procedure bodies were translated).

The goal is make the `--expandArc` and `--showir` more stable, not
changing when some unrelated processing changes.
@zerbina zerbina added this to the MIR phase milestone Oct 4, 2025
@zerbina zerbina added refactor Implementation refactor compiler/backend Related to backend system of the compiler labels Oct 4, 2025
@saem
Copy link
Collaborator

saem commented Oct 5, 2025

/merge

Copy link

github-actions bot commented Oct 5, 2025

Merge requested by: @saem

Contents after the first section break of the PR description has been removed and preserved below:


Notes For Reviewers

@chore-runner chore-runner bot added this pull request to the merge queue Oct 5, 2025
Merged via the queue into nim-works:devel with commit 8a91190 Oct 5, 2025
43 checks passed
@zerbina zerbina deleted the make-mir-pretty-printer-output-more-stable branch October 6, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler/backend Related to backend system of the compiler refactor Implementation refactor

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants