|
LLVM
4.0.0
|
Represents a particular available value that we know how to materialize. More...
Public Types | |
| enum | ValType { SimpleVal, LoadVal, MemIntrin, UndefVal } |
Public Member Functions | |
| bool | isSimpleValue () const |
| bool | isCoercedLoadValue () const |
| bool | isMemIntrinValue () const |
| bool | isUndefValue () const |
| Value * | getSimpleValue () const |
| LoadInst * | getCoercedLoadValue () const |
| MemIntrinsic * | getMemIntrinValue () const |
| Value * | MaterializeAdjustedValue (LoadInst *LI, Instruction *InsertPt, GVN &gvn) const |
| Emit code at the specified insertion point to adjust the value defined here to the specified type. More... | |
Static Public Member Functions | |
| static AvailableValue | get (Value *V, unsigned Offset=0) |
| static AvailableValue | getMI (MemIntrinsic *MI, unsigned Offset=0) |
| static AvailableValue | getLoad (LoadInst *LI, unsigned Offset=0) |
| static AvailableValue | getUndef () |
Public Attributes | |
| PointerIntPair< Value *, 2, ValType > | Val |
| V - The value that is live out of the block. More... | |
| unsigned | Offset |
| Offset - The byte offset in Val that is interesting for the load query. More... | |
Represents a particular available value that we know how to materialize.
Materialization of an AvailableValue never fails. An AvailableValue is implicitly associated with a rematerialization point which is the location of the instruction from which it was formed.
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
Definition at line 163 of file GVN.cpp.
Referenced by llvm::gvn::AvailableValueInBlock::getUndef().
|
inline |
|
inline |
|
inline |
|
inline |
| Value * AvailableValue::MaterializeAdjustedValue | ( | LoadInst * | LI, |
| Instruction * | InsertPt, | ||
| GVN & | gvn | ||
| ) | const |
Emit code at the specified insertion point to adjust the value defined here to the specified type.
This handles various coercion cases.
Definition at line 1165 of file GVN.cpp.
References assert(), llvm::dbgs(), DEBUG, llvm::UndefValue::get(), llvm::Module::getDataLayout(), GetLoadValueForLoad(), GetMemInstValueForLoad(), llvm::Instruction::getModule(), GetStoreValueForLoad(), llvm::Value::getType(), llvm::SPII::Load, and Offset.
| unsigned llvm::gvn::AvailableValue::Offset |
| PointerIntPair<Value *, 2, ValType> llvm::gvn::AvailableValue::Val |
1.8.6