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
 8
 9
10
11
12
13
14
15
16
@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
12
13
14
15
16
def __init__(self):
    super().__init__(
        post_transforms=[FrontendDesymrefyPass(), FuncToPdlRewrite()],
        post_callback=None,
    )