Skip to main content

Module ops

Module ops 

Source
Expand description

Shared binary and unary operator enums used across all IRs.

Centralizing these means each IR’s InstData enum has a single Bin or Unary variant, and ~20 parallel match arms across passes collapse into one. See ADR notes in the gruel-util README for background.

Enums§

BinOp
Binary operator. Used in expressions of the form lhs <op> rhs.
UnaryOp
Unary operator. Used in expressions of the form <op>operand.