Documentation
Lean
.
Compiler
.
IR
.
CtorLayout
Search
return to top
source
Imports
Lean.Environment
Lean.Compiler.IR.Format
Imported by
Lean
.
IR
.
CtorFieldInfo
Lean
.
IR
.
instInhabitedCtorFieldInfo
Lean
.
IR
.
CtorFieldInfo
.
format
Lean
.
IR
.
CtorFieldInfo
.
instToFormat
Lean
.
IR
.
CtorLayout
Lean
.
IR
.
getCtorLayout
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