Skip to content

Commit

Permalink
add compiler and backend python modules
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Oct 25, 2023
1 parent ae87341 commit 73d05bb
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions python_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ add_mlir_python_common_capi_library(
# ##############################################################################

_flatten_mlir_python_targets(air_python_sources_deps AirPythonSources)
add_custom_target("air-python-sources" DEPENDS ${air_python_sources_deps})
_flatten_mlir_python_targets(air_backend_python_sources_deps AirBackendPythonSources)
_flatten_mlir_python_targets(air_compiler_python_sources_deps AirCompilerPythonSources)
add_custom_target("air-python-sources"
DEPENDS ${air_python_sources_deps} ${air_backend_python_sources_deps} ${air_compiler_python_sources_deps})
if(NOT LLVM_ENABLE_IDE)
add_llvm_install_targets(install-air-python-sources DEPENDS
air-python-sources COMPONENT air-python-sources)
Expand Down Expand Up @@ -131,9 +134,20 @@ add_mlir_python_modules(AirPythonModules
AirAggregateCAPI
)

include_directories(
${AIE_INCLUDE_DIRS}/../runtime_lib
add_mlir_python_modules(AirBackendPythonModules
ROOT_PREFIX "${MLIR_BINARY_DIR}/air/backend"
INSTALL_PREFIX "air/backend"
DECLARED_SOURCES
AirBackendPythonSources
)

add_mlir_python_modules(AirCompilerPythonModules
ROOT_PREFIX "${MLIR_BINARY_DIR}/air/compiler"
INSTALL_PREFIX "air/compiler"
DECLARED_SOURCES
AirCompilerPythonSources
)

#add_dependencies(AirPythonModules AirBackendPythonModules)
#add_dependencies(AirPythonModules AirCompilerPythonModules)
include_directories(
${AIE_INCLUDE_DIRS}/../runtime_lib
)

0 comments on commit 73d05bb

Please sign in to comment.