LLVM API Documentation
#include <SSI.h>
Public Member Functions | |
| SSI () | |
| void | getAnalysisUsage (AnalysisUsage &AU) const |
| bool | runOnFunction (Function &) |
| void | createSSI (SmallVectorImpl< Instruction * > &value) |
Static Public Attributes | |
| static char | ID = 0 |
Definition at line 38 of file SSI.h.
| void SSI::getAnalysisUsage | ( | AnalysisUsage & | ) | const [virtual] |
getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.
Reimplemented from llvm::Pass.
Definition at line 39 of file SSI.cpp.
References llvm::AnalysisUsage::addRequired(), and llvm::AnalysisUsage::setPreservesCFG().
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
Implements llvm::FunctionPass.
| void SSI::createSSI | ( | SmallVectorImpl< Instruction * > & | value | ) |
This methods creates the SSI representation for the list of values received. It will only create SSI representation if a value is used in a to decide a branch. Repeated values are created only once.
Definition at line 54 of file SSI.cpp.
References llvm::BitVector::any(), and llvm::DominatorTree::getRoot().