aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-26 16:17:33 +0000
committerChris Lattner <sabre@nondot.org>2002-09-26 16:17:33 +0000
commitf6b684c50510a13fd5b5823e84207f0f8ed0c92e (patch)
tree7def5a46d9b53993f2b98670dec81b4e5edc6f9f
parent38acf9e85d25f022309372c26d54ecb7c77840f2 (diff)
Checkin new loop-preheader insertion pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3943 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Transforms/Scalar.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 79f10298a5..3161d68b0a 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -188,6 +188,19 @@ Pass *createCFGSimplificationPass();
Pass *createBreakCriticalEdgesPass();
extern const PassInfo *BreakCriticalEdgesID;
+
+//===----------------------------------------------------------------------===//
+//
+// LoopPreheaders pass - Insert Pre-header blocks into the CFG for every
+// function in the module. This pass updates dominator information, loop
+// information, and does not add critical edges to the CFG.
+//
+// AU.addRequiredID(LoopPreheadersID);
+//
+Pass *createLoopPreheaderInsertionPass();
+extern const PassInfo *LoopPreheadersID;
+
+
//===----------------------------------------------------------------------===//
// These two passes convert malloc and free instructions to and from %malloc &
// %free function calls.