philipc opened PR #1364 from issue-1353
to master
:
This removes the need to call
finalize_definitions
for cranelift-object.finalize_definitions
is only intended for backends that produce finalized functions and data objects, which cranelift-object does not.Fixes #1353
I couldn't come up with better names for
finalize_definitions
andfinish
. I think improving the documentation is enough. I made a small improvement here forfinalize_definitions
. I think it was already pretty clear whatfinish
did.r? @iximeow
[x] This has been discussed in issue #..., or if not, please tell us why
here.[x] 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.
- [x] 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 and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
bnjbvr requested iximeow for a review on PR #1364.
iximeow submitted PR Review.
iximeow submitted PR Review.
iximeow created PR Review Comment:
I think a point of confusion has been what "finalized" means in contrast to whatever "finish" might do. Not having better names for these either, can we clarify what the difference is? Just noting that some backends have a meaningful step in their lifecycle for "functions and data that can be used, not necessarily written to an output" would have clarified a lot for me, at least.
philipc submitted PR Review.
philipc created PR Review Comment:
What if I say it's only relevant for JIT backends?
iximeow submitted PR Review.
iximeow created PR Review Comment:
That's a bit more prescriptive than I prefer for documentation, but I won't push back on it for lack of counterexample.
philipc updated PR #1364 from issue-1353
to master
:
This removes the need to call
finalize_definitions
for cranelift-object.finalize_definitions
is only intended for backends that produce finalized functions and data objects, which cranelift-object does not.Fixes #1353
I couldn't come up with better names for
finalize_definitions
andfinish
. I think improving the documentation is enough. I made a small improvement here forfinalize_definitions
. I think it was already pretty clear whatfinish
did.r? @iximeow
[x] This has been discussed in issue #..., or if not, please tell us why
here.[x] 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.
- [x] 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 and/or ping
bnjbvr
. The list of suggested reviewers on the right can help you.<!-- Please ensure all communication adheres to the code of conduct. -->
philipc submitted PR Review.
philipc created PR Review Comment:
Ok, so instead of using ambiguous English, let's refer to the condition in the code instead. I've moved this change to a new commit that also updates the comments on other functions.
iximeow submitted PR Review.
iximeow created PR Review Comment:
Yeah I think that's a good call.
iximeow submitted PR Review.
bnjbvr merged PR #1364.
Last updated: Dec 23 2024 at 14:03 UTC