LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::GVNExpression::Expression Class Reference

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

Inheritance diagram for llvm::GVNExpression::Expression:
Inheritance graph
[legend]

Public Member Functions

 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
 
virtual bool equals (const Expression &Other) const
 
virtual bool exactlyEquals (const Expression &Other) const
 
unsigned getOpcode () const
 
void setOpcode (unsigned opcode)
 
ExpressionType getExpressionType () const
 
virtual hash_code getHashValue () const
 
virtual void printInternal (raw_ostream &OS, bool PrintEType) const
 
void print (raw_ostream &OS) const
 
LLVM_DUMP_METHOD void dump () const
 

Static Public Member Functions

static unsigned getEmptyKey ()
 
static unsigned getTombstoneKey ()
 

Detailed Description

Definition at line 60 of file GVNExpression.h.

Constructor & Destructor Documentation

◆ Expression() [1/2]

llvm::GVNExpression::Expression::Expression ( ExpressionType  ET = ET_Base,
unsigned  O = ~2U 
)
inline

Definition at line 67 of file GVNExpression.h.

◆ Expression() [2/2]

llvm::GVNExpression::Expression::Expression ( const Expression )
delete

◆ ~Expression()

llvm::GVNExpression::Expression::~Expression ( )
virtualdefault

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void llvm::GVNExpression::Expression::dump ( ) const

Definition at line 91 of file GVNSink.cpp.

References llvm::dbgs(), and print().

◆ equals()

virtual bool llvm::GVNExpression::Expression::equals ( const Expression Other) const
inlinevirtual

◆ exactlyEquals()

virtual bool llvm::GVNExpression::Expression::exactlyEquals ( const Expression Other) const
inlinevirtual

◆ getComputedHash()

hash_code llvm::GVNExpression::Expression::getComputedHash ( ) const
inline

Definition at line 91 of file GVNExpression.h.

References getHashValue().

◆ getEmptyKey()

static unsigned llvm::GVNExpression::Expression::getEmptyKey ( )
inlinestatic

Definition at line 73 of file GVNExpression.h.

Referenced by operator==().

◆ getExpressionType()

ExpressionType llvm::GVNExpression::Expression::getExpressionType ( ) const
inline

◆ getHashValue()

virtual hash_code llvm::GVNExpression::Expression::getHashValue ( ) const
inlinevirtual

◆ getOpcode()

unsigned llvm::GVNExpression::Expression::getOpcode ( ) const
inline

◆ getTombstoneKey()

static unsigned llvm::GVNExpression::Expression::getTombstoneKey ( )
inlinestatic

Definition at line 74 of file GVNExpression.h.

Referenced by operator==().

◆ operator!=()

bool llvm::GVNExpression::Expression::operator!= ( const Expression Other) const
inline

Definition at line 76 of file GVNExpression.h.

References Other.

◆ operator=()

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

◆ operator==()

bool llvm::GVNExpression::Expression::operator== ( const Expression Other) const
inline

◆ print()

void llvm::GVNExpression::Expression::print ( raw_ostream OS) const
inline

Definition at line 122 of file GVNExpression.h.

References printInternal().

Referenced by dump().

◆ printInternal()

virtual void llvm::GVNExpression::Expression::printInternal ( raw_ostream OS,
bool  PrintEType 
) const
inlinevirtual

◆ setOpcode()

void llvm::GVNExpression::Expression::setOpcode ( unsigned  opcode)
inline

Definition at line 109 of file GVNExpression.h.


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