1 //===- MainModule.cpp - Main pybind module --------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include <tuple>
10 
11 #include <pybind11/pybind11.h>
12 
13 #include "IRModules.h"
14 
15 namespace py = pybind11;
16 using namespace mlir;
17 using namespace mlir::python;
18 
19 PYBIND11_MODULE(_mlir, m) {
20   m.doc() = "MLIR Python Native Extension";
21 
22   // Define and populate IR submodule.
23   auto irModule = m.def_submodule("ir", "MLIR IR Bindings");
24   populateIRSubmodule(irModule);
25 }
26