Frame
fileprivate struct Frame : Sendable
The local variables and allocations of a lexical scope.
-
A map from declaration of a local variable to its corresponding IR in the frame.
Declaration
Swift
var locals: DeclProperty<Operand> -
The allocations in the frame, in FILO order, paired with a flag that’s
trueiff they may hold captured accesses.Declaration
Swift
var allocs: [(source: Operand, mayHoldCaptures: Bool)] -
Sets the
mayHoldCaptureson the allocation corresponding tosource.Declaration
Swift
mutating func setMayHoldCaptures(_ source: Operand) -
Returns
trueiffotherdescribes the same stack of allocations.Declaration
Swift
func hasSameAllocations(as other: `Self`) -> Bool
View on GitHub