mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
New file, includes method to merge exit nodes together
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c348d21bf6
commit
87d0461d5b
27
include/llvm/Analysis/SimplifyCFG.h
Normal file
27
include/llvm/Analysis/SimplifyCFG.h
Normal 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
|
Loading…
Reference in New Issue
Block a user