[llvm-commits] CVS: llvm/include/llvm/Transforms/Scalar.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 8 16:07:01 PDT 2002
Changes in directory llvm/include/llvm/Transforms:
Scalar.h updated: 1.13 -> 1.14
---
Log message:
Expose isCriticalEdge & SplitCriticalEdge methods from crit-edges pass
---
Diffs of the changes:
Index: llvm/include/llvm/Transforms/Scalar.h
diff -u llvm/include/llvm/Transforms/Scalar.h:1.13 llvm/include/llvm/Transforms/Scalar.h:1.14
--- llvm/include/llvm/Transforms/Scalar.h:1.13 Thu Sep 26 11:17:33 2002
+++ llvm/include/llvm/Transforms/Scalar.h Tue Oct 8 16:06:24 2002
@@ -11,6 +11,7 @@
class Pass;
class GetElementPtrInst;
class PassInfo;
+class TerminatorInst;
//===----------------------------------------------------------------------===//
//
@@ -188,6 +189,21 @@
Pass *createBreakCriticalEdgesPass();
extern const PassInfo *BreakCriticalEdgesID;
+// The BreakCriticalEdges pass also exposes some low-level functionality that
+// may be used by other passes.
+
+/// isCriticalEdge - Return true if the specified edge is a critical edge.
+/// Critical edges are edges from a block with multiple successors to a block
+/// with multiple predecessors.
+///
+bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum);
+
+/// SplitCriticalEdge - Insert a new node node to split the critical edge. This
+/// will update DominatorSet, ImmediateDominator and DominatorTree information
+/// if a pass is specified, thus calling this pass will not invalidate these
+/// analyses.
+///
+void SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P = 0);
//===----------------------------------------------------------------------===//
//
More information about the llvm-commits
mailing list