mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-18 00:21:36 -05:00
feat(compiler): Run SCFForallToSCFFor pass before lowering to LLVM dialect
This adds an invocation of the `SCFForallToSCFFor` pass to the compilation pipeline before lowering to the LLVM dialect as a sequential fallback path to future passes exploiting the parallelism of `scf.forall` further up in the pipeline.
This commit is contained in:
@@ -479,6 +479,9 @@ mlir::LogicalResult lowerToStd(mlir::MLIRContext &context,
|
||||
pm, mlir::bufferization::createEmptyTensorToAllocTensorPass(),
|
||||
enablePass);
|
||||
|
||||
addPotentiallyNestedPass(
|
||||
pm, mlir::concretelang::createSCFForallToSCFForPass(), enablePass);
|
||||
|
||||
// Bufferize
|
||||
mlir::bufferization::OneShotBufferizationOptions bufferizationOptions;
|
||||
bufferizationOptions.allowReturnAllocs = true;
|
||||
|
||||
Reference in New Issue
Block a user