Documentation
Lean
.
Compiler
.
IR
.
ToIRType
Search
return to top
source
Imports
Lean.Environment
Lean.Compiler.IR.Format
Lean.Compiler.LCNF.CompilerM
Imported by
Lean
.
IR
.
scalarTypeExt
Lean
.
IR
.
lowerEnumToScalarType?
Lean
.
IR
.
lowerEnumToScalarType?
.
fillCache
Lean
.
IR
.
toIRType
Lean
.
IR
.
CtorFieldInfo
Lean
.
IR
.
instInhabitedCtorFieldInfo
Lean
.
IR
.
CtorFieldInfo
.
format
Lean
.
IR
.
CtorFieldInfo
.
instToFormat
Lean
.
IR
.
CtorLayout
Lean
.
IR
.
getCtorLayout
Lean
.
IR
.
ctorInfoExt
Lean
.
IR
.
getCtorInfo
Lean
.
IR
.
getCtorInfo
.
fillCache
source
opaque
Lean
.
IR
.
scalarTypeExt
:
Compiler.LCNF.CacheExtension
Name
(
Option
IRType
)
source
def
Lean
.
IR
.
lowerEnumToScalarType?
(
name
:
Name
)
:
CoreM
(
Option
IRType
)
Equations
Instances For
source
def
Lean
.
IR
.
lowerEnumToScalarType?
.
fillCache
(
name
:
Name
)
:
CoreM
(
Option
IRType
)
Equations
Instances For
source
def
Lean
.
IR
.
toIRType
(
e
:
Lean.Expr
)
:
CoreM
IRType
Equations
Instances For
source
inductive
Lean
.
IR
.
CtorFieldInfo
:
Type
irrelevant :
CtorFieldInfo
object
(
i
:
Nat
)
:
CtorFieldInfo
usize
(
i
:
Nat
)
:
CtorFieldInfo
scalar
(
sz
offset
:
Nat
)
(
type
:
IRType
)
:
CtorFieldInfo
Instances For
source
instance
Lean
.
IR
.
instInhabitedCtorFieldInfo
:
Inhabited
CtorFieldInfo
Equations
source
def
Lean
.
IR
.
CtorFieldInfo
.
format
:
CtorFieldInfo
→
Format
Equations
Instances For
source
instance
Lean
.
IR
.
CtorFieldInfo
.
instToFormat
:
ToFormat
CtorFieldInfo
Equations
source
structure
Lean
.
IR
.
CtorLayout
:
Type
cidx :
Nat
fieldInfo :
List
CtorFieldInfo
numObjs :
Nat
numUSize :
Nat
scalarSize :
Nat
Instances For
source
@[extern lean_ir_get_ctor_layout]
opaque
Lean
.
IR
.
getCtorLayout
(
env
:
Environment
)
(
ctorName
:
Name
)
:
Except
String
CtorLayout
source
opaque
Lean
.
IR
.
ctorInfoExt
:
Compiler.LCNF.CacheExtension
Name
(
CtorInfo
×
Array
CtorFieldInfo
)
source
def
Lean
.
IR
.
getCtorInfo
(
name
:
Name
)
:
CoreM
(
CtorInfo
×
Array
CtorFieldInfo
)
Equations
Instances For
source
def
Lean
.
IR
.
getCtorInfo
.
fillCache
(
name
:
Name
)
:
CoreM
(
CtorInfo
×
Array
CtorFieldInfo
)
Equations
Instances For