LLVM API Documentation

llvm::SSI Class Reference

#include <SSI.h>

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

List of all members.

Public Member Functions

 SSI ()
void getAnalysisUsage (AnalysisUsage &AU) const
bool runOnFunction (Function &)
void createSSI (SmallVectorImpl< Instruction * > &value)

Static Public Attributes

static char ID = 0


Detailed Description

Definition at line 38 of file SSI.h.


Constructor & Destructor Documentation

llvm::SSI::SSI (  )  [inline]

Definition at line 41 of file SSI.h.


Member Function Documentation

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().

bool SSI::runOnFunction ( Function &  F  )  [virtual]

runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.

Implements llvm::FunctionPass.

Definition at line 45 of file SSI.cpp.

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().


Member Data Documentation

char SSI::ID = 0 [static]

Definition at line 40 of file SSI.h.


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