[Mlir-commits] [mlir] Strenghten bytecode roundtrip test (PR #82946)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Feb 25 16:51:24 PST 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 bc6b5be6a298ab094d1bb41f393ca422feddd298 39f3a099d458b3341f2961ddd0c0ef0a102ed3b0 -- mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp b/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
index 36fe09d20b..6751022fde 100644
--- a/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
+++ b/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
@@ -281,8 +281,8 @@ static LogicalResult doVerifyRoundTrip(Operation *op,
   if (failed(initializeNewContext(roundtripContext)))
     return failure();
 
-  auto parseMLIRString =
-      [&](const std::string &stringBuffer, MLIRContext &context) -> OwningOpRef<Operation *> {
+  auto parseMLIRString = [&](const std::string &stringBuffer,
+                             MLIRContext &context) -> OwningOpRef<Operation *> {
     FallbackAsmResourceMap fallbackResourceMap;
     ParserConfig parseConfig(&context, /*verifyAfterParse=*/true,
                              &fallbackResourceMap);

``````````

</details>


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


More information about the Mlir-commits mailing list