Skip to content

Commit

Permalink
[CIR] Add all the missing ClangIR passes to aie-opt
Browse files Browse the repository at this point in the history
  • Loading branch information
keryell committed Dec 9, 2024
1 parent 3b582cd commit 45528b1
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion tools/aie-opt/aie-opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,42 @@ int main(int argc, char **argv) {
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return cir::createConvertMLIRToLLVMPass();
});
mlir::registerPass([]() -> std::unique_ptr<::mlir::Pass> {
return mlir::createCIRCanonicalizePass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createCIRSimplifyPass();
});

mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createLifetimeCheckPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createDropASTPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createLoweringPreparePass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createSCFPreparePass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createHoistAllocasPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createGotoSolverPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createIdiomRecognizerPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createLibOptPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return mlir::createCallConvLoweringPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return cir::createConvertCIRToMLIRPass();
});
mlir::registerPass([]() -> std::unique_ptr<mlir::Pass> {
return cir::createConvertCIRToMLIRPass();
});
Expand Down

0 comments on commit 45528b1

Please sign in to comment.