1 //===- DialectLinalg.cpp - Pybind module for Linalg dialect API support --===//
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
7 //===----------------------------------------------------------------------===//
9 #include "mlir-c/Dialect/Linalg.h"
10 #include "mlir-c/IR.h"
11 #include "mlir/Bindings/Python/PybindAdaptors.h"
13 namespace py
= pybind11
;
15 static void populateDialectLinalgSubmodule(py::module m
) {
17 "fill_builtin_region",
18 [](MlirOperation op
) { mlirLinalgFillBuiltinNamedOpRegion(op
); },
20 "Fill the region for `op`, which is assumed to be a builtin named Linalg "
24 PYBIND11_MODULE(_mlirDialectsLinalg
, m
) {
25 m
.doc() = "MLIR Linalg dialect.";
27 populateDialectLinalgSubmodule(m
);