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

Gate support for implicit return area pointers behind an option #9511

Merged
merged 7 commits into from
Oct 27, 2024

Conversation

bjorn3
Copy link
Contributor

@bjorn3 bjorn3 commented Oct 24, 2024

It implements an incorrect ABI and may be removed in the future due to complexity reasons. By requiring to enable an option to use it, it becomes harder to accidentally hit the ABI issue and allows a more deprecation and eventual removal.

@bjorn3 bjorn3 requested review from a team as code owners October 24, 2024 16:55
@bjorn3 bjorn3 requested review from abrown and elliottt and removed request for a team October 24, 2024 16:55
It implements an incorrect ABI and may be removed in the future due to
complexity reasons. By requiring to enable an option to use it, it
becomes harder to accidentally hit the ABI issue and allows a more
deprecation and eventual removal.
@bjorn3 bjorn3 force-pushed the deny_implicit_sret_by_default branch from 83d8c13 to 5210a1d Compare October 24, 2024 16:59
Copy link
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

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

Looks good, thanks -- I agree it's a good idea to wall this off a little bit while we work out what to do. A few comments on the description and error messages to offer some more tips but otherwise LGTM.

cranelift/fuzzgen/src/lib.rs Outdated Show resolved Hide resolved
crates/wasmtime/src/config.rs Show resolved Hide resolved
cranelift/codegen/meta/src/shared/settings.rs Outdated Show resolved Hide resolved
cranelift/codegen/meta/src/shared/settings.rs Outdated Show resolved Hide resolved
cranelift/codegen/meta/src/shared/settings.rs Show resolved Hide resolved
cranelift/codegen/src/isa/aarch64/abi.rs Outdated Show resolved Hide resolved
@cfallin
Copy link
Member

cfallin commented Oct 24, 2024

@bjorn3 it looks like a few riscv64 tests need the new option as well. Let me know when green and I'm happy to take a final look and merge!

@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:machinst Issues related to instruction selection and the new MachInst backend. cranelift:area:aarch64 Issues related to AArch64 backend. cranelift:area:x64 Issues related to x64 codegen cranelift:meta Everything related to the meta-language. labels Oct 24, 2024
@bjorn3
Copy link
Contributor Author

bjorn3 commented Oct 25, 2024

CI is green.

@elliottt elliottt added this pull request to the merge queue Oct 27, 2024
@elliottt elliottt removed this pull request from the merge queue due to a manual request Oct 27, 2024
@cfallin cfallin added this pull request to the merge queue Oct 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 27, 2024
@cfallin
Copy link
Member

cfallin commented Oct 27, 2024

A few more failures in this run when it tried the full set on the merge queue, it looks like. (Feel free to use prtest:full in a commit message to test this on the branch!)

@bjorn3 bjorn3 force-pushed the deny_implicit_sret_by_default branch from 9198a05 to 57ff00a Compare October 27, 2024 10:16
@bjorn3 bjorn3 force-pushed the deny_implicit_sret_by_default branch from 57ff00a to 5057651 Compare October 27, 2024 10:32
@bjorn3
Copy link
Contributor Author

bjorn3 commented Oct 27, 2024

Fixed those tests.

@cfallin cfallin added this pull request to the merge queue Oct 27, 2024
Merged via the queue into bytecodealliance:main with commit af96846 Oct 27, 2024
39 checks passed
@bjorn3 bjorn3 deleted the deny_implicit_sret_by_default branch October 31, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:aarch64 Issues related to AArch64 backend. cranelift:area:machinst Issues related to instruction selection and the new MachInst backend. cranelift:area:x64 Issues related to x64 codegen cranelift:meta Everything related to the meta-language. cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants