[clang] Add test for CWG190 "Layout-compatible POD-struct types" (#121668)
[llvm-project.git] / llvm / lib / SandboxIR / PassManager.cpp
blobaaa49e0f6912b6113ca4a172ea1721f0fd46aa14
1 //===- PassManager.cpp - Runs a pipeline of Sandbox IR passes -------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "llvm/SandboxIR/PassManager.h"
11 namespace llvm::sandboxir {
13 bool FunctionPassManager::runOnFunction(Function &F, const Analyses &A) {
14 bool Change = false;
15 for (auto &Pass : Passes) {
16 Change |= Pass->runOnFunction(F, A);
17 // TODO: run the verifier.
19 // TODO: Check ChangeAll against hashes before/after.
20 return Change;
23 bool RegionPassManager::runOnRegion(Region &R, const Analyses &A) {
24 bool Change = false;
25 for (auto &Pass : Passes) {
26 Change |= Pass->runOnRegion(R, A);
27 // TODO: run the verifier.
29 // TODO: Check ChangeAll against hashes before/after.
30 return Change;
33 } // namespace llvm::sandboxir