Diego Trevino Ferrer | ddc64eb | 2019-08-08 22:16:33 +0000 | [diff] [blame] | 1 | //===- DeltaManager.h - Runs Delta Passes to reduce Input -----------------===// |
| 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 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file calls each specialized Delta pass in order to reduce the input IR |
| 10 | // file. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "TestRunner.h" |
| 15 | #include "deltas/Delta.h" |
| 16 | #include "deltas/ReduceFunctions.h" |
Diego Trevino Ferrer | 0ffe687 | 2019-08-15 22:54:09 +0000 | [diff] [blame] | 17 | #include "deltas/ReduceGlobalVars.h" |
David Blaikie | 477c1df | 2019-09-10 22:09:58 +0000 | [diff] [blame^] | 18 | #include "deltas/ReduceMetadata.h" |
Diego Trevino Ferrer | ddc64eb | 2019-08-08 22:16:33 +0000 | [diff] [blame] | 19 | |
| 20 | namespace llvm { |
| 21 | |
Diego Trevino Ferrer | 0ffe687 | 2019-08-15 22:54:09 +0000 | [diff] [blame] | 22 | // TODO: Add CLI option to run only specified Passes (for unit tests) |
Diego Trevino Ferrer | ddc64eb | 2019-08-08 22:16:33 +0000 | [diff] [blame] | 23 | inline void runDeltaPasses(TestRunner &Tester) { |
| 24 | reduceFunctionsDeltaPass(Tester); |
Diego Trevino Ferrer | 0ffe687 | 2019-08-15 22:54:09 +0000 | [diff] [blame] | 25 | reduceGlobalsDeltaPass(Tester); |
David Blaikie | 477c1df | 2019-09-10 22:09:58 +0000 | [diff] [blame^] | 26 | reduceMetadataDeltaPass(Tester); |
Diego Trevino Ferrer | ddc64eb | 2019-08-08 22:16:33 +0000 | [diff] [blame] | 27 | // TODO: Implement the remaining Delta Passes |
| 28 | } |
| 29 | |
| 30 | } // namespace llvm |