Skip to content

Conversation

@pedroclobo
Copy link
Member

Fixes formatting of the example code block under the ptrtoaddr instruction.

Fixes formatting of the example code block under the `ptrtoaddr`
instruction.
@llvmbot
Copy link
Member

llvmbot commented Aug 10, 2025

@llvm/pr-subscribers-llvm-ir

Author: Pedro Lobo (pedroclobo)

Changes

Fixes formatting of the example code block under the ptrtoaddr instruction.


Full diff: https://github.com/llvm/llvm-project/pull/152927.diff

1 Files Affected:

  • (modified) llvm/docs/LangRef.rst (+3-2)
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 99a0b179b7c0c..6ba3759080cc3 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -12571,10 +12571,11 @@ Example:
 """"""""
 This example assumes pointers in address space 1 are 64 bits in size with an
 address width of 32 bits (``p1:64:64:64:32`` :ref:`datalayout string<langref_datalayout>`)
+
 .. code-block:: llvm
 
-      %X = ptrtoaddr ptr addrspace(1) %P to i32  ; extracts low 32 bits of pointer
-      %Y = ptrtoaddr <4 x ptr addrspace(1)> %P to <4 x i32>; yields vector of low 32 bits for each pointer
+      %X = ptrtoaddr ptr addrspace(1) %P to i32              ; extracts low 32 bits of pointer
+      %Y = ptrtoaddr <4 x ptr addrspace(1)> %P to <4 x i32>  ; yields vector of low 32 bits for each pointer
 
 
 .. _i_inttoptr:

@pedroclobo pedroclobo merged commit 57627bd into llvm:main Aug 10, 2025
10 of 12 checks passed
@pedroclobo pedroclobo deleted the ptrtoaddr-code-block branch August 10, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants