[llvm] 08011cf - [Docs][NFC] Use opaque ptr in the example (#91502)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 10:15:52 PDT 2024
Author: XChy
Date: 2024-05-09T01:15:49+08:00
New Revision: 08011cf8453c7c9e87d135f063356b6764a91cbc
URL: https://github.com/llvm/llvm-project/commit/08011cf8453c7c9e87d135f063356b6764a91cbc
DIFF: https://github.com/llvm/llvm-project/commit/08011cf8453c7c9e87d135f063356b6764a91cbc.diff
LOG: [Docs][NFC] Use opaque ptr in the example (#91502)
Added:
Modified:
llvm/docs/MIRLangRef.rst
Removed:
################################################################################
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