mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
This commit rebases the compiler onto commit f69328049e9e from llvm-project. Changes: * Use of the one-shot bufferizer for improved memory management * A new pass `OneShotBufferizeDPSWrapper` that converts functions returning tensors to destination-passing-style as required by the one-shot bufferizer * A new pass `LinalgGenericOpWithTensorsToLoopsPass` that converts `linalg.generic` operations with value semantics to loop nests * Rebase onto a fork of llvm-project at f69328049e9e with local modifications to enable bufferization of `linalg.generic` operations with value semantics * Workaround for the absence of type propagation after type conversion via extra patterns in all dialect conversion passes * Printer, parser and verifier definitions moved from inline declarations in ODS to the respective source files as required by upstream changes * New tests for functions with a large number of inputs * Increase the number of allowed task inputs as required by new tests * Use upstream function `mlir_configure_python_dev_packages()` to locate Python development files for compatibility with various CMake versions Co-authored-by: Quentin Bourgerie <quentin.bourgerie@zama.ai> Co-authored-by: Ayoub Benaissa <ayoub.benaissa@zama.ai> Co-authored-by: Antoniu Pop <antoniu.pop@zama.ai>
20 lines
600 B
CMake
20 lines
600 B
CMake
add_custom_target(ConcreteCompilerLibTests)
|
||
|
||
function(add_concretecompiler_lib_test test_name)
|
||
add_unittest(ConcreteCompilerLibTests ${test_name} ${ARGN})
|
||
target_link_libraries(${test_name} PRIVATE ConcretelangSupport)
|
||
set_source_files_properties(${ARGN} PROPERTIES COMPILE_FLAGS "-fno-rtti")
|
||
endfunction()
|
||
|
||
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||
link_libraries(
|
||
# usefull for old gcc versions
|
||
-Wl,--allow-multiple-definition # static concrete-optimizer and concrete shares some code
|
||
)
|
||
endif()
|
||
|
||
add_concretecompiler_lib_test(
|
||
testlib_unit_test
|
||
testlib_unit_test.cpp
|
||
)
|