summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce/DeltaManager.h
diff options
context:
space:
mode:
authorDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 21:37:11 +0000
committerDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 21:37:11 +0000
commitb80c4c82d6d4682d2cb177cdffd1aa951322d26b (patch)
treee3d328ea48a8565a842c34d8693815fc86e9d7e1 /llvm/tools/llvm-reduce/DeltaManager.h
parente0eed65e068ea053ab6a394c07c2a6da96ab7796 (diff)
downloadbcm5719-llvm-b80c4c82d6d4682d2cb177cdffd1aa951322d26b.tar.gz
bcm5719-llvm-b80c4c82d6d4682d2cb177cdffd1aa951322d26b.zip
Added Delta IR Reduction Tool
Summary: Tool parses input IR file, and runs the delta debugging algorithm to reduce the functions inside the input file. Reviewers: alexshap, chandlerc Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63672 > llvm-svn: 368071 llvm-svn: 368214
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.h')
-rw-r--r--llvm/tools/llvm-reduce/DeltaManager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/tools/llvm-reduce/DeltaManager.h b/llvm/tools/llvm-reduce/DeltaManager.h
new file mode 100644
index 00000000000..28d1cd989e3
--- /dev/null
+++ b/llvm/tools/llvm-reduce/DeltaManager.h
@@ -0,0 +1,25 @@
+//===- 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"
+#include "deltas/ReduceFunctions.h"
+
+namespace llvm {
+
+inline void runDeltaPasses(TestRunner &Tester) {
+ reduceFunctionsDeltaPass(Tester);
+ // TODO: Implement the remaining Delta Passes
+}
+
+} // namespace llvm
OpenPOWER on IntegriCloud