[all-commits] [llvm/llvm-project] 836852: [mlir][tblgen][docs] Use correct introductionary p...

zero9178 via All-commits all-commits at lists.llvm.org
Wed Dec 7 03:25:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 836852878c24c7552c4dbefe867112dd54d881f2
      https://github.com/llvm/llvm-project/commit/836852878c24c7552c4dbefe867112dd54d881f2
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M mlir/test/mlir-tblgen/gen-dialect-doc.td
    M mlir/tools/mlir-tblgen/OpDocGen.cpp

  Log Message:
  -----------
  [mlir][tblgen][docs] Use correct introductionary prefix for the Syntax description of attributes and types

The doc generator currently has the use of `!` as prefix hardcoded, despite being incorrect for Attributes. These start with `#`.

This patch fixes that little issue by using `#` for AttrDefs and `!` for TypeDefs in the `Syntax` field of the generated Markdown file.

Differential Revision: https://reviews.llvm.org/D139524




More information about the All-commits mailing list