[Mlir-commits] [mlir] [mlir] load dialect in parser for optional parameters (PR #96667)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jul 3 10:39:31 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 5413a2bb843a3c71e0891aa5984afd63cd580dea 7b59a7d2e6506e44debd4a212a35b8ede4817042 -- mlir/include/mlir/IR/DialectImplementation.h mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/IR/DialectImplementation.h b/mlir/include/mlir/IR/DialectImplementation.h
index 549b122616..303564bf66 100644
--- a/mlir/include/mlir/IR/DialectImplementation.h
+++ b/mlir/include/mlir/IR/DialectImplementation.h
@@ -14,8 +14,8 @@
#ifndef MLIR_IR_DIALECTIMPLEMENTATION_H
#define MLIR_IR_DIALECTIMPLEMENTATION_H
-#include <type_traits>
#include "mlir/IR/OpImplementation.h"
+#include <type_traits>
namespace {
@@ -26,7 +26,8 @@ struct HasStaticDialectName : std::false_type {};
template <typename T>
struct HasStaticDialectName<
T, typename std::enable_if<
- std::is_same<::llvm::StringLiteral, std::decay_t<decltype(T::dialectName)>>::value,
+ std::is_same<::llvm::StringLiteral,
+ std::decay_t<decltype(T::dialectName)>>::value,
void>::type> : std::true_type {};
} // namespace
``````````
</details>
https://github.com/llvm/llvm-project/pull/96667
More information about the Mlir-commits
mailing list