CIRCT 23.0.0git
Loading...
Searching...
No Matches
esi.py
Go to the documentation of this file.
1# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
2# See https://llvm.org/LICENSE.txt for license information.
3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5from __future__ import annotations
6
7from . import esi
8from .. import ir
9from .. import support
10from .._mlir_libs._circt._esi import *
11from ..dialects._ods_common import _cext as _ods_cext
12from ._esi_ops_gen import *
13from ._esi_ops_gen import _Dialect
14from typing import Dict, List, Optional, Sequence, Type
15
16
18 ValidReady = 0
19 FIFO = 1
20 ValidOnly = 2
21
22
23@_ods_cext.register_operation(_Dialect, replace=True)
25
26 @property
27 def clientNamePath(self) -> List[str]:
28 return [
29 ir.StringAttr(x).value
30 for x in ir.ArrayAttr(self.attributes["clientNamePath"])
31 ]
32
33
34@_ods_cext.register_operation(_Dialect, replace=True)
36
37 @property
38 def innerType(self):
39 return ir.TypeAttr(self.attributes["innerType"])
40
41
42@_ods_cext.register_operation(_Dialect, replace=True)
44
45 def add_entry_block(self):
46 if len(self.body.blocks) > 0:
47 raise IndexError('The module already has an entry block')
48 self.body.blocks.append()
49 return self.body.blocks[0]
add_entry_block(self)
Definition esi.py:45
List[str] clientNamePath(self)
Definition esi.py:27