Skip to content

Commit

Permalink
Bump mlir-air; more generic air compiler pipeline (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwei-xilinx authored Oct 23, 2024
1 parent bf6505a commit c198536
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ void buildAMDAIETransformPassPipeline(
});
}


void addAMDAIEObjectFifoLoweringPasses(OpPassManager &passManager,
bool enablePacketFlow,
TilePassPipeline useTilePipeline) {
Expand Down Expand Up @@ -728,11 +727,6 @@ void addMLIRAIRLoweringPasses(OpPassManager &passManager, AMDAIEDevice device,
passManager.addPass(xilinx::air::createAIRDependencyCanonicalizePass());
passManager.addPass(createCanonicalizerPass());
passManager.addPass(createCSEPass());
// TODO (Erwei): This pass currently doesn't support pack-peel pipeline. This
// pass needs to work in order to get multiple AIE columns to work.
if (useTilePipeline != TilePassPipeline::PackPeelPipeline)
passManager.addNestedPass<func::FuncOp>(
xilinx::air::createAIRSplitL2MemrefForBufferConstraintPass());
passManager.addPass(xilinx::air::createAIRIsolateAsyncDmaLoopNests());
passManager.addPass(createCanonicalizerPass());
passManager.addPass(createCSEPass());
Expand All @@ -747,6 +741,13 @@ void addMLIRAIRLoweringPasses(OpPassManager &passManager, AMDAIEDevice device,
}
passManager.addPass(createCanonicalizerPass());
passManager.addPass(createCSEPass());
passManager.addNestedPass<func::FuncOp>(
xilinx::air::createAIRSplitL2MemrefForBufferConstraintPass());
passManager.addPass(xilinx::air::createAIRIsolateAsyncDmaLoopNests());
passManager.addPass(createCanonicalizerPass());
passManager.addPass(createCSEPass());
passManager.addPass(createCanonicalizerPass());
passManager.addPass(createCSEPass());
passManager.addNestedPass<func::FuncOp>(
xilinx::air::createAIRSegmentLoopFusion());

Expand Down

0 comments on commit c198536

Please sign in to comment.