1 //===- Transforms.cpp - Pybind module for the Transforms library ----------===// 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 "mlir-c/Transforms.h" 10 11 #include <pybind11/pybind11.h> 12 13 namespace py = pybind11; 14 15 // ----------------------------------------------------------------------------- 16 // Module initialization. 17 // ----------------------------------------------------------------------------- 18 PYBIND11_MODULE(_mlirTransforms,m)19PYBIND11_MODULE(_mlirTransforms, m) { 20 m.doc() = "MLIR Transforms library"; 21 22 // Register all the passes in the Transforms library on load. 23 mlirRegisterTransformsPasses(); 24 } 25