Skip to content

Commit 73fa668

Browse files
author
mlevesquedion
authored
Fix a few broken links (llvm#87098)
References to headings need to be preceded with a slash. Also, references to headings on the same page do not need to contain the name of the document (omitting the document name means if the name changes the links will still be valid). I double checked the links by building [the website](https://github.com/llvm/mlir-www): ```shell ./mlir-www-helper.sh --install-docs ../llvm-project website cd website && hugo serve ```
1 parent cfb86ae commit 73fa668

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

mlir/docs/DefiningDialects/AttributesAndTypes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ from the [MLIR LangRef](../LangRef.md).
1414

1515
Attributes are the mechanism for specifying constant data on operations in
1616
places where a variable is never allowed - e.g. the comparison predicate of a
17-
[`arith.cmpi` operation](../Dialects/ArithOps.md#arithcmpi-mlirarithcmpiop), or
18-
the underlying value of a [`arith.constant` operation](../Dialects/ArithOps.md#arithconstant-mlirarithconstantop).
17+
[`arith.cmpi` operation](../Dialects/ArithOps.md/#arithcmpi-arithcmpiop), or
18+
the underlying value of a [`arith.constant` operation](../Dialects/ArithOps.md/#arithconstant-arithconstantop).
1919
Each operation has an attribute dictionary, which associates a set of attribute
2020
names to attribute values.
2121

@@ -24,15 +24,15 @@ names to attribute values.
2424
Every SSA value, such as operation results or block arguments, in MLIR has a type
2525
defined by the type system. MLIR has an open type system with no fixed list of types,
2626
and there are no restrictions on the abstractions they represent. For example, take
27-
the following [Arithmetic AddI operation](../Dialects/ArithOps.md#arithaddi-mlirarithaddiop):
27+
the following [Arithmetic AddI operation](../Dialects/ArithOps.md/#arithaddi-arithaddiop):
2828

2929
```mlir
3030
%result = arith.addi %lhs, %rhs : i64
3131
```
3232

3333
It takes two input SSA values (`%lhs` and `%rhs`), and returns a single SSA
3434
value (`%result`). The inputs and outputs of this operation are of type `i64`,
35-
which is an instance of the [Builtin IntegerType](../Dialects/Builtin.md#integertype).
35+
which is an instance of the [Builtin IntegerType](../Dialects/Builtin.md/#integertype).
3636

3737
## Attributes and Types
3838

mlir/docs/DefiningDialects/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Before diving into how to define these constructs, below is a quick refresher
1010
from the [MLIR LangRef](../LangRef.md).
1111

1212
Dialects are the mechanism by which to engage with and extend the MLIR
13-
ecosystem. They allow for defining new [attributes](../LangRef.md#attributes),
14-
[operations](../LangRef.md#operations), and [types](../LangRef.md#type-system).
13+
ecosystem. They allow for defining new [attributes](../LangRef.md/#attributes),
14+
[operations](../LangRef.md/#operations), and [types](../LangRef.md/#type-system).
1515
Dialects are used to model a variety of different abstractions; from traditional
1616
[arithmetic](../Dialects/ArithOps.md) to
1717
[pattern rewrites](../Dialects/PDLOps.md); and is one of the most fundamental
@@ -196,7 +196,7 @@ only the declaration of the destructor is generated for the Dialect class.
196196
197197
### Discardable Attribute Verification
198198
199-
As described by the [MLIR Language Reference](../LangRef.md#attributes),
199+
As described by the [MLIR Language Reference](../LangRef.md/#attributes),
200200
*discardable attribute* are a type of attribute that has its semantics defined
201201
by the dialect whose name prefixes that of the attribute. For example, if an
202202
operation has an attribute named `gpu.contained_module`, the `gpu` dialect
@@ -270,7 +270,7 @@ void *MyDialect::getRegisteredInterfaceForOp(TypeID typeID, StringAttr opName);
270270
```
271271
272272
For a more detail description of the expected usages of this hook, view the detailed
273-
[interface documentation](../Interfaces.md#dialect-fallback-for-opinterface).
273+
[interface documentation](../Interfaces.md/#dialect-fallback-for-opinterface).
274274
275275
### Default Attribute/Type Parsers and Printers
276276

mlir/docs/Dialects/Linalg/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ loops but previous experience shows that the abstraction generalizes.
279279

280280
A `linalg.generic` op has a compute payload that is fully generic thanks to the
281281
use of
282-
[Regions](https://github.com/llvm/llvm-project/blob/58265ad42a90ae8905be6a447cb42e53529a54a0/mlir/docs/LangRef.md#regions).
282+
[Regions](https://github.com/llvm/llvm-project/blob/58265ad42a90ae8905be6a447cb42e53529a54a0/mlir/docs/LangRef.md/#regions).
283283

284284
The region takes as arguments the scalar elemental types of the tensor or buffer
285285
operands of the `linalg.generic`. For flexibility and ability to match library

mlir/docs/Dialects/Transform.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ try to be explicitly typed when possible.
8484

8585
The transform IR values have transform IR types, which should implement exactly one of:
8686

87-
* [TransformHandleTypeInterface](Transform.md#transformhandletypeinterface-transformhandletypeinterface),
87+
* [TransformHandleTypeInterface](#transformhandletypeinterface-transformhandletypeinterface),
8888

89-
* [TransformValueHandleTypeInterface](Transform.md#transformvaluehandletypeinterface-transformvaluehandletypeinterface),
89+
* [TransformValueHandleTypeInterface](#transformvaluehandletypeinterface-transformvaluehandletypeinterface),
9090

91-
* [TransformParamTypeInterface](Transform.md##transformparamtypeinterface-transformparamtypeinterface).
91+
* [TransformParamTypeInterface](#transformparamtypeinterface-transformparamtypeinterface).
9292

9393
The goal of these type interfaces, beyond providing a common base for accepted
9494
types, is to verify the properties of the associated objects. For example, a

mlir/docs/LangRef.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ attribute-value ::= attribute-alias | dialect-attribute | builtin-attribute
761761

762762
Attributes are the mechanism for specifying constant data on operations in
763763
places where a variable is never allowed - e.g. the comparison predicate of a
764-
[`cmpi` operation](Dialects/ArithOps.md#arithcmpi-mlirarithcmpiop). Each operation has an
764+
[`cmpi` operation](Dialects/ArithOps.md/#arithcmpi-arithcmpiop). Each operation has an
765765
attribute dictionary, which associates a set of attribute names to attribute
766766
values. MLIR's builtin dialect provides a rich set of
767767
[builtin attribute values](#builtin-attribute-values) out of the box (such as

mlir/docs/Rationale/SideEffectsAndSpeculation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This document outlines how MLIR models side effects and how speculation works in
44
MLIR.
55

66
This rationale only applies to operations used in
7-
[CFG regions](../LangRef.md#control-flow-and-ssacfg-regions). Side effect
8-
modeling in [graph regions](../LangRef.md#graph-regions) is TBD.
7+
[CFG regions](../LangRef.md/#control-flow-and-ssacfg-regions). Side effect
8+
modeling in [graph regions](../LangRef.md/#graph-regions) is TBD.
99

1010
[TOC]
1111

mlir/docs/TargetLLVMIR.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ they use or produce `memref`-typed values.
4141

4242
The process relies on the [Dialect Conversion](DialectConversion.md)
4343
infrastructure and, in particular, on the
44-
[materialization](DialectConversion.md#type-conversion) hooks of `TypeConverter`
44+
[materialization](DialectConversion.md/#type-conversion) hooks of `TypeConverter`
4545
to support progressive lowering by injecting `unrealized_conversion_cast`
4646
operations between converted and unconverted operations. After multiple partial
4747
conversions to the LLVM dialect are performed, the cast operations that became
@@ -58,7 +58,7 @@ same type converter.
5858

5959
#### LLVM Dialect-compatible Types
6060

61-
The types [compatible](Dialects/LLVM.md#built-in-type-compatibility) with the
61+
The types [compatible](Dialects/LLVM.md/#built-in-type-compatibility) with the
6262
LLVM dialect are kept as is.
6363

6464
#### Complex Type
@@ -188,7 +188,7 @@ Function types are converted to LLVM dialect function types as follows:
188188
arguments to allow for specifying metadata such as aliasing information on
189189
individual pointers;
190190
- the conversion of `memref`-typed arguments is subject to
191-
[calling conventions](TargetLLVMIR.md#calling-conventions).
191+
[calling conventions](#calling-conventions).
192192
- if a function type has boolean attribute `func.varargs` being set, the
193193
converted LLVM function will be variadic.
194194

@@ -364,7 +364,7 @@ llvm.func @bar() {
364364

365365
The default calling convention converts `memref`-typed function arguments to
366366
LLVM dialect literal structs
367-
[defined above](TargetLLVMIR.md#ranked-memref-types) before unbundling them into
367+
[defined above](#ranked-memref-types) before unbundling them into
368368
individual scalar arguments.
369369

370370
Examples:

mlir/docs/Tutorials/Toy/Ch-4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ void MulOp::inferShapes() { getResult().setType(getLhs().getType()); }
383383
At this point, each of the necessary Toy operations provide a mechanism by which
384384
to infer their output shapes. The ShapeInferencePass will operate on functions:
385385
it will run on each function in isolation. MLIR also supports general
386-
[OperationPasses](../../PassManagement.md#operation-pass) that run on any
386+
[OperationPasses](../../PassManagement.md/#operation-pass) that run on any
387387
isolated operation, but here our module only contains functions, so there is no
388388
need to generalize to all operations.
389389

mlir/docs/Tutorials/transform/Ch4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ directly within the transform dialect.
2727
## Simple match
2828

2929
Let us reconsider the “fully connected layer” example from [Chapter
30-
1](Ch1.md#chaining-transformations-with-handles), reproduced below for
30+
1](Ch1.md/#chaining-transformations-with-handles), reproduced below for
3131
convenience.
3232

3333

0 commit comments

Comments
 (0)