6 from ..dialects._ods_common
import _cext
as _ods_cext
7 from ..ir
import IntegerAttr, IntegerType, OpView
8 from ..support
import NamedValueOpView, get_value
9 from ._comb_ops_gen
import *
10 from ._comb_ops_gen
import _Dialect
22 def __init__(self, predicate, data_type, input_port_mapping={}, **kwargs):
23 predicate = IntegerAttr.get(IntegerType.get_signless(64), predicate)
24 super().
__init__(ICmpOp, data_type, input_port_mapping, [predicate],
35 def create(lhs=None, rhs=None):
42 result_type = IntegerType.get_signless(1)
103 class UnaryOpBuilder(NamedValueOpView):
117 def create(cls, input=None, result_type=None):
118 mapping = {
"input": input}
if input
else {}
126 def __init__(self, low_bit, data_type, input_port_mapping={}, **kwargs):
127 low_bit = IntegerAttr.get(IntegerType.get_signless(32), low_bit)
135 return [
"lhs",
"rhs"]
146 def create(cls, lhs=None, rhs=None, result_type=None):
163 def create(cls, *args):
176 def create(cls, *args, **kwargs):
177 return cls(*args, **kwargs)
183 @_ods_cext.register_operation(_Dialect, replace=True)
187 def create(low_bit, result_type, input=None):
188 mapping = {
"input": input}
if input
else {}
192 needs_result_type=
True)
195 @_ods_cext.register_operation(_Dialect, replace=True)
202 @_ods_cext.register_operation(_Dialect, replace=
True)
208 @_ods_cext.register_operation(_Dialect, replace=
True)
214 @_ods_cext.register_operation(_Dialect, replace=
True)
220 @_ods_cext.register_operation(_Dialect, replace=
True)
226 @_ods_cext.register_operation(_Dialect, replace=
True)
232 @_ods_cext.register_operation(_Dialect, replace=
True)
238 @_ods_cext.register_operation(_Dialect, replace=
True)
244 @_ods_cext.register_operation(_Dialect, replace=
True)
251 @_ods_cext.register_operation(_Dialect, replace=
True)
257 @_ods_cext.register_operation(_Dialect, replace=
True)
263 @_ods_cext.register_operation(_Dialect, replace=
True)
269 @_ods_cext.register_operation(_Dialect, replace=
True)
275 @_ods_cext.register_operation(_Dialect, replace=
True)
281 @_ods_cext.register_operation(_Dialect, replace=
True)
288 @_ods_cext.register_operation(_Dialect, replace=
True)
def __init__(self, predicate, data_type, input_port_mapping={}, **kwargs)