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

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

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

Public Types

using int_arg_iterator = unsigned *
using const_int_arg_iterator = const unsigned *
- Public Types inherited from llvm::GVNExpression::BasicExpression
using op_iterator = Value **
using const_op_iterator = Value *const *

Public Member Functions

 AggregateValueExpression (unsigned NumOperands, unsigned NumIntOperands)
 AggregateValueExpression ()=delete
 AggregateValueExpression (const AggregateValueExpression &)=delete
AggregateValueExpressionoperator= (const AggregateValueExpression &)=delete
 ~AggregateValueExpression () override
int_arg_iterator int_op_begin ()
int_arg_iterator int_op_end ()
const_int_arg_iterator int_op_begin () const
const_int_arg_iterator int_op_end () const
unsigned int_op_size () const
bool int_op_empty () const
void int_op_push_back (unsigned IntOperand)
virtual void allocateIntOperands (BumpPtrAllocator &Allocator)
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::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
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::BasicExpression
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 411 of file GVNExpression.h.

Member Typedef Documentation

◆ const_int_arg_iterator

Definition at line 432 of file GVNExpression.h.

◆ int_arg_iterator

Definition at line 431 of file GVNExpression.h.

Constructor & Destructor Documentation

◆ AggregateValueExpression() [1/3]

llvm::GVNExpression::AggregateValueExpression::AggregateValueExpression ( unsigned  NumOperands,
unsigned  NumIntOperands 

Definition at line 418 of file GVNExpression.h.

◆ AggregateValueExpression() [2/3]

llvm::GVNExpression::AggregateValueExpression::AggregateValueExpression ( )

◆ AggregateValueExpression() [3/3]

llvm::GVNExpression::AggregateValueExpression::AggregateValueExpression ( const AggregateValueExpression )

◆ ~AggregateValueExpression()

llvm::GVNExpression::AggregateValueExpression::~AggregateValueExpression ( )

Member Function Documentation

◆ allocateIntOperands()

virtual void llvm::GVNExpression::AggregateValueExpression::allocateIntOperands ( BumpPtrAllocator Allocator)

Definition at line 449 of file GVNExpression.h.

References Allocator, and assert().

◆ classof()

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

◆ equals()

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

◆ getHashValue()

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

◆ int_op_begin() [1/2]

int_arg_iterator llvm::GVNExpression::AggregateValueExpression::int_op_begin ( )

Definition at line 434 of file GVNExpression.h.

Referenced by equals(), and getHashValue().

◆ int_op_begin() [2/2]

const_int_arg_iterator llvm::GVNExpression::AggregateValueExpression::int_op_begin ( ) const

Definition at line 436 of file GVNExpression.h.

◆ int_op_empty()

bool llvm::GVNExpression::AggregateValueExpression::int_op_empty ( ) const

Definition at line 441 of file GVNExpression.h.

◆ int_op_end() [1/2]

int_arg_iterator llvm::GVNExpression::AggregateValueExpression::int_op_end ( )

Definition at line 435 of file GVNExpression.h.

Referenced by equals(), and getHashValue().

◆ int_op_end() [2/2]

const_int_arg_iterator llvm::GVNExpression::AggregateValueExpression::int_op_end ( ) const

Definition at line 437 of file GVNExpression.h.

◆ int_op_push_back()

void llvm::GVNExpression::AggregateValueExpression::int_op_push_back ( unsigned  IntOperand)

Definition at line 442 of file GVNExpression.h.

References assert().

Referenced by llvm::GVNExpression::int_op_inserter::operator=().

◆ int_op_size()

unsigned llvm::GVNExpression::AggregateValueExpression::int_op_size ( ) const

Definition at line 440 of file GVNExpression.h.

Referenced by printInternal().

◆ operator=()

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

◆ printInternal()

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

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