Pyrdl to irdl
pyrdl_to_irdl
¶
depython_name(name: str)
¶
constraint_to_irdl(builder: Builder, constraint: AttrConstraint) -> SSAValue
¶
Convert an attribute constraint to IRDL. This will create new operations at the provided builder location.
Source code in xdsl/dialects/irdl/pyrdl_to_irdl.py
range_to_irdl(builder: Builder, constraint: RangeConstraint) -> SSAValue
¶
Convert a range constraint to IRDL. This will create new operations at the provided builder location.
Source code in xdsl/dialects/irdl/pyrdl_to_irdl.py
op_def_to_irdl(op: type[IRDLOperation]) -> OperationOp
¶
Convert an operation definition to an IRDL operation definition.
Source code in xdsl/dialects/irdl/pyrdl_to_irdl.py
attr_def_to_irdl(attr: type[ParametrizedAttribute]) -> AttributeOp
¶
Convert an attribute definition to an IRDL attribute definition.
Source code in xdsl/dialects/irdl/pyrdl_to_irdl.py
dialect_to_irdl(dialect: Dialect, name: str) -> DialectOp
¶
Convert a dialect definition to an IRDL dialect definition.