When emitting the declarations for interface methods defined in ODS,
also emit their descriptions as C++ comments. This makes the
documentation accessible to C++ tooling such as IDEs that offers better
usability than reading it form the .td or the website.
Details
Details
- Reviewers
jpienaar - Commits
- rG2e2ad5397904: [mlir] Generate C++ doc comments for interfaces
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/tools/mlir-tblgen/DocGenUtilities.h | ||
---|---|---|
17 | Is this required? | |
mlir/tools/mlir-tblgen/OpDocGen.cpp | ||
66 | Why not just use raw_indented_ostream and then set prefix before? (this function could also effectively be printReindented if that allowed for specifying a prefix of "/// ") | |
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp | ||
412 | If you switched, then you could also get rid of keeping manual track of lists of spaces everywhere. |
mlir/tools/mlir-tblgen/DocGenUtilities.h | ||
---|---|---|
17 | Yes. Default-valued argument below needs full type definition. |
Is this required?