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 the JIT module stand alone. #982

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Make the JIT module stand alone. #982

merged 2 commits into from
Feb 21, 2024

Conversation

vext01
Copy link
Contributor

@vext01 vext01 commented Feb 21, 2024

Before, the JIT module would share types, globals and functions with the AOT module. While efficient, it makes testing conceptually more complex.

This change makes the JIT IR stand alone.

@@ -630,14 +700,36 @@ impl Module {
ExtraArgsIdx::new(idx)
}

/// Push a new type into the type table and return its index.
fn push_type(&mut self, ty: Type) -> Result<TypeIdx, CompilationError> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I now realise that you've effectively implemented https://crates.io/crates/indexmap. No need to fix it in this PR but might be worth considering for an upcoming PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes. I vaguely remember this from our rustc days.

And it looks like it does the key parameterisation too, so perhaps all TiVecs should in fact be IndexMaps?

One for a future PR, yes.

@vext01
Copy link
Contributor Author

vext01 commented Feb 21, 2024

Any further comments on this, or ready to go?

@ltratt
Copy link
Contributor

ltratt commented Feb 21, 2024

Please squash.

Before, the JIT module would share types, globals and functions with the
AOT module. While efficient, it makes testing conceptually more complex.

This change makes the JIT IR stand alone.
@vext01
Copy link
Contributor Author

vext01 commented Feb 21, 2024

splat.

@ltratt ltratt added this pull request to the merge queue Feb 21, 2024
Merged via the queue into ykjit:master with commit 9943b9b Feb 21, 2024
2 checks passed
@vext01 vext01 deleted the unshare branch March 3, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants