[clang] [CIR] Intitial upstreaming of LibOpt pass (PR #172487)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 13 15:00:33 PST 2026


================
@@ -27,6 +27,8 @@ std::unique_ptr<Pass> createHoistAllocasPass();
 std::unique_ptr<Pass> createLoweringPreparePass();
 std::unique_ptr<Pass> createLoweringPreparePass(clang::ASTContext *astCtx);
 std::unique_ptr<Pass> createGotoSolverPass();
+std::unique_ptr<Pass> createLibOptPass();
+std::unique_ptr<Pass> createLibOptPass(clang::ASTContext *astCtx);
----------------
bcardosolopes wrote:

@HendrikHuebner you are right, I believe all the AST required info was already consumed by the idiom recognizer pass and this operates solely on MLIR like things.

https://github.com/llvm/llvm-project/pull/172487


More information about the cfe-commits mailing list