Files
concrete/compiler/src/CMakeLists.txt
Andi Drebes 54661528a8 feat(compiler): Add action dump-hlfhe-manp
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.
2021-09-28 11:35:58 +02:00

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)