Skip to content

Commit

Permalink
Fixup pass registration to allow for options (Xilinx#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwei-xilinx authored Mar 13, 2024
1 parent 2e2d2f1 commit 7be8043
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mlir/include/air/Transform/AIRMiscPasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ std::unique_ptr<mlir::Pass> createAIRRenumberDmaIdPass();
std::unique_ptr<mlir::Pass> createAIRLowerHerdParallelPass();
std::unique_ptr<mlir::Pass> createAIRLabelBroadcastChannelWithTilePass();
std::unique_ptr<mlir::Pass> createAIRCollapseHerdPass();
std::unique_ptr<mlir::Pass>
createAIRCollapseHerdPass(AIRCollapseHerdPassOptions options);
std::unique_ptr<mlir::Pass> createAIRUnrollOuterPerfectlyNestedLoopsPass();
std::unique_ptr<mlir::Pass> createAIRUnrollOuterPerfectlyNestedLoopsPass(
AIRUnrollOuterPerfectlyNestedLoopsPassOptions options);
Expand Down
5 changes: 5 additions & 0 deletions mlir/lib/Transform/AIRMiscPasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,11 @@ std::unique_ptr<Pass> createAIRCollapseHerdPass() {
return std::make_unique<AIRCollapseHerdPass>();
}

std::unique_ptr<Pass>
createAIRCollapseHerdPass(AIRCollapseHerdPassOptions options) {
return std::make_unique<AIRCollapseHerdPass>(options);
}

std::unique_ptr<Pass> createAIRUnrollOuterPerfectlyNestedLoopsPass() {
return std::make_unique<AIRUnrollOuterPerfectlyNestedLoopsPass>();
}
Expand Down

0 comments on commit 7be8043

Please sign in to comment.