feat: make sure base phase contains an entry for each declaration being compiled at `init
This commit is contained in:
parent
2be8cb93ac
commit
0c82e8bd0d
1 changed files with 8 additions and 1 deletions
|
|
@ -17,9 +17,16 @@ namespace Lean.Compiler.LCNF
|
|||
|
||||
open PassInstaller
|
||||
|
||||
def init : Pass where
|
||||
name := `init
|
||||
run := fun decls => do
|
||||
decls.forM (·.saveBase)
|
||||
return decls
|
||||
phase := .base
|
||||
|
||||
def builtinPassManager : PassManager := {
|
||||
passes := #[
|
||||
{ name := `init, run := pure, phase := .base },
|
||||
init,
|
||||
pullInstances,
|
||||
cse,
|
||||
simp,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue