Files
concrete/compiler/lib/Conversion/ExtractSDFGOps/CMakeLists.txt
Andi Drebes e2e6df322e feat(compiler): Add support for full unrolling of loops with SDFG-convertible ops
This adds a new option `--unroll-loops-with-sdfg-convertible-ops`,
which causes loops containing SDFG-convertible operations to be fully
unrolled upon the extraction of SDFG-operations using the
`--emit-sdfg-ops` switch. This avoids constant roundtrips between an
SDFG-capable accelerator and the host during execution of a loop.

The option is limited to `scf.for` loops with static bounds and a
static step size. Since full unrolling of loops with large bounds
results in a large number of operations, the option is disabled by
default.
2022-12-13 12:03:51 +01:00

19 lines
373 B
CMake

add_mlir_dialect_library(
ExtractSDFGOps
ExtractSDFGOps.cpp
ADDITIONAL_HEADER_DIRS
${PROJECT_SOURCE_DIR}/include/concretelang/Dialect/FHE
DEPENDS
SDFGDialect
ConcretelangSDFGInterfaces
mlir-headers
LINK_LIBS
SDFGDialect
ConcretelangSDFGInterfaces
PUBLIC
MLIRIR
MLIRSCFUtils
MLIRTransforms)
target_link_libraries(ExtractSDFGOps PUBLIC MLIRIR)