[mlir] Restrict dialect doc gen to a single dialect
authorRiver Riddle <riddleriver@gmail.com>
Sun, 15 May 2022 23:40:18 +0000 (16:40 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 16 May 2022 22:35:07 +0000 (15:35 -0700)
commite0c3b94c80143376473ec7110ca0c8a4fe03112e
tree5a219847141ed9d9e42a3b1e3b80d0a73ce7d62e
parentd2f3b6020fbfa2dd56ebd03c942acda961c421e2
[mlir] Restrict dialect doc gen to a single dialect

In the overwhelmingly majority of cases only one dialect is generated at a time
anyways, and this restriction more easily catches user error when multiple
dialects might be generated. We hit this semi-recently with the PDL dialect,
and circt+other downstream users are also actively hitting this as well.

Differential Revision: https://reviews.llvm.org/D125651
mlir/include/mlir/Dialect/AMX/CMakeLists.txt
mlir/include/mlir/Dialect/ArmNeon/CMakeLists.txt
mlir/include/mlir/Dialect/ArmSVE/CMakeLists.txt
mlir/test/mlir-tblgen/gen-dialect-doc.td
mlir/tools/mlir-tblgen/DialectGen.cpp
mlir/tools/mlir-tblgen/DialectGenUtilities.h [new file with mode: 0644]
mlir/tools/mlir-tblgen/OpDocGen.cpp