Skip to content

[CIR][NFC] Backport upstream bit operations changes #1744

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 1 commit into from
Jul 16, 2025

Conversation

Lancern
Copy link
Member

@Lancern Lancern commented Jul 15, 2025

This patch backports changes made to the bit operations in the upstream PR llvm/llvm-project#148378. Namely, this patch includes the following changes:

  • This patch removes the bit. prefix in the op mnemonic. The operation names now directly correspond to the builtin function names except for bswap which is represented by cir.byte_swap for more clarity.
  • Since all bit operations are SameOperandsAndResultType, this patch updates their assembly format and avoids spelling out the operand type twice.

This patch backports changes made to the bit operations in the upstream. Namely,
this patch includes the following changes:

- This patch removes the `bit.` prefix in the op mnemonic. The operation names
  now directly correspond to the builtin function names except for bswap which
  is represented by `cir.byte_swap` for more clarity.
- Since all bit operations are `SameOperandsAndResultType`, this patch updates
  their assembly format and avoids spelling out the operand type twice.
@Lancern Lancern requested review from xlauko and bcardosolopes and removed request for bcardosolopes and lanza July 15, 2025 15:22
Copy link
Collaborator

@xlauko xlauko left a comment

Choose a reason for hiding this comment

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

lgtm

@Lancern Lancern merged commit fe8b9ca into llvm:main Jul 16, 2025
9 of 10 checks passed
@Lancern Lancern deleted the bits-op-backport branch July 16, 2025 12:57
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