[Mlir-commits] [mlir] 39c739e - [mlir][OpInterfacesGen][NFC] Add newline after traits declaration (#85633)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Mar 18 09:05:11 PDT 2024
Author: Andrei Golubev
Date: 2024-03-18T17:05:05+01:00
New Revision: 39c739eec9148a2f4e04c7fa9ca11f23db79bb15
URL: https://github.com/llvm/llvm-project/commit/39c739eec9148a2f4e04c7fa9ca11f23db79bb15
DIFF: https://github.com/llvm/llvm-project/commit/39c739eec9148a2f4e04c7fa9ca11f23db79bb15.diff
LOG: [mlir][OpInterfacesGen][NFC] Add newline after traits declaration (#85633)
Slightly improve the readability of the tablegen-generated code.
Co-authored-by: Orest Chura <orest.chura at intel.com>
Added:
Modified:
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
Removed:
################################################################################
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