LLVM  5.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 "llvm/Transforms/Scalar/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 and switch optimizations. More...
 
 SimplifyCFGPass (int BonusInstThreshold, bool LateSimplifyCFG)
 Construct a pass with a specific bonus threshold and optional switch optimizations. 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 and switch optimizations.

Definition at line 187 of file SimplifyCFGPass.cpp.

SimplifyCFGPass::SimplifyCFGPass ( int  BonusInstThreshold,
bool  LateSimplifyCFG 
)

Construct a pass with a specific bonus threshold and optional switch optimizations.

Definition at line 191 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: