[Mlir-commits] [mlir] [docs][mlir] Fix broken links in 'llvm' dialects. (PR #88704)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 15 02:46:02 PDT 2024
https://github.com/Fr4nk1inCs created https://github.com/llvm/llvm-project/pull/88704
Links to `llvm.mlir.global` and `llvm.mlir.addressof` in the ["Globals" section of LLVM dialect documentation](https://mlir.llvm.org/docs/Dialects/LLVM/#globals) are broken.
>From 967e4b86022327645b203331951801595d90c4f6 Mon Sep 17 00:00:00 2001
From: Fr4nk1in <fushen at mail.ustc.edu.cn>
Date: Mon, 15 Apr 2024 17:38:36 +0800
Subject: [PATCH] [docs][mlir] Fix broken links in 'llvm' dialects.
---
mlir/docs/Dialects/LLVM.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/docs/Dialects/LLVM.md b/mlir/docs/Dialects/LLVM.md
index a49ba35db9a68f..ba466aa6bc4012 100644
--- a/mlir/docs/Dialects/LLVM.md
+++ b/mlir/docs/Dialects/LLVM.md
@@ -139,12 +139,12 @@ will be reevaluated after considering composite constants.
### Globals
Global variables are also defined using a special operation,
-[`llvm.mlir.global`](#llvmmlirglobal-mlirllvmglobalop), located at the module
+[`llvm.mlir.global`](#llvmmlirglobal-llvmglobalop), located at the module
level. Globals are MLIR symbols and are identified by their name.
Since functions need to be isolated-from-above, i.e. values defined outside the
function cannot be directly used inside the function, an additional operation,
-[`llvm.mlir.addressof`](#llvmmliraddressof-mlirllvmaddressofop), is provided to
+[`llvm.mlir.addressof`](#llvmmliraddressof-llvmaddressofop), is provided to
locally define a value containing the _address_ of a global. The actual value
can then be loaded from that pointer, or a new value can be stored into it if
the global is not declared constant. This is similar to LLVM IR where globals
More information about the Mlir-commits
mailing list