Skip to content

Commit 3879608

Browse files
committed
[comment] Add a semantics note to SIL BindMemory
1 parent 2c40a85 commit 3879608

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/SIL/SILInstruction.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5049,6 +5049,8 @@ class ExplicitCopyAddrInst
50495049
///
50505050
/// %token is an opaque word representing the previously bound types of this
50515051
/// memory region, before binding it to a contiguous region of type $T.
5052+
///
5053+
/// Semantics: writes an unknown value to memory at `%0` of `%1` bytes.
50525054
class BindMemoryInst final : public InstructionBaseWithTrailingOperands<
50535055
SILInstructionKind::BindMemoryInst,
50545056
BindMemoryInst, SingleValueInstruction> {
@@ -5096,6 +5098,9 @@ class BindMemoryInst final : public InstructionBaseWithTrailingOperands<
50965098
///
50975099
/// %out_token represents the previously bound types of this memory region,
50985100
/// before binding it to %in_token.
5101+
///
5102+
/// Semantics: writes an unknown value to memory at `%0` of the same size as the
5103+
/// binding operation that produced `%in_token` bytes.
50995104
class RebindMemoryInst final : public SingleValueInstruction {
51005105
FixedOperandList<2> Operands;
51015106

0 commit comments

Comments
 (0)