-
The program supplying the types.
Declaration
Swift
let p: TypedProgram -
The ABI for which the types will be laid out.
Declaration
Swift
let abi: any TargetABI -
The memo of layouts computed so far.
Declaration
Swift
private var storage: [AnyType : TypeLayout] -
Declaration
Swift
public init(typesIn p: TypedProgram, for abi: any TargetABI) -
The layout for
t.Declaration
Swift
public subscript(t: AnyType) -> TypeLayout { mutating get } -
Returns the layout for
u.Declaration
Swift
private mutating func computeLayout(_ u: UnionType) -> TypeLayout -
Returns the concrete layout for
lDeclaration
Swift
private mutating func concretized(_ l: AbstractTypeLayout) -> TypeLayout -
Returns the layout for
t.Declaration
Swift
private mutating func computeLayout(_ t: AnyType) -> TypeLayout -
Returns the byte offset and layout of
subFieldwithintype.Declaration
Swift
mutating func layout(of subField: RecordPath, in type: TypeLayout) -> (offset: Int, structure: TypeLayout)
View on GitHub