5 from ..dialects._ods_common
import _cext
as _ods_cext
6 from ..ir
import IntegerAttr, IntegerType
7 from ..support
import NamedValueOpView, get_value
8 from ._hwarith_ops_gen
import *
9 from ._hwarith_ops_gen
import _Dialect
26 def create(cls, lhs=None, rhs=None, result_type=None):
33 @_ods_cext.register_operation(_Dialect, replace=True)
39 @_ods_cext.register_operation(_Dialect, replace=True)
45 @_ods_cext.register_operation(_Dialect, replace=True)
51 @_ods_cext.register_operation(_Dialect, replace=True)
56 @_ods_cext.register_operation(_Dialect, replace=
True)
61 return cls(result_type, value)
64 @_ods_cext.register_operation(_Dialect, replace=True)
80 if isinstance(pred, int):
81 pred = IntegerAttr.get(IntegerType.get_signless(64), pred)
82 return cls(pred, a, b)
85 @_ods_cext.register_operation(_Dialect, replace=True)
90 return cls(IntegerAttr.get(data_type, value))
def create(cls, value, result_type)
def create(cls, data_type, value)
def create(cls, pred, a, b)