[all-commits] [llvm/llvm-project] 794056: [mlir] Fix missing OpInterface docs newline

Schuyler Eldridge via All-commits all-commits at lists.llvm.org
Tue Dec 27 08:52:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 794056e86a53beff8e80f3a4fd8926e776a1f65e
      https://github.com/llvm/llvm-project/commit/794056e86a53beff8e80f3a4fd8926e776a1f65e
  Author: Schuyler Eldridge <schuyler.eldridge at sifive.com>
  Date:   2022-12-27 (Tue, 27 Dec 2022)

  Changed paths:
    M mlir/test/mlir-tblgen/op-interface.td
    M mlir/tools/mlir-tblgen/OpInterfacesGen.cpp

  Log Message:
  -----------
  [mlir] Fix missing OpInterface docs newline

Fix incorrect markdown generated by mlir-tblgen for an InterfaceMethod
that includes a body.  Previously, this would cause the next method to
show up on the same line and produce incorrect markdown.  Newlines would
only be added if the method did _not_ provide a body.  E.g., previously
this was generating markdown like:

    some function comment#### `next method`

This change makes this generate as:

    some function comment

    #### `next method`

Signed-off-by: Schuyler Eldridge <schuyler.eldridge at sifive.com>

Reviewed By: rriddle

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




More information about the All-commits mailing list