[llvm] [Docs] [NFC] Use opaque ptr in the example (PR #91502)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 09:59:21 PDT 2024


https://github.com/XChy created https://github.com/llvm/llvm-project/pull/91502

None

>From 7938c596ef2580dc603961dba1bbe8cb9da3008a Mon Sep 17 00:00:00 2001
From: XChy <xxs_chy at outlook.com>
Date: Thu, 9 May 2024 00:51:52 +0800
Subject: [PATCH] [Docs] Use opaque ptr in the example

---
 llvm/docs/MIRLangRef.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/docs/MIRLangRef.rst b/llvm/docs/MIRLangRef.rst
index 52ff24daa7fba..e248a14636a86 100644
--- a/llvm/docs/MIRLangRef.rst
+++ b/llvm/docs/MIRLangRef.rst
@@ -168,11 +168,11 @@ Here is an example of a YAML document that contains an LLVM module:
 
 .. code-block:: llvm
 
-       define i32 @inc(i32* %x) {
+       define i32 @inc(ptr %x) {
        entry:
-         %0 = load i32, i32* %x
+         %0 = load i32, ptr %x
          %1 = add i32 %0, 1
-         store i32 %1, i32* %x
+         store i32 %1, ptr %x
          ret i32 %1
        }
 



More information about the llvm-commits mailing list