mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-11 05:04:58 -05:00
The new option --acion=dump-hlfhe-manp invokes the Minimal Arithmetic Noise Padding Analysis pass based on the squared 2-norm metric from `lib/Dialect/HLFHE/Analysis/MANP.cpp` and dumps the module afterwards with an extra attribute `MANP` for each HLFHE operation.
26 lines
535 B
CMake
26 lines
535 B
CMake
add_llvm_tool(zamacompiler main.cpp)
|
|
target_compile_options(zamacompiler PRIVATE -fexceptions)
|
|
llvm_update_compile_flags(zamacompiler)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
|
|
|
target_link_libraries(zamacompiler
|
|
PRIVATE
|
|
${dialect_libs}
|
|
${conversion_libs}
|
|
|
|
MLIRTransforms
|
|
LowLFHEDialect
|
|
MidLFHEDialect
|
|
HLFHEDialect
|
|
|
|
MLIRIR
|
|
MLIRLLVMIR
|
|
MLIRLLVMToLLVMIRTranslation
|
|
|
|
ZamalangSupport
|
|
)
|
|
|
|
mlir_check_all_link_libraries(zamacompiler)
|