aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Transforms/Scalar.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 20dd48e2de..d952ead2d7 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -175,6 +175,16 @@ Pass *createCorrelatedExpressionEliminationPass();
//
Pass *createCFGSimplificationPass();
+//===----------------------------------------------------------------------===//
+//
+// BreakCriticalEdges pass - Break all of the critical edges in the CFG by
+// inserting a dummy basic block. This pass may be "required" by passes that
+// cannot deal with critical edges. For this usage, the structure type is
+// forward declared. This pass obviously invalidates the CFG, but can update
+// forward dominator (set, immediate dominators, and tree) information.
+//
+class BreakCriticalEdges;
+Pass *createBreakCriticalEdgesPass();
//===----------------------------------------------------------------------===//
// These two passes convert malloc and free instructions to and from %malloc &