-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve SemIR naming of import_ref
s
#4769
Comments
I recently submitted a pull request to fix a devcontainer issue. However, I have not taken any issues related to toolchain yet. Would it be ok if I attempt this? |
Yes, please go ahead. Our policy is to not assign "good first issue" issues, so please feel free to get started. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@gamestime102 - If you'd like to submit a patch, please use a GitHub pull request. Thanks! |
thank you |
Changes the name of SemIR `import_ref`s to use the format `<package>.<entity>`. <table> <tr><th>Before</th><th>After</th></tr> <tr> <td><code>%import_ref.05a: type</code></td> <td><code>%Main.D: type</code></td> </tr> <tr> <td><code>%import_ref.8f2: <witness></code></td> <td><code>%Main.import_ref.8f2: <witness></code></td> </tr> </table> * [Discord discussion in #toolchain](https://discord.com/channels/655572317891461132/655578254970716160/1330253540999827577) * Closes #4769
Currently
import_ref
s have a non-descriptive name, containing only a content hash and disambiguator, such as%import_ref.a69
or%import_ref.f9d349.2
. We should be able to do better.Ideas:
/
.import_ref
is loaded, look at its constant value and use that to form a name for theimport_ref
.InstNamer
s for all IRs being processed by the toolchain invocation, and actually use the name of the instruction (including disambiguator) from the target IR, either in the name of theimport_ref
or at least in the right-hand side when printing formatted SemIR.The text was updated successfully, but these errors were encountered: