Skip to content

Commit 57453ba

Browse files
committed
s/index type/pointer index type
1 parent a898aac commit 57453ba

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
@@ -11311,9 +11311,9 @@ For ``nusw`` (no unsigned signed wrap):
1131111311
index type in a signed sense (``mul nsw``).
1131211312
* The successive addition of each offset (without adding the base address)
1131311313
does not wrap the pointer index type in a signed sense (``add nsw``).
11314-
* The successive addition of the current address, truncated to the index type
11315-
and interpreted as an unsigned number, and each offset, interpreted as
11316-
a signed number, does not wrap the index type.
11314+
* The successive addition of the current address, truncated to the pointer
11315+
index type and interpreted as an unsigned number, and each offset,
11316+
interpreted as a signed number, does not wrap the pointer index type.
1131711317

1131811318
For ``nuw`` (no unsigned wrap):
1131911319

@@ -11324,9 +11324,10 @@ For ``nuw`` (no unsigned wrap):
1132411324
index type in an unsigned sense (``mul nuw``).
1132511325
* The successive addition of each offset (without adding the base address)
1132611326
does not wrap the pointer index type in an unsigned sense (``add nuw``).
11327-
* The successive addition of the current address, truncated to the index type
11328-
and interpreted as an unsigned number, and each offset, also interpreted as
11329-
an unsigned number, does not wrap the index type (``add nuw``).
11327+
* The successive addition of the current address, truncated to the pointer
11328+
index type and interpreted as an unsigned number, and each offset, also
11329+
interpreted as an unsigned number, does not wrap the pointer index type
11330+
(``add nuw``).
1133011331

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

0 commit comments

Comments
 (0)