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

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

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

Public Member Functions

 ConstantExpression ()
 
 ConstantExpression (Constant *constantValue)
 
 ConstantExpression (const ConstantExpression &)=delete
 
ConstantExpressionoperator= (const ConstantExpression &)=delete
 
ConstantgetConstantValue () const
 
void setConstantValue (Constant *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 exactlyEquals (const Expression &Other) 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::Expression
static unsigned getEmptyKey ()
 
static unsigned getTombstoneKey ()
 

Detailed Description

Definition at line 585 of file GVNExpression.h.

Constructor & Destructor Documentation

◆ ConstantExpression() [1/3]

llvm::GVNExpression::ConstantExpression::ConstantExpression ( )
inline

Definition at line 590 of file GVNExpression.h.

◆ ConstantExpression() [2/3]

llvm::GVNExpression::ConstantExpression::ConstantExpression ( Constant constantValue)
inline

Definition at line 591 of file GVNExpression.h.

References llvm::GVNExpression::Expression::operator=().

◆ ConstantExpression() [3/3]

llvm::GVNExpression::ConstantExpression::ConstantExpression ( const ConstantExpression )
delete

Member Function Documentation

◆ classof()

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

◆ equals()

bool llvm::GVNExpression::ConstantExpression::equals ( const Expression Other) const
inlineoverridevirtual

Reimplemented from llvm::GVNExpression::Expression.

Definition at line 603 of file GVNExpression.h.

References llvm::SystemZISD::OC.

◆ getConstantValue()

Constant* llvm::GVNExpression::ConstantExpression::getConstantValue ( ) const
inline

Definition at line 600 of file GVNExpression.h.

◆ getHashValue()

hash_code llvm::GVNExpression::ConstantExpression::getHashValue ( ) const
inlineoverridevirtual

◆ operator=()

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

◆ printInternal()

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

Reimplemented from llvm::GVNExpression::Expression.

Definition at line 614 of file GVNExpression.h.

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

◆ setConstantValue()

void llvm::GVNExpression::ConstantExpression::setConstantValue ( Constant V)
inline

Definition at line 601 of file GVNExpression.h.


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