Configuration options for Simp that are not controlled using set_option.
Recall that we have multiple Simp passes and they use different configurations.
- etaPoly : Bool
If
etaPolyis true, we eta expand any global function application when the function takes local instances. The idea is that we do not generate code for this kind of application, and we want all of them to specialized or inlined. - inlinePartial : Bool
If
inlinePartialistrue, we inline partial function applications tagged with[inline]. Note that this option is automatically disabled when processing declarations tagged with[inline], marked to be specialized, or instances. - implementedBy : Bool
If
implementedByistrue, we apply theimplemented_byreplacements. Remark: we only applycasesOnreplacements at phase 2 becausecasesconstructor may not have enough information for reconstructing the originalcasesOnapplication at phase 1. - inlineDefs : Bool
If
inlineDefsistruethen top-level definitions are inlined when they are small are annotated with inlining attributes.
Instances For
Equations
- Lean.Compiler.LCNF.Simp.instInhabitedConfig = { default := { etaPoly := default, inlinePartial := default, implementedBy := default, inlineDefs := default } }