feat: migrate to new pass manager
This commit is contained in:
parent
5d834f3f0e
commit
c1949e05e0
2 changed files with 21 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
20
src/Lean/Compiler/LCNF/Passes.lean
Normal file
20
src/Lean/Compiler/LCNF/Passes.lean
Normal 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
|
||||
Loading…
Add table
Reference in a new issue