[Mlir-commits] [mlir] [mlir][OpInterfacesGen][NFC] Add newline after traits declaration (PR #85633)
Andrei Golubev
llvmlistbot at llvm.org
Mon Mar 18 04:31:53 PDT 2024
https://github.com/andrey-golubev created https://github.com/llvm/llvm-project/pull/85633
Slightly improve the readability of the tablegen-generated code.
>From 311f91fb7154e0846b9d972b5d658a3542706303 Mon Sep 17 00:00:00 2001
From: Andrei Golubev <andrey.golubev at intel.com>
Date: Mon, 18 Mar 2024 12:26:31 +0100
Subject: [PATCH] [mlir][OpInterfacesGen][NFC] Add newline after traits
declaration
Slightly improve the readability of the tablegen-generated code.
Co-authored-by: Orest Chura <orest.chura at intel.com>
---
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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";
More information about the Mlir-commits
mailing list