alexcrichton opened PR #4581 from fact-memory64-readable
to main
:
This commit aims to improve the readability of supporting the memory64
proposal in thefact
adapter trampoline compiler. Previously there
were a few sprinkled blocks that usedif
to generate different
instructions inline, but as I've worked on support for strings this has
become pretty unwieldy as strings do far more memory manipulation than
other type conversions. A pattern that's easier to read is to have
small instruction helpers that take the pointer width as an argument and
internally dispatch to the correct instruction. This keeps the main
translation code branch-free and a bit easier to follow. Additionally
for more complicated branching logic it allows for deduplicating the
main translation path by having lots of little branches instead of one
large branch with everything duplicated on both halves.<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
alexcrichton requested fitzgen for a review on PR #4581.
fitzgen submitted PR review.
fitzgen submitted PR review.
alexcrichton updated PR #4581 from fact-memory64-readable
to main
.
alexcrichton has enabled auto merge for PR #4581.
alexcrichton merged PR #4581.
Last updated: Nov 22 2024 at 16:03 UTC