Skip to content

x64: Custom print logic #10918

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

Merged
merged 4 commits into from
Jun 5, 2025
Merged

Conversation

rahulchaphalkar
Copy link
Contributor

This PR implements custom print logic for lock instruction, and reworks the existing logic for custom_visit to be more in the form of .custom(Visit | Display). The custom_visit logic was originally implemented in #10887 and the changes are made based on some of these comments #10887 (comment)

The Display logic will be used for compare instructions as well.
@abrown

@rahulchaphalkar rahulchaphalkar requested a review from a team as a code owner June 4, 2025 01:41
@rahulchaphalkar rahulchaphalkar requested review from fitzgen and removed request for a team June 4, 2025 01:41
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Jun 4, 2025
@abrown abrown requested review from abrown and removed request for fitzgen June 4, 2025 15:34
Copy link
Member

@abrown abrown left a comment

Choose a reason for hiding this comment

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

I think the important bits are mostly here, most of the comments below are smaller Rust issues. The one real issue here is where we put the logic... see below.

@abrown abrown mentioned this pull request Jun 4, 2025
rahulchaphalkar and others added 2 commits June 5, 2025 14:25
Co-authored-by: Andrew Brown <andrew.brown@intel.com>
@rahulchaphalkar
Copy link
Contributor Author

Ready for review, addressed feedback

Copy link
Member

@abrown abrown left a comment

Choose a reason for hiding this comment

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

Thanks! This looks good. I'll put this in the merge queue but if @alexcrichton has any further suggestions we could follow this up in the compare PR.

@abrown abrown added this pull request to the merge queue Jun 5, 2025
Merged via the queue into bytecodealliance:main with commit 5750700 Jun 5, 2025
160 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants