Type
type
Type utilities.
get_element_type_or_self(maybe_container_type: Attribute) -> Attribute
If the input is a ContainerType, then returns it's element type, otherwise returns
input.
Source code in xdsl/utils/type.py
16 17 18 19 20 21 22 23 | |
get_encoding(maybe_shaped_type: Attribute) -> Attribute
Source code in xdsl/utils/type.py
26 27 28 29 | |
have_compatible_shape(lhs_type: Attribute, rhs_type: Attribute) -> bool
Source code in xdsl/utils/type.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |