-
An empty instance whose allocation and access semantics are defined by the types in
pand the targetabi.Declaration
Swift
public init(typesIn p: TypedProgram, for abi: any TargetABI) -
An incorrect use of memory.
See moreDeclaration
Swift
public enum Error : Swift.Error, Regular -
The type layouts that been computed so far.
Invariant: All allocations in
selfobeys type layout fromtypeLayouts.Declaration
Swift
var typeLayouts: TypeLayoutCache -
A position in some allocation.
Declaration
Swift
public typealias Offset = Int -
The bytes of an
Allocationpreceded by zero or more bytes of initial padding for alignment purposes.Declaration
Swift
public typealias Storage = [UInt8] -
A usable region.
See moreDeclaration
Swift
public struct Allocation -
A memory location.
See moreDeclaration
Swift
public struct Address : Regular, CustomStringConvertible -
A typed location in memory.
See moreDeclaration
Swift
public struct Place : Regular, CustomStringConvertible -
The live allocations, by ID
Declaration
Swift
public private(set) var allocation: [Allocation.ID : Allocation] { get } -
The ID of the next allocated block.
Declaration
Swift
private var nextAllocation: Int -
Undocumented
Declaration
Swift
public mutating func allocate(_ t: AnyType, count n: Int = 1) -> Place -
Deallocates the allocated memory starting at
a.Declaration
Swift
public mutating func deallocate(_ a: Place) throws -
Replaces the initialization records starting at
afor the parts of atinstance, with the initialization record for atinstance.Declaration
Swift
public mutating func compose(_ t: AnyType, at a: Address) throws -
Returns true if
ais aligned to annbyte boundary.Declaration
Swift
public func place(_ a: Place, hasAlignment n: Int) -> Bool -
Returns true if
ais aligned to annbyte boundary.Declaration
Swift
public func address(_ a: Address, hasAlignment n: Int) -> Bool -
Replaces the initialization record for a
tinstance atawith the initialization records for any parts of that instance.Declaration
Swift
public mutating func decompose(_ t: AnyType, at a: Address) throws -
Undocumented
Declaration
Swift
private func checkDecomposable(_ t: TypeLayout, at a: Address) throws -> Allocation.ComposedRegions.Index -
The allocation identified by
i.Declaration
Swift
public subscript(i: Allocation.ID) -> Allocation { get set } -
Returns the address of
subPartinwhole. -
Stores
vintarget.Declaration
Swift
mutating func store(_ v: BuiltinValue, in target: Place) throws
View on GitHub