Expand description
arith
dialect.
The arith dialect is intended to hold basic integer and floating point mathematical operations. This includes unary, binary, and ternary arithmetic ops, bitwise and shift ops, cast ops, and compare ops. Operations in this dialect also accept vectors and tensors of integers or floats.
Structs
- An
addf
operation. Floating point addition operation. - A builder for an
addf
operation. - An
addi
operation. Integer addition operation. - A builder for an
addi
operation. - An
addui_extended
operation. extended unsigned integer addition operation returning sum and overflow bit . - A builder for an
addui_extended
operation. - An
andi
operation. Integer binary and. - A builder for an
andi
operation. - A
bitcast
operation. Bitcast between values of equal bit width. - A builder for a
bitcast
operation. - A
ceildivsi
operation. Signed ceil integer division operation. - A builder for a
ceildivsi
operation. - A
ceildivui
operation. Unsigned ceil integer division operation. - A builder for a
ceildivui
operation. - A
cmpf
operation. Floating-point comparison operation. - A builder for a
cmpf
operation. - A
cmpi
operation. Integer comparison operation. - A builder for a
cmpi
operation. - A
constant
operation. Integer or floating point constant. - A builder for a
constant
operation. - A
divf
operation. Floating point division operation. - A builder for a
divf
operation. - A
divsi
operation. Signed integer division operation. - A builder for a
divsi
operation. - A
divui
operation. Unsigned integer division operation. - A builder for a
divui
operation. - An
extf
operation. Cast from floating-point to wider floating-point. - A builder for an
extf
operation. - An
extsi
operation. Integer sign extension operation. - A builder for an
extsi
operation. - An
extui
operation. Integer zero extension operation. - A builder for an
extui
operation. - A
fptosi
operation. Cast from floating-point type to integer type. - A builder for a
fptosi
operation. - A
fptoui
operation. Cast from floating-point type to integer type. - A builder for a
fptoui
operation. - A
floordivsi
operation. Signed floor integer division operation. - A builder for a
floordivsi
operation. - An
index_cast
operation. Cast between index and integer types. - A builder for an
index_cast
operation. - An
index_castui
operation. Unsigned cast between index and integer types. - A builder for an
index_castui
operation. - A
maxf
operation. Floating-point maximum operation. - A builder for a
maxf
operation. - A
maxsi
operation. Signed integer maximum operation. - A builder for a
maxsi
operation. - A
maxui
operation. Unsigned integer maximum operation. - A builder for a
maxui
operation. - A
minf
operation. Floating-point minimum operation. - A builder for a
minf
operation. - A
minsi
operation. Signed integer minimum operation. - A builder for a
minsi
operation. - A
minui
operation. Unsigned integer minimum operation. - A builder for a
minui
operation. - A
mulf
operation. Floating point multiplication operation. - A builder for a
mulf
operation. - A
muli
operation. Integer multiplication operation. - A builder for a
muli
operation. - A
mulsi_extended
operation. extended signed integer multiplication operation . - A builder for a
mulsi_extended
operation. - A
mului_extended
operation. extended unsigned integer multiplication operation . - A builder for a
mului_extended
operation. - A
negf
operation. Floating point negation. - A builder for a
negf
operation. - An
ori
operation. Integer binary or. - A builder for an
ori
operation. - A
remf
operation. Floating point division remainder operation. - A builder for a
remf
operation. - A
remsi
operation. Signed integer division remainder operation. - A builder for a
remsi
operation. - A
remui
operation. Unsigned integer division remainder operation. - A builder for a
remui
operation. - A
sitofp
operation. Cast from integer type to floating-point. - A builder for a
sitofp
operation. - A
select
operation. Select operation. - A builder for a
select
operation. - A
shli
operation. Integer left-shift. - A builder for a
shli
operation. - A
shrsi
operation. Signed integer right-shift. - A builder for a
shrsi
operation. - A
shrui
operation. Unsigned integer right-shift. - A builder for a
shrui
operation. - A
subf
operation. Floating point subtraction operation. - A builder for a
subf
operation. - A
subi
operation. Integer subtraction operation. - A builder for a
subi
operation. - A
truncf
operation. Cast from floating-point to narrower floating-point. - A builder for a
truncf
operation. - A
trunci
operation. Integer truncation operation. - A builder for a
trunci
operation. - An
uitofp
operation. Cast from unsigned integer type to floating-point. - A builder for an
uitofp
operation. - A
xori
operation. Integer binary xor. - A builder for a
xori
operation.
Functions
- Creates an
addf
operation. - Creates an
addi
operation. - Creates an
addui_extended
operation. - Creates an
andi
operation. - Creates a
bitcast
operation. - Creates a
ceildivsi
operation. - Creates a
ceildivui
operation. - Creates a
cmpf
operation. - Creates a
cmpi
operation. - Creates a
constant
operation. - Creates a
divf
operation. - Creates a
divsi
operation. - Creates a
divui
operation. - Creates an
extf
operation. - Creates an
extsi
operation. - Creates an
extui
operation. - Creates a
floordivsi
operation. - Creates a
fptosi
operation. - Creates a
fptoui
operation. - Creates an
index_cast
operation. - Creates an
index_castui
operation. - Creates a
maxf
operation. - Creates a
maxsi
operation. - Creates a
maxui
operation. - Creates a
minf
operation. - Creates a
minsi
operation. - Creates a
minui
operation. - Creates a
mulf
operation. - Creates a
muli
operation. - Creates a
mulsi_extended
operation. - Creates a
mului_extended
operation. - Creates a
negf
operation. - Creates an
ori
operation. - Creates a
remf
operation. - Creates a
remsi
operation. - Creates a
remui
operation. - Creates a
select
operation. - Creates a
shli
operation. - Creates a
shrsi
operation. - Creates a
shrui
operation. - Creates a
sitofp
operation. - Creates a
subf
operation. - Creates a
subi
operation. - Creates a
truncf
operation. - Creates a
trunci
operation. - Creates an
uitofp
operation. - Creates a
xori
operation.