llvm/llvm-project

[mlir] Auto generate docs for dialect op interfaces

Open

#104,593 opened on Aug 16, 2024

View on GitHub
 (9 comments) (0 reactions) (1 assignee)C++ (10,782 forks)batch import
good first issuemlir:core

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (Avg merge 1d 2h) (1,000 merged PRs in 30d)

Description

MLIR tblgen support auto generating attr/type/op/enum docs, and a dialect doc that contains them all. This is done in OpDocGen.cpp. However, it doesn't support generating docs for op interfaces (generated via -gen-op-interface-*).

It would be great to add support for that, such that the generated doc will show the following info for each op-interafce - summary, description, base interfaces, and methods.

Contributor guide