LLVM  7.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::gvn::AvailableValueInBlock Struct Reference

Represents an AvailableValue which can be rematerialized at the end of the associated BasicBlock. More...

Collaboration diagram for llvm::gvn::AvailableValueInBlock:
[legend]

Public Member Functions

Value * MaterializeAdjustedValue (LoadInst *LI, GVN &gvn) const
 Emit code at the end of this block to adjust the value defined here to the specified type. More...
 

Static Public Member Functions

static AvailableValueInBlock get (BasicBlock *BB, AvailableValue &&AV)
 
static AvailableValueInBlock get (BasicBlock *BB, Value *V, unsigned Offset=0)
 
static AvailableValueInBlock getUndef (BasicBlock *BB)
 

Public Attributes

BasicBlock * BB
 BB - The basic block in question. More...
 
AvailableValue AV
 AV - The actual available value. More...
 

Detailed Description

Represents an AvailableValue which can be rematerialized at the end of the associated BasicBlock.

Definition at line 231 of file GVN.cpp.

Member Function Documentation

◆ get() [1/2]

static AvailableValueInBlock llvm::gvn::AvailableValueInBlock::get ( BasicBlock *  BB,
AvailableValue &&  AV 
)
inlinestatic

Definition at line 238 of file GVN.cpp.

References AV, and BB.

Referenced by reportMayClobberedLoad().

◆ get() [2/2]

static AvailableValueInBlock llvm::gvn::AvailableValueInBlock::get ( BasicBlock *  BB,
Value *  V,
unsigned  Offset = 0 
)
inlinestatic

Definition at line 245 of file GVN.cpp.

References llvm::gvn::AvailableValue::get().

◆ getUndef()

static AvailableValueInBlock llvm::gvn::AvailableValueInBlock::getUndef ( BasicBlock *  BB)
inlinestatic

Definition at line 250 of file GVN.cpp.

References llvm::gvn::AvailableValue::getUndef().

Referenced by reportMayClobberedLoad().

◆ MaterializeAdjustedValue()

Value* llvm::gvn::AvailableValueInBlock::MaterializeAdjustedValue ( LoadInst *  LI,
GVN &  gvn 
) const
inline

Member Data Documentation

◆ AV

AvailableValue llvm::gvn::AvailableValueInBlock::AV

AV - The actual available value.

Definition at line 236 of file GVN.cpp.

Referenced by get().

◆ BB

BasicBlock* llvm::gvn::AvailableValueInBlock::BB

BB - The basic block in question.

Definition at line 233 of file GVN.cpp.

Referenced by get().


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