LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::GVNExpression::LoadExpression Class Referencefinal

#include "llvm/Transforms/Scalar/GVNExpression.h"

Inheritance diagram for llvm::GVNExpression::LoadExpression:
Inheritance graph
[legend]
Collaboration diagram for llvm::GVNExpression::LoadExpression:
Collaboration graph
[legend]

Public Member Functions

 LoadExpression (unsigned NumOperands, LoadInst *L, const MemoryAccess *MemoryLeader)
 
 LoadExpression (enum ExpressionType EType, unsigned NumOperands, LoadInst *L, const MemoryAccess *MemoryLeader)
 
 LoadExpression ()=delete
 
 LoadExpression (const LoadExpression &)=delete
 
LoadExpressionoperator= (const LoadExpression &)=delete
 
 ~LoadExpression () override
 
LoadInstgetLoadInst () const
 
void setLoadInst (LoadInst *L)
 
unsigned getAlignment () const
 
void setAlignment (unsigned Align)
 
bool equals (const Expression &Other) const override
 
bool exactlyEquals (const Expression &Other) const override
 
void printInternal (raw_ostream &OS, bool PrintEType) const override
 
- Public Member Functions inherited from llvm::GVNExpression::MemoryExpression
 MemoryExpression (unsigned NumOperands, enum ExpressionType EType, const MemoryAccess *MemoryLeader)
 
 MemoryExpression ()=delete
 
 MemoryExpression (const MemoryExpression &)=delete
 
MemoryExpressionoperator= (const MemoryExpression &)=delete
 
hash_code getHashValue () const override
 
const MemoryAccessgetMemoryLeader () const
 
void setMemoryLeader (const MemoryAccess *ML)
 
- Public Member Functions inherited from llvm::GVNExpression::BasicExpression
 BasicExpression (unsigned NumOperands)
 
 BasicExpression (unsigned NumOperands, ExpressionType ET)
 
 BasicExpression ()=delete
 
 BasicExpression (const BasicExpression &)=delete
 
BasicExpressionoperator= (const BasicExpression &)=delete
 
 ~BasicExpression () override
 
void swapOperands (unsigned First, unsigned Second)
 Swap two operands. More...
 
ValuegetOperand (unsigned N) const
 
void setOperand (unsigned N, Value *V)
 
unsigned getNumOperands () const
 
op_iterator op_begin ()
 
op_iterator op_end ()
 
const_op_iterator op_begin () const
 
const_op_iterator op_end () const
 
iterator_range< op_iteratoroperands ()
 
iterator_range< const_op_iteratoroperands () const
 
void op_push_back (Value *Arg)
 
bool op_empty () const
 
void allocateOperands (RecyclerType &Recycler, BumpPtrAllocator &Allocator)
 
void deallocateOperands (RecyclerType &Recycler)
 
void setType (Type *T)
 
TypegetType () const
 
- Public Member Functions inherited from llvm::GVNExpression::Expression
 Expression (ExpressionType ET=ET_Base, unsigned O=~2U)
 
 Expression (const Expression &)=delete
 
Expressionoperator= (const Expression &)=delete
 
virtual ~Expression ()
 
bool operator!= (const Expression &Other) const
 
bool operator== (const Expression &Other) const
 
hash_code getComputedHash () const
 
unsigned getOpcode () const
 
void setOpcode (unsigned opcode)
 
ExpressionType getExpressionType () const
 
void print (raw_ostream &OS) const
 
LLVM_DUMP_METHOD void dump () const
 

Static Public Member Functions

static bool classof (const Expression *EB)
 
- Static Public Member Functions inherited from llvm::GVNExpression::MemoryExpression
static bool classof (const Expression *EB)
 
- Static Public Member Functions inherited from llvm::GVNExpression::BasicExpression
static bool classof (const Expression *EB)
 
- Static Public Member Functions inherited from llvm::GVNExpression::Expression
static unsigned getEmptyKey ()
 
static unsigned getTombstoneKey ()
 

Additional Inherited Members

- Public Types inherited from llvm::GVNExpression::BasicExpression
using op_iterator = Value **
 
using const_op_iterator = Value *const *
 

Detailed Description

Definition at line 324 of file GVNExpression.h.

Constructor & Destructor Documentation

◆ LoadExpression() [1/4]

llvm::GVNExpression::LoadExpression::LoadExpression ( unsigned  NumOperands,
LoadInst L,
const MemoryAccess MemoryLeader 
)
inline

Definition at line 330 of file GVNExpression.h.

◆ LoadExpression() [2/4]

llvm::GVNExpression::LoadExpression::LoadExpression ( enum ExpressionType  EType,
unsigned  NumOperands,
LoadInst L,
const MemoryAccess MemoryLeader 
)
inline

◆ LoadExpression() [3/4]

llvm::GVNExpression::LoadExpression::LoadExpression ( )
delete

◆ LoadExpression() [4/4]

llvm::GVNExpression::LoadExpression::LoadExpression ( const LoadExpression )
delete

◆ ~LoadExpression()

llvm::GVNExpression::LoadExpression::~LoadExpression ( )
overridedefault

Member Function Documentation

◆ classof()

static bool llvm::GVNExpression::LoadExpression::classof ( const Expression EB)
inlinestatic

◆ equals()

bool LoadExpression::equals ( const Expression Other) const
overridevirtual

Reimplemented from llvm::GVNExpression::MemoryExpression.

Definition at line 875 of file NewGVN.cpp.

References equalsLoadStoreHelper().

◆ exactlyEquals()

bool llvm::GVNExpression::LoadExpression::exactlyEquals ( const Expression Other) const
inlineoverridevirtual

Reimplemented from llvm::GVNExpression::Expression.

Definition at line 356 of file GVNExpression.h.

References llvm::GVNExpression::Expression::exactlyEquals().

◆ getAlignment()

unsigned llvm::GVNExpression::LoadExpression::getAlignment ( ) const
inline

Definition at line 352 of file GVNExpression.h.

◆ getLoadInst()

LoadInst* llvm::GVNExpression::LoadExpression::getLoadInst ( ) const
inline

Definition at line 349 of file GVNExpression.h.

References llvm::SPII::Load.

◆ operator=()

LoadExpression& llvm::GVNExpression::LoadExpression::operator= ( const LoadExpression )
delete

◆ printInternal()

void llvm::GVNExpression::LoadExpression::printInternal ( raw_ostream OS,
bool  PrintEType 
) const
inlineoverridevirtual

◆ setAlignment()

void llvm::GVNExpression::LoadExpression::setAlignment ( unsigned  Align)
inline

◆ setLoadInst()

void llvm::GVNExpression::LoadExpression::setLoadInst ( LoadInst L)
inline

Definition at line 350 of file GVNExpression.h.


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