-
Notifications
You must be signed in to change notification settings - Fork 415
Refactor ARM64HelperCallSnippet #8068
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
base: master
Are you sure you want to change the base?
Refactor ARM64HelperCallSnippet #8068
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic and spirit of this PR generally looks good. Three additional things:
- Consider a commit/PR message more descriptive of what this PR is doing, something like:
Refactor
ARM64HelperCallSnippet::emitSnippetBody()to allow the helper call emission logic to be shared with downstream projects.
-
In the commit/PR titles, change ARM to ARM64.
-
Please fix the ClangFormat errors
| uint8_t *TR::ARM64HelperCallSnippet::emitSnippetBody() | ||
| { | ||
| uint8_t *cursor = cg()->getBinaryBufferCursor(); | ||
| uint8_t *TR::ARM64HelperCallSnippet::emitSnippetBodyHelper(uint8_t *cursor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We often use the term Inner in these contexts when the guts of a function are refactored like this: emitSnippetBodyInner
Your term Helper in this context is a bit confusing in light of the fact this snippet is about emitting Helper calls. Unless there is a deeper connection here that I am missing.
619c9d0 to
5f95046
Compare
|
Thanks @0xdaryl , I've addressed your comments. I've also added a couple small changes for debug printing. See PR description for details. |
80a1fcf to
e0e7be9
Compare
|
Your commit message says:
But I don't see that in this PR. Is it missing, or do the messages need to be updated? |
Refactors ARM64HelperCallSnippet::emitSnippetBody so that the helper call emission logic can be used by downstream projects. Removes deprecated TR_Debug::print for ARM64HelperCallSnippet and replaces with newer TR::ARM64HelperCallSnippet::print - TR::ARM64HelperCallSnippet::printInner to be used by downstream projects Signed-off-by: Matthew Hall <matthew.hall3@outlook.com>
e0e7be9 to
29fbede
Compare
Just forgot to update the message after I took that change out |
Refactors ARM64HelperCallSnippet::emitSnippetBody so that the helper call emission logic can be used by downstream projects.
Removes deprecated TR_Debug::print for ARM64HelperCallSnippet and replaces with newer TR::ARM64HelperCallSnippet::print
- TR::ARM64HelperCallSnippet::printInner to be used by downstream projects
must be merged before eclipse-openj9/openj9#23085. This should not require a coordinated merge.