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:
Andi Drebes
2023-04-05 16:30:21 +02:00
parent 5a7bf5aed2
commit ff20f88c44

View File

@@ -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;