1722475a3SStella Laurenzo //===- MainModule.cpp - Main pybind module --------------------------------===// 2722475a3SStella Laurenzo // 3722475a3SStella Laurenzo // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4722475a3SStella Laurenzo // See https://llvm.org/LICENSE.txt for license information. 5722475a3SStella Laurenzo // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6722475a3SStella Laurenzo // 7722475a3SStella Laurenzo //===----------------------------------------------------------------------===// 8722475a3SStella Laurenzo 9722475a3SStella Laurenzo #include <tuple> 10722475a3SStella Laurenzo 11722475a3SStella Laurenzo #include <pybind11/pybind11.h> 12722475a3SStella Laurenzo 13fcd2969dSzhanghb97 #include "IRModules.h" 14722475a3SStella Laurenzo 15*95b77f2eSStella Laurenzo namespace py = pybind11; 16722475a3SStella Laurenzo using namespace mlir; 17*95b77f2eSStella Laurenzo using namespace mlir::python; 18722475a3SStella Laurenzo 19722475a3SStella Laurenzo PYBIND11_MODULE(_mlir, m) { 20722475a3SStella Laurenzo m.doc() = "MLIR Python Native Extension"; 21722475a3SStella Laurenzo 22fcd2969dSzhanghb97 // Define and populate IR submodule. 23fcd2969dSzhanghb97 auto irModule = m.def_submodule("ir", "MLIR IR Bindings"); 24fcd2969dSzhanghb97 populateIRSubmodule(irModule); 25722475a3SStella Laurenzo } 26