[llvm-branch-commits] [WebAssembly] Introduce CodeGenPassBuilder (PR #208983)

Heejin Ahn via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 13 23:56:34 PDT 2026


================
@@ -0,0 +1,18 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// This file is used as the registry of passes that are part of the WebAssembly
+// backend.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef MACHINE_FUNCTION_PASS
+#define MACHINE_FUNCTION_PASS(NAME, CREATE_PASS)
+#endif
+MACHINE_FUNCTION_PASS("wasm-isel", WebAssemblyISelDAGToDAGPass(*this, getOptLevel()))
----------------
aheejin wrote:

What is this file for, and why does it only have ISelDAGToDAGPass? Don't we need others?

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


More information about the llvm-branch-commits mailing list