[llvm-branch-commits] [llvm] [Lanai] Add LanaiCodeGenPassBuilder (PR #205998)
Jacques Pienaar via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Jun 28 23:14:58 PDT 2026
================
@@ -0,0 +1,27 @@
+//===----------------------------------------------------------------------===//
+//
+// 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 Lanai
+// backend.
+//
+//===----------------------------------------------------------------------===//
+
+// NOTE: NO INCLUDE GUARD DESIRED!
+
+#ifndef MACHINE_FUNCTION_PASS
+#define MACHINE_FUNCTION_PASS(NAME, CREATE_PASS)
+#endif
+MACHINE_FUNCTION_PASS("lanai-isel", LanaiISelDAGToDAGPass(*this))
+#undef MACHINE_FUNCTION_PASS
+
+#ifndef DUMMY_MACHINE_FUNCTION_PASS
----------------
jpienaar wrote:
You are addressing it right after, else I'd have suggested adding TODO here too.
https://github.com/llvm/llvm-project/pull/205998
More information about the llvm-branch-commits
mailing list