|
LLVM
4.0.0
|
A pass to simplify and canonicalize the CFG of a function. More...
#include <SimplifyCFG.h>
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... | |
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.
| 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.
| PreservedAnalyses SimplifyCFGPass::run | ( | Function & | F, |
| FunctionAnalysisManager & | AM | ||
| ) |
Run the pass over the function.
Definition at line 189 of file SimplifyCFGPass.cpp.
References llvm::PreservedAnalyses::all(), F, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), llvm::PreservedAnalyses::preserve(), and simplifyFunctionCFG().
1.8.6