Skip to content

Commit 310ec97

Browse files
pedroclobogithub-actions[bot]
authored andcommitted
Automerge: [LangRef] Fix ptrtoaddr code block (#152927)
Fixes formatting of the example code block under the `ptrtoaddr` instruction.
2 parents 42438a9 + 57627bd commit 310ec97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/docs/LangRef.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12571,10 +12571,11 @@ Example:
1257112571
""""""""
1257212572
This example assumes pointers in address space 1 are 64 bits in size with an
1257312573
address width of 32 bits (``p1:64:64:64:32`` :ref:`datalayout string<langref_datalayout>`)
12574+
1257412575
.. code-block:: llvm
1257512576

12576-
%X = ptrtoaddr ptr addrspace(1) %P to i32 ; extracts low 32 bits of pointer
12577-
%Y = ptrtoaddr <4 x ptr addrspace(1)> %P to <4 x i32>; yields vector of low 32 bits for each pointer
12577+
%X = ptrtoaddr ptr addrspace(1) %P to i32 ; extracts low 32 bits of pointer
12578+
%Y = ptrtoaddr <4 x ptr addrspace(1)> %P to <4 x i32> ; yields vector of low 32 bits for each pointer
1257812579

1257912580

1258012581
.. _i_inttoptr:

0 commit comments

Comments
 (0)