Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CMake dependencies of the MLIR Python extension.
Browse files Browse the repository at this point in the history
This follows the changes of 5e83a5b of the LLVM mono repo.
ingomueller-net committed Jan 17, 2023
1 parent d8e4829 commit 2279787
Showing 4 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion experimental/iterators/include/iterators-c/Dialects.h
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@
#define ITERATORS_C_DIALECTS_H

#include "mlir-c/IR.h"
#include "mlir-c/Registration.h"
#include "mlir-c/Support.h"

#ifdef __cplusplus
6 changes: 2 additions & 4 deletions experimental/iterators/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -64,11 +64,10 @@ add_mlir_python_common_capi_library(IteratorsPythonCAPI
RELATIVE_INSTALL_ROOT "../../../.."
DECLARED_SOURCES
IteratorsPythonSources
MLIRPythonExtension.AllPassesRegistration
MLIRPythonExtension.RegisterEverything
MLIRPythonSources.Core
MLIRPythonSources.Dialects
MLIRPythonSources.ExecutionEngine
MLIRPythonSources.Passes
)

# ###############################################################################
@@ -79,11 +78,10 @@ add_mlir_python_modules(IteratorsPythonModules
INSTALL_PREFIX "python_packages/mlir_iterators"
DECLARED_SOURCES
IteratorsPythonSources
MLIRPythonExtension.AllPassesRegistration
MLIRPythonExtension.RegisterEverything
MLIRPythonSources.Core
MLIRPythonSources.Dialects
MLIRPythonSources.ExecutionEngine
MLIRPythonSources.Passes
COMMON_CAPI_LINK_LIBS
IteratorsPythonCAPI
)
1 change: 0 additions & 1 deletion experimental/iterators/python/IteratorsDialects.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@

#include "iterators-c/Dialects.h"
#include "mlir-c/IR.h"
#include "mlir-c/Registration.h"
#include "mlir/Bindings/Python/PybindAdaptors.h"

namespace py = pybind11;
8 changes: 4 additions & 4 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ add_mlir_python_common_capi_library(SandboxSandboxCAPI
RELATIVE_INSTALL_ROOT "../../../.."
DECLARED_SOURCES
MLIRPythonSources
MLIRPythonExtension.AllPassesRegistration
MLIRPythonExtension.RegisterEverything
SandboxSources
)

@@ -69,7 +69,7 @@ add_mlir_python_modules(SandboxSandboxPythonModules
INSTALL_PREFIX "python_packages/iree_llvm_sandbox/mlir"
DECLARED_SOURCES
MLIRPythonSources
MLIRPythonExtension.AllPassesRegistration
MLIRPythonExtension.RegisterEverything
SandboxSources
COMMON_CAPI_LINK_LIBS
SandboxSandboxCAPI
@@ -103,7 +103,7 @@ add_mlir_python_common_capi_library(IREECAPI
RELATIVE_INSTALL_ROOT "../../../../.."
DECLARED_SOURCES
MLIRPythonSources
MLIRPythonExtension.AllPassesRegistration
MLIRPythonExtension.RegisterEverything
${_addl_sources}
)

@@ -118,7 +118,7 @@ add_mlir_python_modules(IREEPythonModules
INSTALL_PREFIX "python_packages/iree_llvm_sandboxiree/compiler"
DECLARED_SOURCES
MLIRPythonSources
MLIRPythonExtension.AllPassesRegistration
MLIRPythonExtension.RegisterEverything
${_addl_sources}
COMMON_CAPI_LINK_LIBS
IREECAPI

0 comments on commit 2279787

Please sign in to comment.