From 967e4b86022327645b203331951801595d90c4f6 Mon Sep 17 00:00:00 2001 From: Fr4nk1in 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 a49ba35db9a68..ba466aa6bc401 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