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

Allow pinned-vregs to be implicit liveins. #30

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

cfallin
Copy link
Member

@cfallin cfallin commented Mar 17, 2022

Previously, the regalloc required all liveins to be defined by a
pseudoinstruction at the start of the function body. The regalloc.rs
compatibility shim did this, but it's slightly inconvenient when using
the API directly. This change allows pinned vregs to be implicit liveins
to the function body instead.

Developed during Cranelift integration (bytecodealliance/wasmtime#3942).

@cfallin cfallin requested a review from fitzgen March 17, 2022 23:52
Copy link
Contributor

@Amanieu Amanieu left a comment

Choose a reason for hiding this comment

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

This should be documented on is_pinned_vreg in lib.rs.

Previously, the regalloc required all liveins to be defined by a
pseudoinstruction at the start of the function body. The regalloc.rs
compatibility shim did this, but it's slightly inconvenient when using
the API directly. This change allows pinned vregs to be implicit liveins
to the function body instead.
@cfallin cfallin merged commit bf92e7c into bytecodealliance:main Mar 18, 2022
@cfallin cfallin deleted the allow-pinned-liveins branch March 18, 2022 17:13
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.

2 participants