CIRCT  20.0.0git
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 
5 from __future__ import annotations
6 
7 from . import esi
8 from .. import ir
9 from .. import support
10 from .._mlir_libs._circt._esi import *
11 from ..dialects._ods_common import _cext as _ods_cext
12 from ._esi_ops_gen import *
13 from ._esi_ops_gen import _Dialect
14 from typing import Dict, List, Optional, Sequence, Type
15 
16 
18  ValidReady = 0
19  FIFO = 1
20 
21 
22 @_ods_cext.register_operation(_Dialect, replace=True)
24 
25  @property
26  def clientNamePath(self) -> List[str]:
27  return [
28  ir.StringAttr(x).value
29  for x in ir.ArrayAttr(self.attributes["clientNamePath"])
30  ]
31 
32 
33 @_ods_cext.register_operation(_Dialect, replace=True)
35 
36  @property
37  def innerType(self):
38  return ir.TypeAttr(self.attributes["innerType"])
39 
40 
41 @_ods_cext.register_operation(_Dialect, replace=True)
43 
44  def add_entry_block(self):
45  if len(self.body.blocks) > 0:
46  raise IndexError('The module already has an entry block')
47  self.body.blocks.append()
48  return self.body.blocks[0]
def add_entry_block(self)
Definition: esi.py:44
List[str] clientNamePath(self)
Definition: esi.py:26