Skip to content

Commit 355ca16

Browse files
committed
[SIL-opaque] Add section-level comment explaining storage allocation
1 parent fd45bd0 commit 355ca16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,9 @@ static SILValue getProjectedUseValue(Operand *operand) {
860860
//===----------------------------------------------------------------------===//
861861
// OpaqueStorageAllocation
862862
//
863-
// Generate alloc_stack and address projections for abstract storage locations.
863+
// For each ValueStorage, first determine whether it can project out of its
864+
// definition's storage or into the storage of a use. If so, record the
865+
// projection information. Otherwise emit an alloc_stack for this storage root.
864866
// ===---------------------------------------------------------------------===//
865867

866868
// Record a storage projection from the source of the given operand into its

0 commit comments

Comments
 (0)