llvm::LazyValueInfo Class Reference

#include <LazyValueInfo.h>

List of all members.

Public Types

enum  Tristate { Unknown = -1, False = 0, True = 1 }
 Tristate - This is used to return true/false/dunno results.

Public Member Functions

Tristate getPredicateOnEdge (unsigned Pred, Value *V, Constant *C, BasicBlock *FromBB, BasicBlock *ToBB)
Constant * getConstant (Value *V, BasicBlock *BB)
Constant * getConstantOnEdge (Value *V, BasicBlock *FromBB, BasicBlock *ToBB)
virtual void getAnalysisUsage (AnalysisUsage &AU) const
virtual void releaseMemory ()
virtual bool runOnFunction (Function &F)

Static Public Attributes

static char ID


Detailed Description

LazyValueInfo - This pass computes, caches, and vends lazy value constraint information.

Member Function Documentation

Constant* llvm::LazyValueInfo::getConstant ( Value *  V,
BasicBlock *  BB 
)

getConstant - Determine whether the specified value is known to be a constant at the end of the specified block. Return null if not.

Constant* llvm::LazyValueInfo::getConstantOnEdge ( Value *  V,
BasicBlock *  FromBB,
BasicBlock *  ToBB 
)

getConstantOnEdge - Determine whether the specified value is known to be a constant on the specified edge. Return null if not.

Tristate llvm::LazyValueInfo::getPredicateOnEdge ( unsigned  Pred,
Value *  V,
Constant *  C,
BasicBlock *  FromBB,
BasicBlock *  ToBB 
)

getPredicateOnEdge - Determine whether the specified value comparison with a constant is known to be true or false on the specified CFG edge. Pred is a CmpInst predicate.


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

Generated on Fri Mar 19 01:41:24 2010 by  doxygen 1.5.8