Skip to content

Commit

Permalink
private symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Nov 15, 2023
1 parent de41781 commit 33858fc
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ jobs:
cmake .. \
-GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_VISIBILITY_INLINES_HIDDEN=ON \
-DCMAKE_C_VISIBILITY_PRESET=hidden \
-DCMAKE_CXX_VISIBILITY_PRESET=hidden \
-DAIE_COMPILER=NONE \
-DAIE_LINKER=NONE \
-DHOST_COMPILER=NONE \
Expand Down
38 changes: 19 additions & 19 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,6 @@ declare_mlir_dialect_python_bindings(
# Extensions
################################################################################

get_target_property(CoreSources MLIRPythonExtension.Core INTERFACE_SOURCES)

get_target_property(DialectsLinalgPybindSources MLIRPythonExtension.Dialects.Linalg.Pybind INTERFACE_SOURCES)
get_target_property(DialectsQuantPybindSources MLIRPythonExtension.Dialects.Quant.Pybind INTERFACE_SOURCES)
get_target_property(DialectsPDLPybindSources MLIRPythonExtension.Dialects.PDL.Pybind INTERFACE_SOURCES)
get_target_property(DialectsSparseTensorPybindSources MLIRPythonExtension.Dialects.SparseTensor.Pybind INTERFACE_SOURCES)
get_target_property(DialectsTransformPybindSources MLIRPythonExtension.Dialects.Transform.Pybind INTERFACE_SOURCES)

get_target_property(AsyncDialectPassesSources MLIRPythonExtension.AsyncDialectPasses INTERFACE_SOURCES)
get_target_property(ExecutionEngineSources MLIRPythonExtension.ExecutionEngine INTERFACE_SOURCES)
get_target_property(GPUDialectPassesSources MLIRPythonExtension.GPUDialectPasses INTERFACE_SOURCES)
get_target_property(SparseTensorDialectPassesSources MLIRPythonExtension.SparseTensorDialectPasses INTERFACE_SOURCES)
get_target_property(RegisterEverythingSources MLIRPythonExtension.RegisterEverything INTERFACE_SOURCES)

get_property(MLIR_DIALECT_LIBS GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(MLIR_CONVERSION_LIBS GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
get_property(MLIR_EXTENSION_LIBS GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
get_property(MLIR_TRANSLATION_LIBS GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)

set(LIBS
LLVMSupport

Expand Down Expand Up @@ -106,6 +87,25 @@ set(LIBS
MLIRCAPITransforms
)

get_target_property(CoreSources MLIRPythonExtension.Core INTERFACE_SOURCES)

get_target_property(DialectsLinalgPybindSources MLIRPythonExtension.Dialects.Linalg.Pybind INTERFACE_SOURCES)
get_target_property(DialectsQuantPybindSources MLIRPythonExtension.Dialects.Quant.Pybind INTERFACE_SOURCES)
get_target_property(DialectsPDLPybindSources MLIRPythonExtension.Dialects.PDL.Pybind INTERFACE_SOURCES)
get_target_property(DialectsSparseTensorPybindSources MLIRPythonExtension.Dialects.SparseTensor.Pybind INTERFACE_SOURCES)
get_target_property(DialectsTransformPybindSources MLIRPythonExtension.Dialects.Transform.Pybind INTERFACE_SOURCES)

get_target_property(AsyncDialectPassesSources MLIRPythonExtension.AsyncDialectPasses INTERFACE_SOURCES)
get_target_property(ExecutionEngineSources MLIRPythonExtension.ExecutionEngine INTERFACE_SOURCES)
get_target_property(GPUDialectPassesSources MLIRPythonExtension.GPUDialectPasses INTERFACE_SOURCES)
get_target_property(SparseTensorDialectPassesSources MLIRPythonExtension.SparseTensorDialectPasses INTERFACE_SOURCES)
get_target_property(RegisterEverythingSources MLIRPythonExtension.RegisterEverything INTERFACE_SOURCES)

get_property(MLIR_DIALECT_LIBS GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(MLIR_CONVERSION_LIBS GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
get_property(MLIR_EXTENSION_LIBS GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
get_property(MLIR_TRANSLATION_LIBS GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)

declare_mlir_python_extension(AIEPythonExtensionsOmni.MLIR
MODULE_NAME _aieMlirOmni
ADD_TO_PARENT AIEPythonExtensions
Expand Down
3 changes: 3 additions & 0 deletions utils/build-llvm-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ CMAKE_CONFIGS="\
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_TARGETS_TO_BUILD:STRING=X86;ARM;AArch64 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VISIBILITY_INLINES_HIDDEN=ON \
-DCMAKE_C_VISIBILITY_PRESET=hidden \
-DCMAKE_CXX_VISIBILITY_PRESET=hidden \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1"

if [ -x "$(command -v lld)" ]; then
Expand Down
3 changes: 3 additions & 0 deletions utils/build-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ CMAKE_CONFIGS="\
-DLLVM_INSTALL_UTILS=ON \
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VISIBILITY_INLINES_HIDDEN=ON \
-DCMAKE_C_VISIBILITY_PRESET=hidden \
-DCMAKE_CXX_VISIBILITY_PRESET=hidden \
-DLLVM_ENABLE_ASSERTIONS=ON"

if [ -x "$(command -v lld)" ]; then
Expand Down
3 changes: 3 additions & 0 deletions utils/build-mlir-aie-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ CMAKE_CONFIGS="\
-DLLVM_ENABLE_RTTI=ON \
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_VISIBILITY_INLINES_HIDDEN=ON \
-DCMAKE_C_VISIBILITY_PRESET=hidden \
-DCMAKE_CXX_VISIBILITY_PRESET=hidden \
-Wno-dev"

if [ -x "$(command -v lld)" ]; then
Expand Down
3 changes: 3 additions & 0 deletions utils/build-mlir-aie.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ CMAKE_CONFIGS="\
-DCMAKE_MODULE_PATH=${CMAKEMODULES_DIR}/modulesXilinx \
-DCMAKE_INSTALL_PREFIX="../${INSTALL_DIR}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VISIBILITY_INLINES_HIDDEN=ON \
-DCMAKE_C_VISIBILITY_PRESET=hidden \
-DCMAKE_CXX_VISIBILITY_PRESET=hidden \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_ENABLE_RTTI=ON \
-DAIE_RUNTIME_TARGETS=x86_64;aarch64 \
Expand Down

0 comments on commit 33858fc

Please sign in to comment.