LLVM 22.0.0git
llvm::GVNExpression::Expression Class Reference

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

Inheritance diagram for llvm::GVNExpression::Expression:
[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]

◆ Expression() [2/2]

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

References Expression().

◆ ~Expression()

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

Member Function Documentation

◆ dump()

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

Definition at line 84 of file GVNSink.cpp.

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

◆ equals()

◆ exactlyEquals()

◆ getComputedHash()

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

Definition at line 91 of file GVNExpression.h.

References getHashValue().

◆ getEmptyKey()

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

Definition at line 73 of file GVNExpression.h.

Referenced by operator==().

◆ getExpressionType()

◆ getHashValue()

◆ getOpcode()

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

◆ getTombstoneKey()

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 Expression(), and llvm::Other.

◆ operator=()

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

References Expression().

◆ 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()

◆ 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: