Skip to content

[mlir][OpInterfacesGen][NFC] Add newline after traits declaration #85633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

andrey-golubev
Copy link
Contributor

Slightly improve the readability of the tablegen-generated code.

Slightly improve the readability of the tablegen-generated code.

Co-authored-by: Orest Chura <[email protected]>
@llvmbot llvmbot added mlir:core MLIR Core Infrastructure mlir labels Mar 18, 2024
@andrey-golubev
Copy link
Contributor Author

@zero9178 @ftynse fyi

@llvmbot
Copy link
Member

llvmbot commented Mar 18, 2024

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-mlir-core

Author: Andrei Golubev (andrey-golubev)

Changes

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 --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";

@andrey-golubev
Copy link
Contributor Author

@zero9178 could you merge as well? (I lack write access)

@zero9178 zero9178 merged commit 39c739e into llvm:main Mar 18, 2024
@andrey-golubev andrey-golubev deleted the ods_newline branch March 18, 2024 19:36
chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
…vm#85633)

Slightly improve the readability of the tablegen-generated code.

Co-authored-by: Orest Chura <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:core MLIR Core Infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants