LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
LLZKRegistration.cpp
Go to the documentation of this file.
1//===-- LLZKRegistration.cpp - LLZK Python Registration ---------*- C++ -*-===//
2//
3// Part of the LLZK Project, under the Apache License v2.0.
4// See LICENSE.txt for license information.
5// Copyright 2025 Veridise Inc.
6// SPDX-License-Identifier: Apache-2.0
7//
8//===----------------------------------------------------------------------===//
13//===----------------------------------------------------------------------===//
14
15#include "LLZK/InitDialects.h"
16
17#include <mlir/Bindings/Python/PybindAdaptors.h>
18#include <mlir/CAPI/IR.h>
19
20PYBIND11_MODULE(_llzkRegistration, m) {
21 m.doc() = "LLZK dialect registration";
22
23 m.def("register_dialects", [](MlirDialectRegistry registry) {
24 llzk::registerAllDialects(*unwrap(registry));
25 });
26}
PYBIND11_MODULE(_llzkRegistration, m)
void registerAllDialects(mlir::DialectRegistry &registry)