Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 44e7227

Browse files
MLIR Teamtensorflower-gardener
MLIR Team
authored andcommitted
Add "[TOC]" to generated documentation
PiperOrigin-RevId: 277354482
1 parent 7619c29 commit 44e7227

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/mlir-tblgen/OpDocGen.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ static void emitOpDocForDialect(const Dialect &dialect,
9595
emitIfNotEmpty(dialect.getSummary(), os);
9696
emitIfNotEmpty(dialect.getDescription(), os);
9797

98+
// TODO(b/143543720) Generate TOC where extension is not supported.
99+
os << "[TOC]\n\n";
100+
98101
// TODO(antiagainst): Add link between use and def for types
99102
if (!types.empty())
100103
os << "## Type definition\n";

0 commit comments

Comments
 (0)