1 //===- DeltaManager.h - Runs Delta Passes to reduce Input -----------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file calls each specialized Delta pass in order to reduce the input IR
12 //===----------------------------------------------------------------------===//
14 #include "TestRunner.h"
15 #include "deltas/Delta.h"
16 #include "deltas/ReduceFunctions.h"
17 #include "deltas/ReduceGlobalVars.h"
21 // TODO: Add CLI option to run only specified Passes (for unit tests)
22 inline void runDeltaPasses(TestRunner
&Tester
) {
23 outs() << "Reducing functions...\n";
24 reduceFunctionsDeltaPass(Tester
);
25 outs() << "Reducing GVs...\n";
26 reduceGlobalsDeltaPass(Tester
);
27 // TODO: Implement the remaining Delta Passes