2019-08-09 00:16:33 +02: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 03:20:48 +02:00
|
|
|
#include "deltas/ReduceArguments.h"
|
2019-09-18 23:45:05 +02:00
|
|
|
#include "deltas/ReduceBasicBlocks.h"
|
2019-08-09 00:16:33 +02:00
|
|
|
#include "deltas/ReduceFunctions.h"
|
2019-08-16 00:54:09 +02:00
|
|
|
#include "deltas/ReduceGlobalVars.h"
|
2019-09-11 00:09:58 +02:00
|
|
|
#include "deltas/ReduceMetadata.h"
|
2019-09-19 02:59:27 +02:00
|
|
|
#include "deltas/ReduceInstructions.h"
|
2019-08-09 00:16:33 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2019-08-16 00:54:09 +02:00
|
|
|
// TODO: Add CLI option to run only specified Passes (for unit tests)
|
2019-08-09 00:16:33 +02:00
|
|
|
inline void runDeltaPasses(TestRunner &Tester) {
|
|
|
|
reduceFunctionsDeltaPass(Tester);
|
2019-09-18 23:45:05 +02:00
|
|
|
reduceBasicBlocksDeltaPass(Tester);
|
2019-08-16 00:54:09 +02:00
|
|
|
reduceGlobalsDeltaPass(Tester);
|
2019-09-11 00:09:58 +02:00
|
|
|
reduceMetadataDeltaPass(Tester);
|
2019-09-12 03:20:48 +02:00
|
|
|
reduceArgumentsDeltaPass(Tester);
|
2019-09-19 02:59:27 +02:00
|
|
|
reduceInstructionsDeltaPass(Tester);
|
2019-08-09 00:16:33 +02:00
|
|
|
// TODO: Implement the remaining Delta Passes
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace llvm
|