Skip to content
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

Make codegen_span stable #2882

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Conversation

ouz-a
Copy link
Contributor

@ouz-a ouz-a commented Nov 16, 2023

Follow up pr to #2871 as stable_mir::ty::Span have ability to get_filename and get_lineinfo we could start adopting it.

@ouz-a ouz-a requested a review from a team as a code owner November 16, 2023 19:33
@github-actions github-actions bot added the Z-BenchCI Tag a PR to run benchmark CI label Nov 16, 2023
@celinval celinval enabled auto-merge (squash) November 17, 2023 15:36
@celinval
Copy link
Contributor

@ouz-a, I believe you need to initialize the StableMIR components. In this case, I suggest that you move the initial initialization to be inside compiler_interface::codegen_crate(). That case, the entire codegen step can be used with the same SMIR session.

Note that you will have to remove the initialization inside analysis. Thanks!

@ouz-a
Copy link
Contributor Author

ouz-a commented Nov 27, 2023

Update: We are waiting for Opaque fix in this rust-lang/rust#118172 pr to land, before continuing the work on this as this is currently blocked by how we store strings.

auto-merge was automatically disabled November 29, 2023 08:29

Head branch was pushed to by a user without write access

@celinval celinval enabled auto-merge (squash) November 29, 2023 18:34
@celinval celinval merged commit 9d01f97 into model-checking:main Nov 29, 2023
20 checks passed
@ouz-a ouz-a mentioned this pull request Dec 2, 2023
celinval pushed a commit that referenced this pull request Dec 8, 2023
Last time we stabilized
#2882, this continues the
trend and stabilizes `find_debug_info` as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-BenchCI Tag a PR to run benchmark CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants