Skip to content

Commit f47b19f

Browse files
committed
s/index type/pointer index type
1 parent 187e897 commit f47b19f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

llvm/docs/LangRef.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11315,9 +11315,9 @@ For ``nusw`` (no unsigned signed wrap):
1131511315
index type in a signed sense (``mul nsw``).
1131611316
* The successive addition of each offset (without adding the base address)
1131711317
does not wrap the pointer index type in a signed sense (``add nsw``).
11318-
* The successive addition of the current address, truncated to the index type
11319-
and interpreted as an unsigned number, and each offset, interpreted as
11320-
a signed number, does not wrap the index type.
11318+
* The successive addition of the current address, truncated to the pointer
11319+
index type and interpreted as an unsigned number, and each offset,
11320+
interpreted as a signed number, does not wrap the pointer index type.
1132111321

1132211322
For ``nuw`` (no unsigned wrap):
1132311323

@@ -11328,9 +11328,10 @@ For ``nuw`` (no unsigned wrap):
1132811328
index type in an unsigned sense (``mul nuw``).
1132911329
* The successive addition of each offset (without adding the base address)
1133011330
does not wrap the pointer index type in an unsigned sense (``add nuw``).
11331-
* The successive addition of the current address, truncated to the index type
11332-
and interpreted as an unsigned number, and each offset, also interpreted as
11333-
an unsigned number, does not wrap the index type (``add nuw``).
11331+
* The successive addition of the current address, truncated to the pointer
11332+
index type and interpreted as an unsigned number, and each offset, also
11333+
interpreted as an unsigned number, does not wrap the pointer index type
11334+
(``add nuw``).
1133411335

1133511336
For ``inbounds`` all rules of the ``nusw`` attribute apply. Additionally,
1133611337
if the ``getelementptr`` has any non-zero indices, the following rules apply:

0 commit comments

Comments
 (0)