|
LLVM
3.7.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, AnalysisManager< Function > *AM) |
| Run the pass over the function. More... | |
Static Public Member Functions | |
| static StringRef | name () |
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 174 of file SimplifyCFGPass.cpp.
| SimplifyCFGPass::SimplifyCFGPass | ( | int | BonusInstThreshold | ) |
Construct a pass with a specific bonus threshold.
Definition at line 177 of file SimplifyCFGPass.cpp.
|
inlinestatic |
Definition at line 32 of file SimplifyCFG.h.
| PreservedAnalyses SimplifyCFGPass::run | ( | Function & | F, |
| AnalysisManager< Function > * | AM | ||
| ) |
Run the pass over the function.
Definition at line 180 of file SimplifyCFGPass.cpp.
References llvm::PreservedAnalyses::all(), F(), llvm::detail::AnalysisManagerBase< DerivedT, IRUnitT >::getResult(), llvm::PreservedAnalyses::none(), and simplifyFunctionCFG().
1.8.6