Page cover

arith

The arith dialect provides foundational operations for working with basic types. It includes instructions for basic arithmetic, logical operations, and comparisons. This dialect is flat, with no subgroups, and focuses entirely on non-encrypted types.

Examples

\\Adds two integers and returns an integer result.
%sum = arith.add %a, %b : (i32) -> i32

\\Compares two 64-bit integers for equality, returning a Boolean result.
%eq = arith.eq %x, %y : (i64) -> bool

Last updated