fix(compiler): add calls to enable either or both parts of the runtime based on compile options used.

This commit is contained in:
Antoniu Pop
2022-05-19 16:14:03 +01:00
committed by Antoniu Pop
parent 51d3959742
commit eeb3ba8735

View File

@@ -217,6 +217,12 @@ CompilerEngine::compile(llvm::SourceMgr &sm, Target target, OptionalLib lib) {
return std::move(res);
}
if (loopParallelize)
mlir::concretelang::dfr::_dfr_set_use_omp(true);
if (dataflowParallelize)
mlir::concretelang::dfr::_dfr_set_required(true);
if (!mlirModuleRef) {
return errorDiag("Could not parse source");
}