2019-08-09 06:16:33 +08:00
|
|
|
//===- DeltaManager.h - Runs Delta Passes to reduce Input -----------------===//
|
|
|
|
//
|
|
|
|
// 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 calls each specialized Delta pass in order to reduce the input IR
|
|
|
|
// file.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "TestRunner.h"
|
|
|
|
#include "deltas/Delta.h"
|
2019-09-12 09:20:48 +08:00
|
|
|
#include "deltas/ReduceArguments.h"
|
2019-09-19 05:45:05 +08:00
|
|
|
#include "deltas/ReduceBasicBlocks.h"
|
2019-08-09 06:16:33 +08:00
|
|
|
#include "deltas/ReduceFunctions.h"
|
2019-08-16 06:54:09 +08:00
|
|
|
#include "deltas/ReduceGlobalVars.h"
|
2020-02-02 23:38:14 +08:00
|
|
|
#include "deltas/ReduceMetadata.h"
|
2020-02-06 03:15:11 +08:00
|
|
|
#include "deltas/ReduceInstructions.h"
|
2019-08-09 06:16:33 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2019-08-16 06:54:09 +08:00
|
|
|
// TODO: Add CLI option to run only specified Passes (for unit tests)
|
2019-08-09 06:16:33 +08:00
|
|
|
inline void runDeltaPasses(TestRunner &Tester) {
|
|
|
|
reduceFunctionsDeltaPass(Tester);
|
2019-09-19 05:45:05 +08:00
|
|
|
reduceBasicBlocksDeltaPass(Tester);
|
2019-08-16 06:54:09 +08:00
|
|
|
reduceGlobalsDeltaPass(Tester);
|
2019-09-11 06:09:58 +08:00
|
|
|
reduceMetadataDeltaPass(Tester);
|
2019-09-12 09:20:48 +08:00
|
|
|
reduceArgumentsDeltaPass(Tester);
|
2019-09-19 08:59:27 +08:00
|
|
|
reduceInstructionsDeltaPass(Tester);
|
2019-08-09 06:16:33 +08:00
|
|
|
// TODO: Implement the remaining Delta Passes
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace llvm
|