From 04fd6daacf2018517eeda89cc565bc43b06515b1 Mon Sep 17 00:00:00 2001 From: Twice Date: Sun, 13 Oct 2024 01:32:16 +0800 Subject: [PATCH] [mlir][docs] Fix broken links in PDLL.md (#107965) `https://mlir.llvm.org/docs/OpDefinitions/` has already been moved (as a broken link now). Here it's fixed to the form of relative reference `DefiningDialects/Operations.md` along with other links. --- mlir/docs/PDLL.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mlir/docs/PDLL.md b/mlir/docs/PDLL.md index f5651156a860ca0..ee1b615a2dcdee4 100644 --- a/mlir/docs/PDLL.md +++ b/mlir/docs/PDLL.md @@ -5,8 +5,8 @@ writing pattern rewrites targeting MLIR. Note: This document assumes a familiarity with MLIR concepts; more specifically the concepts detailed within the -[MLIR Pattern Rewriting](https://mlir.llvm.org/docs/PatternRewriter/) and -[Operation Definition Specification (ODS)](https://mlir.llvm.org/docs/OpDefinitions/) +[MLIR Pattern Rewriting](PatternRewriter.md) and +[Operation Definition Specification (ODS)](DefiningDialects/Operations.md) documentation. [TOC] @@ -34,11 +34,11 @@ that no longer exist. ### Why build a new language instead of improving TableGen DRR? Note: This section assumes familiarity with -[TDRR](https://mlir.llvm.org/docs/DeclarativeRewrites/), please refer the +[TDRR](DeclarativeRewrites.md), please refer the relevant documentation before continuing. Tablegen DRR (TDRR), i.e. -[Table-driven Declarative Rewrite Rules](https://mlir.llvm.org/docs/DeclarativeRewrites/), +[Table-driven Declarative Rewrite Rules](DeclarativeRewrites.md), is a declarative DSL for defining MLIR pattern rewrites within the [TableGen](https://llvm.org/docs/TableGen/index.html) language. This infrastructure is currently the main way in which patterns may be defined @@ -257,7 +257,7 @@ the current file. #### `.td` includes When including a `.td` file, PDLL will automatically import any pertinent -[ODS](https://mlir.llvm.org/docs/OpDefinitions/) information within that file. +[ODS](DefiningDialects/Operations.md) information within that file. This includes any defined operations, constraints, interfaces, and more, making them implicitly accessible within PDLL. This is important, as ODS information allows for certain PDLL constructs, such as the