[Mlir-commits] [mlir] [mlir][OpInterfacesGen][NFC] Add newline after traits declaration (PR #85633)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Mar 18 04:32:22 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-core

Author: Andrei Golubev (andrey-golubev)

<details>
<summary>Changes</summary>

Slightly improve the readability of the tablegen-generated code.

---
Full diff: https://github.com/llvm/llvm-project/pull/85633.diff


1 Files Affected:

- (modified) mlir/tools/mlir-tblgen/OpInterfacesGen.cpp (+1-1) 


``````````diff
diff --git a/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp b/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
index 9672a02cc08f68..2a7406f42f34b5 100644
--- a/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
@@ -533,7 +533,7 @@ void InterfaceGenerator::emitInterfaceDecl(const Interface &interface) {
      << "struct " << interfaceTraitsName << " {\n";
   emitConceptDecl(interface);
   emitModelDecl(interface);
-  os << "};";
+  os << "};\n";
 
   // Emit the derived trait for the interface.
   os << "template <typename " << valueTemplate << ">\n";

``````````

</details>


https://github.com/llvm/llvm-project/pull/85633


More information about the Mlir-commits mailing list