Wasmssa
wasmssa
RefType: TypeAlias = FuncRefType | ExternRefType
module-attribute
Type alias for opaque references in WebAssembly
ValType: TypeAlias = I32 | I64 | I128 | Float32Type | Float64Type | FuncRefType | ExternRefType
module-attribute
Type alias for value types that are supported by WebAssembly
WasmSSA = Dialect('wasmssa', [], [ExternRefType, FuncRefType, LimitType, LocalRefType, TableType])
module-attribute
FuncRefType
dataclass
Bases: ParametrizedAttribute, TypeAttribute
Opaque type for function reference
Source code in xdsl/dialects/wasmssa.py
25 26 27 28 29 30 31 | |
name = 'wasmssa.funcref'
class-attribute
instance-attribute
ExternRefType
dataclass
Bases: ParametrizedAttribute, TypeAttribute
Opaque type for extern reference
Source code in xdsl/dialects/wasmssa.py
34 35 36 37 38 39 40 | |
name = 'wasmssa.externref'
class-attribute
instance-attribute
LimitType
dataclass
Bases: ParametrizedAttribute, OpaqueSyntaxAttribute, TypeAttribute
Wasm limit type
Prints as !wasmssa<limit[$min: $max]>
Source code in xdsl/dialects/wasmssa.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
name = 'wasmssa.limit'
class-attribute
instance-attribute
min: IntAttr
instance-attribute
max: IntAttr | NoneAttr
instance-attribute
parse_parameters(parser: AttrParser) -> tuple[IntAttr, IntAttr | NoneAttr]
classmethod
Source code in xdsl/dialects/wasmssa.py
64 65 66 67 68 69 70 | |
print_parameters(printer: Printer) -> None
Source code in xdsl/dialects/wasmssa.py
72 73 74 75 76 77 78 | |
LocalRefType
dataclass
Bases: ParametrizedAttribute, SpacedOpaqueSyntaxAttribute, TypeAttribute
Type of a local variable
Prints as !wasmssa<local ref to $elementType>
Source code in xdsl/dialects/wasmssa.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
name = 'wasmssa.local'
class-attribute
instance-attribute
elementType: ValType
instance-attribute
parse_parameters(parser: AttrParser) -> Sequence[TypeAttribute]
classmethod
Source code in xdsl/dialects/wasmssa.py
93 94 95 96 97 98 | |
print_parameters(printer: Printer) -> None
Source code in xdsl/dialects/wasmssa.py
100 101 102 | |
TableType
dataclass
Bases: ParametrizedAttribute, SpacedOpaqueSyntaxAttribute, TypeAttribute
Wasm table type
Prints as !wasmssa<tabletype $reference [$limit.min: $limit.max]>
Source code in xdsl/dialects/wasmssa.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
name = 'wasmssa.tabletype'
class-attribute
instance-attribute
reference: RefType
instance-attribute
limit: LimitType
instance-attribute
parse_parameters(parser: AttrParser) -> tuple[RefType, LimitType]
classmethod
Source code in xdsl/dialects/wasmssa.py
118 119 120 121 122 123 | |
print_parameters(printer: Printer) -> None
Source code in xdsl/dialects/wasmssa.py
125 126 127 128 | |