[llvm] [SandboxIR] PassManager (PR #107932)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 16:07:42 PDT 2024


================
@@ -0,0 +1,74 @@
+//===- PassManager.h --------------------------------------------*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// Registers and executes the Sandbox IR passes.
+//
+// The pass manager contains an ordered sequence of passes that it runs in
----------------
aeubanks wrote:

it seems error prone for the pass manager to not own the pass (e.g. stack references). e.g. in the new pass manager if you want to run a pass multiple times, you just create multiple instances of it

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


More information about the llvm-commits mailing list