Skip to content

Commit e6da389

Browse files
committed
Add documentation for end_lifetime
1 parent eb1c656 commit e6da389

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/SIL.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,6 +3612,20 @@ We require that ``%1`` and ``%0`` have the same type ignoring SILValueCategory.
36123612

36133613
This instruction is only valid in functions in Ownership SSA form.
36143614

3615+
end_lifetime
3616+
``````````
3617+
3618+
::
3619+
3620+
sil-instruction ::= 'end_lifetime' sil-operand
3621+
3622+
This instruction signifies the end of it's operand's lifetime to the ownership
3623+
verifier. It is inserted by the compiler in instances where it could be illegal
3624+
to insert a destroy operation. Ex: if the sil-operand had an undef value.
3625+
3626+
This instruction is valid only in OSSA and is lowered to a no-op when lowering
3627+
to non-OSSA.
3628+
36153629
assign
36163630
``````
36173631
::

0 commit comments

Comments
 (0)