Skip to content

Index

frontend

get_all_frontends() -> dict[str, Callable[[], type[Frontend]]]

Return the list of all available frontends.

Source code in xdsl/frontend/__init__.py
def get_all_frontends() -> dict[str, Callable[[], type[Frontend]]]:
    """Return the list of all available frontends."""

    def get_mlir():
        from xdsl.frontend.mlir import MLIRFrontend

        return MLIRFrontend

    return {
        "mlir": get_mlir,
    }