Equations
Equations
A single compiler Pass
, consisting of the actual pass function operating
on the Decl
s as well as meta information.
- occurrence : Nat
Which occurrence of the pass in the pipeline this is. Some passes, like simp, can occur multiple times in the pipeline. For most passes this value does not matter.
- phase : Phase
Which phase this
Pass
is supposed to run in - phaseOut : Phase
Resulting phase.
- name : Name
The name of the
Pass
The actual pass function, operating on the
Decl
s.
Instances For
Can be used to install, remove, replace etc. passes by tagging a declaration
of type PassInstaller
with the cpass
attribute.
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
def
Lean.Compiler.LCNF.PassInstaller.withEachOccurrence
(targetName : Name)
(f : Nat → PassInstaller)
:
Equations
Instances For
def
Lean.Compiler.LCNF.PassInstaller.installAfter
(targetName : Name)
(p : Pass → Pass)
(occurrence : Nat := 0)
:
Equations
Instances For
Equations
Instances For
def
Lean.Compiler.LCNF.PassInstaller.installBefore
(targetName : Name)
(p : Pass → Pass)
(occurrence : Nat := 0)
:
Equations
Instances For
def
Lean.Compiler.LCNF.PassInstaller.installBeforeEachOccurrence
(targetName : Name)
(p : Pass → Pass)
:
Equations
Instances For
def
Lean.Compiler.LCNF.PassInstaller.replacePass
(targetName : Name)
(p : Pass → Pass)
(occurrence : Nat := 0)
: