diff options
author | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-07 00:00:52 +0000 |
---|---|---|
committer | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-07 00:00:52 +0000 |
commit | 099e5c5bba23e06a7840d79ffcf66e9cd98cd52c (patch) | |
tree | c9bf3c05ed080c134d725ba378a071451c737ea9 /llvm/tools/llvm-reduce/DeltaManager.h | |
parent | feef101ac2f6fe4f75670613dee7ab8408d93b2b (diff) | |
download | bcm5719-llvm-099e5c5bba23e06a7840d79ffcf66e9cd98cd52c.tar.gz bcm5719-llvm-099e5c5bba23e06a7840d79ffcf66e9cd98cd52c.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: 368112
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.h')
-rw-r--r-- | llvm/tools/llvm-reduce/DeltaManager.h | 26 |
1 files changed, 26 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..027685e4120 --- /dev/null +++ b/llvm/tools/llvm-reduce/DeltaManager.h @@ -0,0 +1,26 @@ +//===- llvm-reduce.cpp - The LLVM Delta Reduction utility -----------------===// +// +// 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 class calls each specialized Delta pass by passing it as a template to +// the generic Delta Pass. +// +//===----------------------------------------------------------------------===// + +#include "TestRunner.h" +#include "deltas/Delta.h" +#include "deltas/RemoveFunctions.h" + +namespace llvm { + +inline void runDeltaPasses(TestRunner &Tester) { + outs() << "Reducing functions...\n"; + Delta<RemoveFunctions>::run(Tester); + // TODO: Implement the rest of the Delta Passes +} + +} // namespace llvm |