New file, includes method to merge exit nodes together

llvm-svn: 141
This commit is contained in:
Chris Lattner 2001-07-06 16:57:52 +00:00
parent 5afd71b109
commit a6c8b30e9d
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
//===- llvm/Analysis/SimplifyCFG.h - CFG Simplification XForms ---*- C++ -*--=//
//
// This file provides several routines that are useful for simplifying CFGs in
// various ways...
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_SIMPLIFY_CFG_H
#define LLVM_ANALYSIS_SIMPLIFY_CFG_H
class BasicBlock;
class Method;
namespace cfg {
// UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new
// BasicBlock, and converting all returns to unconditional branches to this
// new basic block. The singular exit node is returned.
//
// If there are no return stmts in the Method, a null pointer is returned.
//
BasicBlock *UnifyAllExitNodes(Method *M);
} // End Namespace cfg
#endif