Skip to content

Commit ed53de2

Browse files
committed
[LangRef] lifetime intrinsics: don't use word 'offset'
from Philip's comments
1 parent 889da99 commit ed53de2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

llvm/docs/LangRef.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18073,8 +18073,8 @@ to the object.
1807318073
Semantics:
1807418074
""""""""""
1807518075

18076-
If ``ptr`` is a stack-allocated object and its offset is zero, the object is
18077-
initially marked as dead.
18076+
If ``ptr`` is a stack-allocated object and it points to the first byte of
18077+
the object, the object is initially marked as dead.
1807818078
After '``llvm.lifetime.start``', the stack object that ``ptr`` points is marked
1807918079
as alive and has an uninitialized value.
1808018080
The stack object is marked as dead when either
@@ -18086,9 +18086,9 @@ After :ref:`llvm.lifetime.end <int_lifeend>` is called,
1808618086
The second '``llvm.lifetime.start``' call marks the object as alive, but it
1808718087
does not change the address of the object.
1808818088

18089-
If ``ptr`` is a non-stack-allocated object, its offset is non-zero or it is
18090-
a stack object that is already alive, it simply fills all bytes of the object
18091-
with ``poison``.
18089+
If ``ptr`` is a non-stack-allocated object, it does not point to the first
18090+
byte of the object or it is a stack object that is already alive, it simply
18091+
fills all bytes of the object with ``poison``.
1809218092

1809318093

1809418094
.. _int_lifeend:
@@ -18119,12 +18119,13 @@ to the object.
1811918119
Semantics:
1812018120
""""""""""
1812118121

18122-
If ``ptr`` is a stack-allocated object and its offset is zero, the object is
18123-
dead.
18122+
If ``ptr`` is a stack-allocated object and it points to the first byte of the
18123+
object, the object is dead.
1812418124
Calling ``llvm.lifetime.end`` on an already dead alloca is no-op.
1812518125

18126-
If ``ptr`` is a non-stack-allocated object or its offset is non-zero,
18127-
it is equivalent to simply filling all bytes of the object with ``poison``.
18126+
If ``ptr`` is a non-stack-allocated object or it does not point to the first
18127+
byte of the object, it is equivalent to simply filling all bytes of the object
18128+
with ``poison``.
1812818129

1812918130

1813018131
'``llvm.invariant.start``' Intrinsic

0 commit comments

Comments
 (0)