summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce/TestRunner.h
diff options
context:
space:
mode:
authorDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 21:51:54 +0000
committerDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 21:51:54 +0000
commitd4d00ae6a254f6ee42a044cf5c7b804fd1ec60b2 (patch)
tree5b078c7b27885bc535d2da39889647310df86a90 /llvm/tools/llvm-reduce/TestRunner.h
parent127af283abee88774c45bccdaafc4a0b52d59d5d (diff)
downloadbcm5719-llvm-d4d00ae6a254f6ee42a044cf5c7b804fd1ec60b2.tar.gz
bcm5719-llvm-d4d00ae6a254f6ee42a044cf5c7b804fd1ec60b2.zip
Revert Added Delta IR Reduction Tool
This reverts r368071 (git commit a2584978f5bb41973d65a145b0d9459b81e3ac6d) llvm-svn: 368217
Diffstat (limited to 'llvm/tools/llvm-reduce/TestRunner.h')
-rw-r--r--llvm/tools/llvm-reduce/TestRunner.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/llvm/tools/llvm-reduce/TestRunner.h b/llvm/tools/llvm-reduce/TestRunner.h
deleted file mode 100644
index 4d5b5bb0375..00000000000
--- a/llvm/tools/llvm-reduce/TestRunner.h
+++ /dev/null
@@ -1,56 +0,0 @@
-//===-- tools/llvm-reduce/TestRunner.h ---------------------------*- C++ -*-===/
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_TOOLS_LLVMREDUCE_TESTRUNNER_H
-#define LLVM_TOOLS_LLVMREDUCE_TESTRUNNER_H
-
-#include "llvm/ADT/SmallString.h"
-#include "llvm/IR/Module.h"
-#include "llvm/Support/Error.h"
-#include "llvm/Support/FileSystem.h"
-#include "llvm/Support/Path.h"
-#include "llvm/Support/Program.h"
-#include <vector>
-
-namespace llvm {
-
-// This class contains all the info necessary for running the provided
-// interesting-ness test, as well as the most reduced module and its
-// respective filename.
-class TestRunner {
-public:
- TestRunner(StringRef TestName, std::vector<std::string> TestArgs,
- StringRef ReducedFilepath);
-
- /// Runs the interesting-ness test for the specified file
- /// @returns 0 if test was successful, 1 if otherwise
- int run(StringRef Filename);
-
- /// Filename to the most reduced testcase
- StringRef getReducedFilepath() const { return ReducedFilepath; }
- /// Directory where tmp files are created
- StringRef getTmpDir() const { return TmpDirectory; }
- /// Returns the most reduced version of the original testcase
- Module *getProgram() const { return Program.get(); }
-
- void setReducedFilepath(SmallString<128> F) {
- ReducedFilepath = std::move(F);
- }
- void setProgram(std::unique_ptr<Module> P) { Program = std::move(P); }
-
-private:
- SmallString<128> TestName;
- std::vector<std::string> TestArgs;
- SmallString<128> ReducedFilepath;
- SmallString<128> TmpDirectory;
- std::unique_ptr<Module> Program;
-};
-
-} // namespace llvm
-
-#endif
OpenPOWER on IntegriCloud