mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
So far, only the custom dialect types are exposed. The build and packaging is same as for Linalg and SparseTensor, and in need of refactoring that is beyond the scope of this patch. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D116605
27 lines
941 B
C++
27 lines
941 B
C++
//===- Dialects.h - Declaration for dialect submodule factories -----------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef MLIR_BINDINGS_PYTHON_DIALECTS_H
|
|
#define MLIR_BINDINGS_PYTHON_DIALECTS_H
|
|
|
|
#include <pybind11/pybind11.h>
|
|
|
|
namespace mlir {
|
|
namespace python {
|
|
|
|
void populateDialectLinalgSubmodule(pybind11::module m);
|
|
void populateDialectSparseTensorSubmodule(const pybind11::module &m,
|
|
const pybind11::module &irModule);
|
|
void populateDialectQuantSubmodule(const pybind11::module &m,
|
|
const pybind11::module &irModule);
|
|
|
|
} // namespace python
|
|
} // namespace mlir
|
|
|
|
#endif // MLIR_BINDINGS_PYTHON_DIALECTS_H
|