From 7be80435096dcc097c2cfff2974f76d037f8c5fa Mon Sep 17 00:00:00 2001 From: erwei-xilinx Date: Tue, 12 Mar 2024 18:33:07 -0700 Subject: [PATCH] Fixup pass registration to allow for options (#493) --- mlir/include/air/Transform/AIRMiscPasses.h | 2 ++ mlir/lib/Transform/AIRMiscPasses.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/mlir/include/air/Transform/AIRMiscPasses.h b/mlir/include/air/Transform/AIRMiscPasses.h index ded7736e0..2da8522f2 100644 --- a/mlir/include/air/Transform/AIRMiscPasses.h +++ b/mlir/include/air/Transform/AIRMiscPasses.h @@ -29,6 +29,8 @@ std::unique_ptr createAIRRenumberDmaIdPass(); std::unique_ptr createAIRLowerHerdParallelPass(); std::unique_ptr createAIRLabelBroadcastChannelWithTilePass(); std::unique_ptr createAIRCollapseHerdPass(); +std::unique_ptr +createAIRCollapseHerdPass(AIRCollapseHerdPassOptions options); std::unique_ptr createAIRUnrollOuterPerfectlyNestedLoopsPass(); std::unique_ptr createAIRUnrollOuterPerfectlyNestedLoopsPass( AIRUnrollOuterPerfectlyNestedLoopsPassOptions options); diff --git a/mlir/lib/Transform/AIRMiscPasses.cpp b/mlir/lib/Transform/AIRMiscPasses.cpp index 0983300ae..10a97fa4b 100644 --- a/mlir/lib/Transform/AIRMiscPasses.cpp +++ b/mlir/lib/Transform/AIRMiscPasses.cpp @@ -1118,6 +1118,11 @@ std::unique_ptr createAIRCollapseHerdPass() { return std::make_unique(); } +std::unique_ptr +createAIRCollapseHerdPass(AIRCollapseHerdPassOptions options) { + return std::make_unique(options); +} + std::unique_ptr createAIRUnrollOuterPerfectlyNestedLoopsPass() { return std::make_unique(); }