[mlir] Fix missing OpInterface docs newline
authorSchuyler Eldridge <schuyler.eldridge@sifive.com>
Thu, 22 Dec 2022 22:34:27 +0000 (17:34 -0500)
committerSchuyler Eldridge <schuyler.eldridge@sifive.com>
Tue, 27 Dec 2022 16:52:45 +0000 (11:52 -0500)
commit794056e86a53beff8e80f3a4fd8926e776a1f65e
treebed2487ac4e277c8c39cc732d4c731e2434a7ba1
parentf7bc8e035d8d0f6b0ed3e0e4b8ed30d1adc22129
[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@sifive.com>
Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D140590
mlir/test/mlir-tblgen/op-interface.td
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp