8 from ..dialects._ods_common
import _cext
as _ods_cext
9 from ..ir
import ArrayAttr
10 from ._msft_ops_gen
import *
11 from ._msft_ops_gen
import _Dialect
12 from typing
import Dict, List, Type
15 @_ods_cext.register_operation(_Dialect, replace=True)
19 existing_bounds = [b
for b
in ArrayAttr(self.attributes[
"bounds"])]
20 existing_bounds.append(bounds)
21 new_bounds = ArrayAttr.get(existing_bounds)
22 self.attributes[
"bounds"] = new_bounds
25 @_ods_cext.register_operation(_Dialect, replace=True)
29 def create(root_mod, instance_name=None):
31 hier.body.blocks.append()
36 return self.attributes[
"topModuleRef"]
39 @_ods_cext.register_operation(_Dialect, replace=True)
45 inst.body.blocks.append()
52 while isinstance(next, DynamicInstanceOp):
53 path.append(next.attributes[
"instanceRef"])
54 next = next.operation.parent.opview
56 return ArrayAttr.get(path)
60 return self.attributes[
"instanceRef"]
63 @_ods_cext.register_operation(_Dialect, replace=True)
68 return msft.PhysLocationAttr(self.attributes[
"loc"])
def add_bounds(self, bounds)
def create(root_mod, instance_name=None)