Fast math
fast_math
¶
FastMathFlag
¶
Bases: StrEnum
Values specifying fast math behaviour of an arithmetic operation.
Source code in xdsl/dialects/utils/fast_math.py
REASSOC = 'reassoc'
class-attribute
instance-attribute
¶
NO_NANS = 'nnan'
class-attribute
instance-attribute
¶
NO_INFS = 'ninf'
class-attribute
instance-attribute
¶
NO_SIGNED_ZEROS = 'nsz'
class-attribute
instance-attribute
¶
ALLOW_RECIP = 'arcp'
class-attribute
instance-attribute
¶
ALLOW_CONTRACT = 'contract'
class-attribute
instance-attribute
¶
APPROX_FUNC = 'afn'
class-attribute
instance-attribute
¶
FastMathAttrBase
dataclass
¶
Bases: BitEnumAttribute[FastMathFlag], ABC
Base class for attributes defining fast math behavior of arithmetic operations.