Skip to content
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

Revise folding for CBitExtractBitOp #99

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

mhillenbrand
Copy link
Contributor

Simplify and add support for the base case of single-bit registers. While at it, add a verifier for CBitExtractBitOp.

Simplify and add support for the base case of single-bit registers.
While at it, add a verifier for CBitExtractBitOp.
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@mbhealy mbhealy left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +107 to +108
if (auto cbitType = t.dyn_cast<mlir::quir::CBitType>();
cbitType && op.index().ult(cbitType.getWidth()))
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL in multiple ways 😄

Copy link
Collaborator

@taalexander taalexander left a comment

Choose a reason for hiding this comment

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

LGTM

@mhillenbrand mhillenbrand merged commit 90f688b into main May 2, 2023
@mhillenbrand mhillenbrand deleted the mh-single-bit-creg branch May 2, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants