LLVM  4.0.0
Public Member Functions | List of all members
llvm::SimplifyCFGPass Class Reference

A pass to simplify and canonicalize the CFG of a function. More...

#include <SimplifyCFG.h>

Inheritance diagram for llvm::SimplifyCFGPass:
[legend]
Collaboration diagram for llvm::SimplifyCFGPass:
[legend]

Public Member Functions

 SimplifyCFGPass ()
 Construct a pass with the default thresholds. More...
 
 SimplifyCFGPass (int BonusInstThreshold)
 Construct a pass with a specific bonus threshold. More...
 
PreservedAnalyses run (Function &F, FunctionAnalysisManager &AM)
 Run the pass over the function. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::PassInfoMixin< SimplifyCFGPass >
static StringRef name ()
 Gets the name of the pass we are mixed into. More...
 

Detailed Description

A pass to simplify and canonicalize the CFG of a function.

This pass iteratively simplifies the entire CFG of a function, removing unnecessary control flows and bringing it into the canonical form expected by the rest of the mid-level optimizer.

Definition at line 28 of file SimplifyCFG.h.

Constructor & Destructor Documentation

SimplifyCFGPass::SimplifyCFGPass ( )

Construct a pass with the default thresholds.

Definition at line 183 of file SimplifyCFGPass.cpp.

SimplifyCFGPass::SimplifyCFGPass ( int  BonusInstThreshold)

Construct a pass with a specific bonus threshold.

Definition at line 186 of file SimplifyCFGPass.cpp.

Member Function Documentation

PreservedAnalyses SimplifyCFGPass::run ( Function F,
FunctionAnalysisManager AM 
)

The documentation for this class was generated from the following files: