-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Migrate clz, ctz, popcnt, bitrev, is_null, is_invalid on x64 to ISLE. #3848
Conversation
9a08a95
to
e226cd2
Compare
Subscribe to Label Action
This issue or pull request has been labeled: "cranelift", "cranelift:area:aarch64", "cranelift:area:machinst", "cranelift:area:x64", "isle"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
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.
I think this looks good to me with some questions below.
One more thought: it might be worthwhile to check that all of the instructions ported here are covered by runtests. |
Updated, thanks!
Yep, I've verified that all of the bitops here are exercised by runtests; they actually caught a few bugs during porting. |
@abrown you probably want to take another look at the changes related to |
Along the way this introduces a few new utility bits to the ISLE bindings, e.g. some constructors to do integer arithmetic on constants (I'm surprised we got this far without it!). The bit-twiddling algorithms are, at least to my eye, a bit more legible in this form, but I'm happy to add more comments here if desired since we're making a pass over everything anyway.
Also updated a few stray places I had missed earlier where we can use implicit conversions (the
def_inst
removals).