[Mlir-commits] [mlir] [MLIR][WASM] Introduce an importer for Wasm binaries (PR #152131)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Aug 8 16:19:45 PDT 2025


================
@@ -0,0 +1,73 @@
+//===- WasmBinaryEncoding.h - Byte encodings for Wasm binary format ===----===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+// Define encodings for WebAssembly instructions, types, etc from the
+// WebAssembly binary format.
+//
+// Each encoding is defined in the WebAssembly binary specification.
+//
+//===----------------------------------------------------------------------===//
+#ifndef MLIR_TARGET_WASMBINARYENCODING
+#define MLIR_TARGET_WASMBINARYENCODING
+
+#include <cstddef>
+namespace mlir {
+struct WasmBinaryEncoding {
+  /// Byte encodings for WASM instructions.
----------------
MattPD wrote:

Minor Nit again, but FWIW, the preferred spelling (used by the Wasm original paper and the spec co-authors) is `Wasm` (not "WASM": it's not an acronym), cf., e.g., https://www.youtube.com/watch?v=CHj0AoUN82k

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


More information about the Mlir-commits mailing list