CIRCT
20.0.0git
lib
Bindings
Python
dialects
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
17
class
ChannelSignaling
:
18
ValidReady = 0
19
FIFO = 1
20
21
22
@_ods_cext.register_operation(_Dialect, replace=True)
23
class
RequestConnectionOp
(
RequestConnectionOp
):
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)
34
class
RandomAccessMemoryDeclOp
(
RandomAccessMemoryDeclOp
):
35
36
@property
37
def
innerType
(self):
38
return
ir.TypeAttr(self.attributes[
"innerType"
])
39
40
41
@_ods_cext.register_operation(_Dialect, replace=True)
42
class
ESIPureModuleOp
(
ESIPureModuleOp
):
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]
esi.ChannelSignaling
Definition:
esi.py:17
esi.ESIPureModuleOp
Definition:
esi.py:42
esi.ESIPureModuleOp.add_entry_block
def add_entry_block(self)
Definition:
esi.py:44
esi.RandomAccessMemoryDeclOp
Definition:
esi.py:34
esi.RandomAccessMemoryDeclOp.innerType
def innerType(self)
Definition:
esi.py:37
esi.RequestConnectionOp
Definition:
esi.py:23
esi.RequestConnectionOp.clientNamePath
List[str] clientNamePath(self)
Definition:
esi.py:26
_esi
Generated on Thu Dec 26 2024 00:07:18 for CIRCT by
1.9.1