summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-14 20:02:07 +0000
committerChris Lattner <sabre@nondot.org>2004-03-14 20:02:07 +0000
commit7546c3884a400b72d10fc19f120c6798b294a39d (patch)
tree943f14421d2c3bd21e4a995dfcb30854ce658cb0 /tools/bugpoint/BugDriver.h
parent41bc0b069c74afa05e92a97ff2c5d3cfa7426505 (diff)
downloadllvm-7546c3884a400b72d10fc19f120c6798b294a39d.tar.gz
llvm-7546c3884a400b72d10fc19f120c6798b294a39d.tar.bz2
llvm-7546c3884a400b72d10fc19f120c6798b294a39d.tar.xz
Add a method to extract a loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index f15481fde7..eb48eb7d9c 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -178,6 +178,11 @@ public:
///
Module *performFinalCleanups(Module *M, bool MayModifySemantics = false);
+ /// ExtractLoop - Given a module, extract up to one loop from it into a new
+ /// function. This returns null if there are no extractable loops in the
+ /// program or if the loop extractor crashes.
+ Module *ExtractLoop(Module *M);
+
private:
/// ParseInputFile - Given a bytecode or assembly input filename, parse and
/// return it, or return null if not possible.