[Mlir-commits] [mlir] b3127c9 - [mlir][docs] Fix links to index and integer types
Marius Brehler
llvmlistbot at llvm.org
Fri May 21 09:21:53 PDT 2021
Author: Marius Brehler
Date: 2021-05-21T18:21:29+02:00
New Revision: b3127c94dddf6abb03dcf6abac272dbb52827c52
URL: https://github.com/llvm/llvm-project/commit/b3127c94dddf6abb03dcf6abac272dbb52827c52
DIFF: https://github.com/llvm/llvm-project/commit/b3127c94dddf6abb03dcf6abac272dbb52827c52.diff
LOG: [mlir][docs] Fix links to index and integer types
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D102922
Added:
Modified:
mlir/docs/Dialects/Affine.md
mlir/docs/Dialects/SPIR-V.md
mlir/docs/Tutorials/DefiningAttributesAndTypes.md
mlir/docs/Tutorials/Toy/Ch-7.md
Removed:
################################################################################
diff --git a/mlir/docs/Dialects/Affine.md b/mlir/docs/Dialects/Affine.md
index 1ce535a0c9b7f..639d2ba781ded 100644
--- a/mlir/docs/Dialects/Affine.md
+++ b/mlir/docs/Dialects/Affine.md
@@ -13,7 +13,7 @@ core concepts that are used throughout the document.
### Dimensions and Symbols
Dimensions and symbols are the two kinds of identifiers that can appear in the
-polyhedral structures, and are always of [`index`](../LangRef.md#index-type)
+polyhedral structures, and are always of [`index`](Builtin.md#indextype)
type. Dimensions are declared in parentheses and symbols are declared in square
brackets.
@@ -113,7 +113,7 @@ less than or equal to that result. `mod` is the modulo operation: since its
second argument is always positive, its results are always positive in our
usage. The `integer-literal` operand for ceildiv, floordiv, and mod is always
expected to be positive. `bare-id` is an identifier which must have type
-[index](../LangRef.md#index-type). The precedence of operations in an affine
+[index](Builtin.md#indextype). The precedence of operations in an affine
expression are ordered from highest to lowest in the order: (1)
parenthesization, (2) negation, (3) modulo, multiplication, floordiv, and
ceildiv, and (4) addition and subtraction. All of these operators associate from
diff --git a/mlir/docs/Dialects/SPIR-V.md b/mlir/docs/Dialects/SPIR-V.md
index 8951323959927..7e473b030e569 100644
--- a/mlir/docs/Dialects/SPIR-V.md
+++ b/mlir/docs/Dialects/SPIR-V.md
@@ -1395,11 +1395,11 @@ dialect.
[MlirDialectConversionRewritePattern]: ../DialectConversion.md#conversion-patterns
[MlirDialectConversionSignatureConversion]: ../DialectConversion.md#region-signature-conversion
[MlirOpInterface]: ../Interfaces/#operation-interfaces
-[MlirIntegerType]: ../LangRef.md#integer-type
+[MlirIntegerType]: Builtin.md#integertype
[MlirFloatType]: ../LangRef.md#floating-point-types
[MlirVectorType]: ../LangRef.md#vector-type
[MlirMemrefType]: ../LangRef.md#memref-type
-[MlirIndexType]: ../LangRef.md#index-type
+[MlirIndexType]: Builtin.md#indextype
[MlirGpuDialect]: ../Dialects/GPU.md
[MlirStandardDialect]: ../Dialects/Standard.md
[MlirSpirvHeaders]: https://github.com/llvm/llvm-project/tree/main/mlir/include/mlir/Dialect/SPIRV
diff --git a/mlir/docs/Tutorials/DefiningAttributesAndTypes.md b/mlir/docs/Tutorials/DefiningAttributesAndTypes.md
index 7942fa2e18689..4afafe718b545 100644
--- a/mlir/docs/Tutorials/DefiningAttributesAndTypes.md
+++ b/mlir/docs/Tutorials/DefiningAttributesAndTypes.md
@@ -25,13 +25,13 @@ So before defining the derived `Type`, it's important to know which of the two
classes of `Type` we are defining:
Some types are _singleton_ in nature, meaning they have no parameters and only
-ever have one instance, like the [`index` type](LangRef.md#index-type).
+ever have one instance, like the [`index` type](../Dialects/Builtin.md#indextype).
Other types are _parametric_, and contain additional information that
diff erentiates
diff erent instances of the same `Type`. For example the
-[`integer` type](LangRef.md#integer-type) contains a bitwidth, with `i8` and
+[`integer` type](../Dialects/Builtin.md#integertype) contains a bitwidth, with `i8` and
`i16` representing
diff erent instances of
-[`integer` type](LangRef.md#integer-type). _Parametric_ may also contain a
+[`integer` type](../Dialects/Builtin.md#integertype). _Parametric_ may also contain a
mutable component, which can be used, for example, to construct self-referring
recursive types. The mutable component _cannot_ be used to
diff erentiate
instances of a type class, so usually such types contain other parametric
diff --git a/mlir/docs/Tutorials/Toy/Ch-7.md b/mlir/docs/Tutorials/Toy/Ch-7.md
index 72dc8440e9ef3..8dcf47e969e3b 100644
--- a/mlir/docs/Tutorials/Toy/Ch-7.md
+++ b/mlir/docs/Tutorials/Toy/Ch-7.md
@@ -72,7 +72,7 @@ constructing and uniquing an instance of a storage class.
When defining a new `Type` that contains parametric data (e.g. the `struct`
type, which requires additional information to hold the element types), we will
need to provide a derived storage class. The `singleton` types that don't have
-any additional data (e.g. the [`index` type](../../LangRef.md#index-type)) don't
+any additional data (e.g. the [`index` type](../../Dialects/Builtin.md#indextype)) don't
require a storage class and use the default `TypeStorage`.
##### Defining the Storage Class
More information about the Mlir-commits
mailing list