[Mlir-commits] [mlir] Fix AffineOps.md "more than 1 dialect" build error (PR #184092)

Thomas Preud'homme llvmlistbot at llvm.org
Mon Mar 2 02:31:28 PST 2026


https://github.com/RoboTux created https://github.com/llvm/llvm-project/pull/184092

AffineOps.md fails to build with the following:
"when more than 1 dialect is present, one must be selected via '-dialect'"

This commit adds the missing -dialect=affine.

Signed-off-by: Thomas Preud'homme <thomas.preudhomme at arm.com>


>From 70a6d3843d6fd51eb9290dd04a84b383fe698052 Mon Sep 17 00:00:00 2001
From: Thomas Preud'homme <thomas.preudhomme at arm.com>
Date: Mon, 2 Mar 2026 10:18:17 +0000
Subject: [PATCH] Fix AffineOps.md "more than 1 dialect" build error

AffineOps.md fails to build with the following:
"when more than 1 dialect is present, one must be selected via '-dialect'"

This commit adds the missing -dialect=affine.

Signed-off-by: Thomas Preud'homme <thomas.preudhomme at arm.com>
---
 mlir/include/mlir/Dialect/Affine/IR/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/include/mlir/Dialect/Affine/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/Affine/IR/CMakeLists.txt
index 49d00e0c54e73..33287ff359b42 100644
--- a/mlir/include/mlir/Dialect/Affine/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/Affine/IR/CMakeLists.txt
@@ -1,5 +1,5 @@
 add_mlir_dialect(AffineOps affine)
-add_mlir_doc(AffineOps AffineOps Dialects/ -gen-op-doc)
+add_mlir_doc(AffineOps AffineOps Dialects/ -gen-op-doc -dialect=affine)
 
 add_mlir_interface(AffineMemoryOpInterfaces)
 add_dependencies(MLIRAffineOpsIncGen MLIRAffineMemoryOpInterfacesIncGen)



More information about the Mlir-commits mailing list