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

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

Inheritance diagram for llvm::GVNExpression::VariableExpression:
Inheritance graph

Public Member Functions

 VariableExpression (Value *V)
 VariableExpression ()=delete
 VariableExpression (const VariableExpression &)=delete
VariableExpressionoperator= (const VariableExpression &)=delete
ValuegetVariableValue () const
void setVariableValue (Value *V)
bool equals (const Expression &Other) const override
hash_code getHashValue () const override
void printInternal (raw_ostream &OS, bool PrintEType) const override
- 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
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 bool classof (const Expression *EB)
- Static Public Member Functions inherited from llvm::GVNExpression::Expression
static unsigned getEmptyKey ()
static unsigned getTombstoneKey ()

Detailed Description

Definition at line 552 of file GVNExpression.h.

Constructor & Destructor Documentation

◆ VariableExpression() [1/3]

llvm::GVNExpression::VariableExpression::VariableExpression ( Value V)

Definition at line 557 of file GVNExpression.h.

◆ VariableExpression() [2/3]

llvm::GVNExpression::VariableExpression::VariableExpression ( )

◆ VariableExpression() [3/3]

llvm::GVNExpression::VariableExpression::VariableExpression ( const VariableExpression )

Member Function Documentation

◆ classof()

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

◆ equals()

bool llvm::GVNExpression::VariableExpression::equals ( const Expression Other) const

Reimplemented from llvm::GVNExpression::Expression.

Definition at line 569 of file GVNExpression.h.

References llvm::Other.

◆ getHashValue()

hash_code llvm::GVNExpression::VariableExpression::getHashValue ( ) const

◆ getVariableValue()

Value * llvm::GVNExpression::VariableExpression::getVariableValue ( ) const

Definition at line 566 of file GVNExpression.h.

◆ operator=()

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

◆ printInternal()

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

Reimplemented from llvm::GVNExpression::Expression.

Definition at line 580 of file GVNExpression.h.

References OS, and llvm::GVNExpression::Expression::printInternal().

◆ setVariableValue()

void llvm::GVNExpression::VariableExpression::setVariableValue ( Value V)

Definition at line 567 of file GVNExpression.h.

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