feat: migrate to new pass manager

This commit is contained in:
Henrik Böving 2022-09-01 00:16:52 +02:00 committed by Leonardo de Moura
parent 5d834f3f0e
commit c1949e05e0
2 changed files with 21 additions and 0 deletions

View file

@ -5,6 +5,7 @@ Authors: Leonardo de Moura
-/
import Lean.Compiler.Options
import Lean.Compiler.LCNF.PassManager
import Lean.Compiler.LCNF.Passes
import Lean.Compiler.LCNF.PrettyPrinter
import Lean.Compiler.LCNF.ToDecl
import Lean.Compiler.LCNF.Check

View file

@ -0,0 +1,20 @@
/-
Copyright (c) 2022 Henrik Böving. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving
-/
import Lean.Compiler.LCNF.PassManager
import Lean.Compiler.LCNF.PullLetDecls
import Lean.Compiler.LCNF.CSE
namespace Lean.Compiler.LCNF
@[cpass]
def pullInstancesInstaller : PassInstaller :=
.installAfter `init (.mkPerDeclaration `pullInstances Decl.pullInstances)
@[cpass]
def cseInstaller : PassInstaller :=
.installAfter `pullInstances (.mkPerDeclaration `cse Decl.cse)
end Lean.Compiler.LCNF