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

Fix incorrect/missing IR semantics documentation #1834

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

schilkp
Copy link
Contributor

@schilkp schilkp commented Jan 7, 2025

  • Adds missing nand and nor operations and clarifies their behavior.

  • Adds missing reduction operations.

  • Correct typing of eq and ne operands: They can be any type, not just bits

Please especially check the following, as far as I can tell this is the behavior of the IR interpreter:

If only a single argument is provided, the operations and, or, and xor are a no-op, while nand and nor act as a bit-wise not.

For reduction ops:

For an operand of width 1, they act as no-ops.

Cheers!

- Adds missing `nand` and `nor` operations and clarifies their
  behaviour.

- Adds missing reduction operations.

- Correct typing of `eq` and `ne` operands: They can by any type, not
  just `bits`
Copy link
Collaborator

@meheff meheff left a comment

Choose a reason for hiding this comment

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

Thanks for the documentation fixes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants