Symref
symref
Symref = Dialect('symref', [DeclareOp, FetchOp, UpdateOp], [])
module-attribute
DeclareOp
Bases: IRDLOperation
Source code in xdsl/dialects/symref.py
14 15 16 17 18 19 20 21 22 23 24 | |
name = 'symref.declare'
class-attribute
instance-attribute
sym_name = prop_def(StringAttr)
class-attribute
instance-attribute
assembly_format = '$sym_name attr-dict'
class-attribute
instance-attribute
__init__(sym_name: str | StringAttr)
Source code in xdsl/dialects/symref.py
21 22 23 24 | |
FetchOp
Bases: IRDLOperation
Source code in xdsl/dialects/symref.py
27 28 29 30 31 32 33 34 35 36 37 38 | |
name = 'symref.fetch'
class-attribute
instance-attribute
value = result_def()
class-attribute
instance-attribute
symbol = prop_def(SymbolRefAttr)
class-attribute
instance-attribute
assembly_format = '$symbol attr-dict `:` type($value)'
class-attribute
instance-attribute
__init__(symbol: str | SymbolRefAttr, result_type: Attribute)
Source code in xdsl/dialects/symref.py
35 36 37 38 | |
UpdateOp
Bases: IRDLOperation
Source code in xdsl/dialects/symref.py
41 42 43 44 45 46 47 48 49 50 51 52 | |
name = 'symref.update'
class-attribute
instance-attribute
value = operand_def()
class-attribute
instance-attribute
symbol = prop_def(SymbolRefAttr)
class-attribute
instance-attribute
assembly_format = '$symbol `=` $value attr-dict `:` type($value)'
class-attribute
instance-attribute
__init__(symbol: str | SymbolRefAttr, value: Operation | SSAValue)
Source code in xdsl/dialects/symref.py
49 50 51 52 | |