[Mlir-commits] [mlir] [MLIR][WASM] Introduce the RaiseWasmMLIRPass to lower WasmSSA MLIR to core dialects (PR #164562)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 22 00:02:15 PDT 2025
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 origin/main HEAD --extensions cpp,h -- mlir/include/mlir/Conversion/RaiseWasm/RaiseWasmMLIR.h mlir/lib/Conversion/RaiseWasm/RaiseWasmMLIR.cpp mlir/include/mlir/Conversion/Passes.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Conversion/RaiseWasm/RaiseWasmMLIR.h b/mlir/include/mlir/Conversion/RaiseWasm/RaiseWasmMLIR.h
index a54fc45b5..3faf9dc25 100644
--- a/mlir/include/mlir/Conversion/RaiseWasm/RaiseWasmMLIR.h
+++ b/mlir/include/mlir/Conversion/RaiseWasm/RaiseWasmMLIR.h
@@ -19,8 +19,10 @@ class RewritePatternSet;
#define GEN_PASS_DECL_RAISEWASMMLIR
#include "mlir/Conversion/Passes.h.inc"
-/// Collect a set of patterns to convert from the Wasm dialect to standard dialects.
-void populateRaiseWasmMLIRConversionPatterns(TypeConverter&, RewritePatternSet &);
+/// Collect a set of patterns to convert from the Wasm dialect to standard
+/// dialects.
+void populateRaiseWasmMLIRConversionPatterns(TypeConverter &,
+ RewritePatternSet &);
/// Create a pass to convert ops from WasmDialect to standard dialects.
std::unique_ptr<Pass> createRaiseWasmMLIRPass();
diff --git a/mlir/lib/Conversion/RaiseWasm/RaiseWasmMLIR.cpp b/mlir/lib/Conversion/RaiseWasm/RaiseWasmMLIR.cpp
index d67572f3e..c73023078 100644
--- a/mlir/lib/Conversion/RaiseWasm/RaiseWasmMLIR.cpp
+++ b/mlir/lib/Conversion/RaiseWasm/RaiseWasmMLIR.cpp
@@ -13,8 +13,6 @@
#include "mlir/Conversion/RaiseWasm/RaiseWasmMLIR.h"
-
-#include "llvm/Support/LogicalResult.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
@@ -27,6 +25,7 @@
#include "mlir/IR/ValueRange.h"
#include "mlir/Transforms/DialectConversion.h"
#include "mlir/Transforms/Passes.h"
+#include "llvm/Support/LogicalResult.h"
#include <optional>
#define DEBUG_TYPE "wasm-convert"
``````````
</details>
https://github.com/llvm/llvm-project/pull/164562
More information about the Mlir-commits
mailing list