LLVM  16.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::GVNExpression::StoreExpression Class Referencefinal

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

Inheritance diagram for llvm::GVNExpression::StoreExpression:
Inheritance graph
Collaboration diagram for llvm::GVNExpression::StoreExpression:
Collaboration graph

Public Member Functions

 StoreExpression (unsigned NumOperands, StoreInst *S, Value *StoredValue, const MemoryAccess *MemoryLeader)
 StoreExpression ()=delete
 StoreExpression (const StoreExpression &)=delete
StoreExpressionoperator= (const StoreExpression &)=delete
 ~StoreExpression () override
StoreInstgetStoreInst () const
ValuegetStoredValue () const
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 370 of file GVNExpression.h.

Constructor & Destructor Documentation

◆ StoreExpression() [1/3]

llvm::GVNExpression::StoreExpression::StoreExpression ( unsigned  NumOperands,
StoreInst S,
Value StoredValue,
const MemoryAccess MemoryLeader 

Definition at line 376 of file GVNExpression.h.

◆ StoreExpression() [2/3]

llvm::GVNExpression::StoreExpression::StoreExpression ( )

◆ StoreExpression() [3/3]

llvm::GVNExpression::StoreExpression::StoreExpression ( const StoreExpression )

◆ ~StoreExpression()

llvm::GVNExpression::StoreExpression::~StoreExpression ( )

Member Function Documentation

◆ classof()

static bool llvm::GVNExpression::StoreExpression::classof ( const Expression EB)

◆ equals()

bool StoreExpression::equals ( const Expression Other) const

Reimplemented from llvm::GVNExpression::MemoryExpression.

Definition at line 917 of file NewGVN.cpp.

References equalsLoadStoreHelper(), llvm::getStoredValue(), Other, and S.

◆ exactlyEquals()

bool llvm::GVNExpression::StoreExpression::exactlyEquals ( const Expression Other) const

◆ getStoredValue()

Value* llvm::GVNExpression::StoreExpression::getStoredValue ( ) const

Definition at line 390 of file GVNExpression.h.

◆ getStoreInst()

StoreInst* llvm::GVNExpression::StoreExpression::getStoreInst ( ) const

Definition at line 389 of file GVNExpression.h.

Referenced by exactlyEquals().

◆ operator=()

StoreExpression& llvm::GVNExpression::StoreExpression::operator= ( const StoreExpression )

◆ printInternal()

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

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