Skip to content

Index

pypdl

PyPDLContext dataclass

Bases: PyASTContext

Encapsulate the mapping between Python and IR types and operations.

Source code in xdsl/frontend/pypdl/__init__.py
@dataclass
class PyPDLContext(PyASTContext):
    """Encapsulate the mapping between Python and IR types and operations."""

    def __init__(self):
        super().__init__(
            post_transforms=[FrontendDesymrefyPass(), FuncToPdlRewrite()],
            post_callback=None,
        )

__init__()

Source code in xdsl/frontend/pypdl/__init__.py
def __init__(self):
    super().__init__(
        post_transforms=[FrontendDesymrefyPass(), FuncToPdlRewrite()],
        post_callback=None,
    )