1 //===- llvm/Analysis/SimplifyCFG.h - CFG Simplification XForms ---*- C++ -*--=//
3 // This file provides several routines that are useful for simplifying CFGs in
6 //===----------------------------------------------------------------------===//
8 #ifndef LLVM_ANALYSIS_SIMPLIFY_CFG_H
9 #define LLVM_ANALYSIS_SIMPLIFY_CFG_H
16 // UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new
17 // BasicBlock, and converting all returns to unconditional branches to this
18 // new basic block. The singular exit node is returned.
20 // If there are no return stmts in the Method, a null pointer is returned.
22 BasicBlock *UnifyAllExitNodes(Method *M);
24 } // End Namespace cfg