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 true iff they may hold captured accesses.

    Declaration

    Swift

    var allocs: [(source: Operand, mayHoldCaptures: Bool)]
  • Sets the mayHoldCaptures on the allocation corresponding to source.

    Declaration

    Swift

    mutating func setMayHoldCaptures(_ source: Operand)
  • Returns true iff other describes the same stack of allocations.

    Declaration

    Swift

    func hasSameAllocations(as other: `Self`) -> Bool