VN_UNARY_EXPR Module Reference

#include <opt_vn_expr_taxonomy.h>

Inheritance diagram for VN_UNARY_EXPR:

Inheritance graph
[legend]
Collaboration diagram for VN_UNARY_EXPR:

Collaboration graph
[legend]

Public Member Functions

void free ()
KIND get_kind () const
UINT32 get_num_opnds () const
BOOL has_top_opnd () const
BOOL has_bottom_opnd () const
VN_VALNUM get_opnd (UINT i=0) const
OPCODE get_opc () const
void set_opnd (UINT32 i, VN_VALNUM vn)
PTR simplify (VN *v)
size_t hash ()
BOOL is_equal_to (CONST_PTR expr) const
void print (FILE *fp=stderr) const

Static Public Member Functions

static void Init_Free_List ()
static void Reclaim_Free_List ()
static VN_UNARY_EXPRCreate (OPCODE opc, const VN_VALNUM &vn)

Private Member Functions

 VN_UNARY_EXPR (OPCODE opc, const VN_VALNUM &vn)

Private Attributes

OPCODE _opc
VN_VALNUM _vn

Static Private Attributes

static FREE_STACK_Free = NULL

Detailed Description

Definition at line 289 of file opt_vn_expr_taxonomy.h.


Constructor & Destructor Documentation

VN_UNARY_EXPR::VN_UNARY_EXPR ( OPCODE  opc,
const VN_VALNUM vn 
) [inline, private]

Definition at line 298 of file opt_vn_expr_taxonomy.h.

Referenced by Create().


Member Function/Subroutine Documentation

static void VN_UNARY_EXPR::Init_Free_List (  )  [inline, static]

Definition at line 303 of file opt_vn_expr_taxonomy.h.

References _Free, VN_EXPR::_Mpool, and CXX_NEW.

Referenced by VN_EXPR::Init_Free_Lists().

static void VN_UNARY_EXPR::Reclaim_Free_List (  )  [inline, static]

Definition at line 304 of file opt_vn_expr_taxonomy.h.

References _Free, VN_EXPR::_Mpool, CXX_DELETE, and NULL.

Referenced by VN_EXPR::Reclaim_Free_Lists().

VN_UNARY_EXPR * VN_UNARY_EXPR::Create ( OPCODE  opc,
const VN_VALNUM vn 
) [static]

void VN_UNARY_EXPR::free (  )  [inline, virtual]

Implements VN_EXPR.

Definition at line 308 of file opt_vn_expr_taxonomy.h.

References _Free, and FREE_STACK::push().

Referenced by simplify().

KIND VN_UNARY_EXPR::get_kind (  )  const [inline, virtual]

Implements VN_EXPR.

Definition at line 313 of file opt_vn_expr_taxonomy.h.

References VN_EXPR::UNARY.

UINT32 VN_UNARY_EXPR::get_num_opnds (  )  const [inline, virtual]

Implements VN_EXPR.

Definition at line 318 of file opt_vn_expr_taxonomy.h.

Referenced by get_opnd(), and set_opnd().

BOOL VN_UNARY_EXPR::has_top_opnd (  )  const [inline, virtual]

Implements VN_EXPR.

Definition at line 323 of file opt_vn_expr_taxonomy.h.

References _vn, and VN_VALNUM::is_top().

Referenced by hash(), and simplify().

BOOL VN_UNARY_EXPR::has_bottom_opnd (  )  const [inline, virtual]

Implements VN_EXPR.

Definition at line 328 of file opt_vn_expr_taxonomy.h.

References _vn, and VN_VALNUM::is_bottom().

Referenced by hash(), and simplify().

VN_VALNUM VN_UNARY_EXPR::get_opnd ( UINT  i = 0  )  const [inline, virtual]

Reimplemented from VN_EXPR.

Definition at line 333 of file opt_vn_expr_taxonomy.h.

References _vn, get_num_opnds(), i, and Is_True.

OPCODE VN_UNARY_EXPR::get_opc (  )  const [inline, virtual]

Reimplemented from VN_EXPR.

Definition at line 339 of file opt_vn_expr_taxonomy.h.

References _opc.

void VN_UNARY_EXPR::set_opnd ( UINT32  i,
VN_VALNUM  vn 
) [inline, virtual]

Reimplemented from VN_EXPR.

Definition at line 344 of file opt_vn_expr_taxonomy.h.

References _vn, get_num_opnds(), and Is_True.

VN_EXPR::PTR VN_UNARY_EXPR::simplify ( VN v  )  [virtual]

size_t VN_UNARY_EXPR::hash (  )  [inline, virtual]

BOOL VN_UNARY_EXPR::is_equal_to ( CONST_PTR  expr  )  const [inline, virtual]

void VN_UNARY_EXPR::print ( FILE fp = stderr  )  const [inline, virtual]

Implements VN_EXPR.

Definition at line 368 of file opt_vn_expr_taxonomy.h.

References _opc, _vn, fp, fprintf(), fputs(), OPCODE_name(), and VN_VALNUM::print().


Field Documentation

FREE_STACK * VN_UNARY_EXPR::_Free = NULL [static, private]

Definition at line 293 of file opt_vn_expr_taxonomy.h.

Referenced by Create(), free(), Init_Free_List(), and Reclaim_Free_List().

Definition at line 295 of file opt_vn_expr_taxonomy.h.

Referenced by Create(), get_opc(), hash(), is_equal_to(), print(), and simplify().


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

Generated on Wed Apr 8 17:13:23 2009 for Open64 by  doxygen 1.5.6