mlir.dialects._arith_enum_gen

Attributes

Classes

CmpFPredicate

allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

CmpIPredicate

allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

IntegerOverflowFlags

Integer overflow arith flags

RoundingMode

Floating point rounding mode

AtomicRMWKind

allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

FastMathFlags

Floating point fast math flags

Functions

Module Contents

mlir.dialects._arith_enum_gen._ods_ir
class mlir.dialects._arith_enum_gen.CmpFPredicate

Bases: enum.IntEnum

allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

AlwaysFalse = 0
OEQ = 1
OGT = 2
OGE = 3
OLT = 4
OLE = 5
ONE = 6
ORD = 7
UEQ = 8
UGT = 9
UGE = 10
ULT = 11
ULE = 12
UNE = 13
UNO = 14
AlwaysTrue = 15
__str__()

Return str(self).

mlir.dialects._arith_enum_gen._arith_cmpfpredicateattr(x, context)
class mlir.dialects._arith_enum_gen.CmpIPredicate

Bases: enum.IntEnum

allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

eq = 0
ne = 1
slt = 2
sle = 3
sgt = 4
sge = 5
ult = 6
ule = 7
ugt = 8
uge = 9
__str__()

Return str(self).

mlir.dialects._arith_enum_gen._arith_cmpipredicateattr(x, context)
class mlir.dialects._arith_enum_gen.IntegerOverflowFlags

Bases: enum.IntFlag

Integer overflow arith flags

none = 0
nsw = 1
nuw = 2
__iter__()
__len__()
__str__()

Return str(self).

mlir.dialects._arith_enum_gen._arith_integeroverflowflags(x, context)
class mlir.dialects._arith_enum_gen.RoundingMode

Bases: enum.IntEnum

Floating point rounding mode

to_nearest_even = 0
downward = 1
upward = 2
toward_zero = 3
to_nearest_away = 4
__str__()

Return str(self).

mlir.dialects._arith_enum_gen._arith_roundingmodeattr(x, context)
class mlir.dialects._arith_enum_gen.AtomicRMWKind

Bases: enum.IntEnum

allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

addf = 0
addi = 1
andi = 2
assign = 3
maximumf = 4
maxnumf = 5
maxs = 6
maxu = 7
minimumf = 8
minnumf = 9
mins = 10
minu = 11
mulf = 12
muli = 13
ori = 14
xori = 15
__str__()

Return str(self).

mlir.dialects._arith_enum_gen._atomicrmwkindattr(x, context)
class mlir.dialects._arith_enum_gen.FastMathFlags

Bases: enum.IntFlag

Floating point fast math flags

none = 0
reassoc = 1
nnan = 2
ninf = 4
nsz = 8
arcp = 16
contract = 32
afn = 64
fast = 127
__iter__()
__len__()
__str__()

Return str(self).

mlir.dialects._arith_enum_gen._fastmathflags(x, context)
mlir.dialects._arith_enum_gen._arith_fastmathattr(x, context)
mlir.dialects._arith_enum_gen._arith_integeroverflowattr(x, context)