#include <opt_vn_expr_taxonomy.h>


Public Member Functions | |
| void | free () |
| KIND | get_kind () const |
| UINT32 | get_num_opnds () const |
| VN_VALNUM | get_opnd (UINT i=0) const |
| BOOL | has_top_opnd () const |
| BOOL | has_bottom_opnd () const |
| PHI_TAG | get_phi_tag () const |
| IDTYPE | get_block_id () 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_PHI_EXPR * | Create (UINT32 num_opnds, IDTYPE block_id, PHI_TAG phi_tag) |
Private Member Functions | |
| VN_PHI_EXPR (UINT32 num_opnds, IDTYPE block_id, PHI_TAG phi_tag) | |
Private Attributes | |
| IDTYPE | _block_id |
| PHI_TAG | _phi_tag |
| UINT32 | _num_opnds |
| VN_VALNUM | _vn [3] |
| VN_VALNUM * | _vn_array |
Static Private Attributes | |
| static FREE_STACK * | _Free = NULL |
Definition at line 775 of file opt_vn_expr_taxonomy.h.
Definition at line 787 of file opt_vn_expr_taxonomy.h.
References VN_EXPR::_Mpool, _vn_array, VN_VALNUM::Bottom(), CXX_NEW_ARRAY, i, INT, and set_opnd().
Referenced by Create().
| static void VN_PHI_EXPR::Init_Free_List | ( | ) | [inline, static] |
Definition at line 800 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_PHI_EXPR::Reclaim_Free_List | ( | ) | [inline, static] |
Definition at line 801 of file opt_vn_expr_taxonomy.h.
References _Free, VN_EXPR::_Mpool, CXX_DELETE, and NULL.
Referenced by VN_EXPR::Reclaim_Free_Lists().
| VN_PHI_EXPR * VN_PHI_EXPR::Create | ( | UINT32 | num_opnds, | |
| IDTYPE | block_id, | |||
| PHI_TAG | phi_tag | |||
| ) | [static] |
Definition at line 1712 of file opt_vn_expr.cxx.
References _block_id, _Free, VN_EXPR::_Mpool, _num_opnds, _phi_tag, _vn_array, VN_VALNUM::Bottom(), CXX_NEW, CXX_NEW_ARRAY, i, INT, NULL, FREE_STACK::pop(), set_opnd(), and VN_PHI_EXPR().
Referenced by VN_EXPR::Create_Phi().
| void VN_PHI_EXPR::free | ( | ) | [inline, virtual] |
Implements VN_EXPR.
Definition at line 807 of file opt_vn_expr_taxonomy.h.
References _Free, VN_EXPR::_Mpool, _vn_array, CXX_DELETE_ARRAY, NULL, and FREE_STACK::push().
Referenced by simplify().
| KIND VN_PHI_EXPR::get_kind | ( | ) | const [inline, virtual] |
| UINT32 VN_PHI_EXPR::get_num_opnds | ( | ) | const [inline, virtual] |
Implements VN_EXPR.
Definition at line 822 of file opt_vn_expr_taxonomy.h.
References _num_opnds.
Referenced by get_opnd(), has_bottom_opnd(), has_top_opnd(), hash(), is_equal_to(), print(), set_opnd(), and simplify().
Reimplemented from VN_EXPR.
Definition at line 827 of file opt_vn_expr_taxonomy.h.
References _vn, _vn_array, get_num_opnds(), i, Is_True, and NULL.
Referenced by has_bottom_opnd(), has_top_opnd(), hash(), is_equal_to(), print(), and simplify().
| BOOL VN_PHI_EXPR::has_top_opnd | ( | ) | const [inline, virtual] |
Implements VN_EXPR.
Definition at line 833 of file opt_vn_expr_taxonomy.h.
References get_num_opnds(), get_opnd(), i, INT, and VN_VALNUM::Top().
Referenced by hash(), and simplify().
| BOOL VN_PHI_EXPR::has_bottom_opnd | ( | ) | const [inline, virtual] |
Implements VN_EXPR.
Definition at line 840 of file opt_vn_expr_taxonomy.h.
References VN_VALNUM::Bottom(), get_num_opnds(), get_opnd(), i, and INT.
Referenced by hash(), and simplify().
| PHI_TAG VN_PHI_EXPR::get_phi_tag | ( | ) | const [inline, virtual] |
Reimplemented from VN_EXPR.
Definition at line 847 of file opt_vn_expr_taxonomy.h.
References _phi_tag.
| IDTYPE VN_PHI_EXPR::get_block_id | ( | ) | const [inline, virtual] |
Reimplemented from VN_EXPR.
Definition at line 852 of file opt_vn_expr_taxonomy.h.
References _block_id.
Reimplemented from VN_EXPR.
Definition at line 857 of file opt_vn_expr_taxonomy.h.
References _vn, _vn_array, get_num_opnds(), Is_True, and NULL.
Referenced by Create(), and VN_PHI_EXPR().
| VN_EXPR::PTR VN_PHI_EXPR::simplify | ( | VN * | v | ) | [virtual] |
Implements VN_EXPR.
Definition at line 1737 of file opt_vn_expr.cxx.
References BOOL, VN_VALNUM::Bottom(), VN_EXPR::Create_Unary(), VN_VALNUM::equivalent_to(), free(), get_num_opnds(), get_opnd(), has_bottom_opnd(), has_top_opnd(), i, INT, VN_VALNUM::is_top(), OPC_VPARM, and TRUE.
| size_t VN_PHI_EXPR::hash | ( | ) | [inline, virtual] |
Implements VN_EXPR.
Definition at line 868 of file opt_vn_expr_taxonomy.h.
References _block_id, get_num_opnds(), get_opnd(), has_bottom_opnd(), has_top_opnd(), i, INT, Is_True, and VN_VALNUM::ordinal().
Implements VN_EXPR.
Definition at line 878 of file opt_vn_expr_taxonomy.h.
References _block_id, _num_opnds, _phi_tag, BOOL, VN_EXPR::get_block_id(), VN_EXPR::get_kind(), VN_EXPR::get_num_opnds(), get_num_opnds(), VN_EXPR::get_opnd(), get_opnd(), VN_EXPR::get_phi_tag(), i, INT, NULL, and VN_EXPR::PHI.
Implements VN_EXPR.
Definition at line 891 of file opt_vn_expr_taxonomy.h.
References _block_id, fp, fprintf(), fputs(), get_num_opnds(), get_opnd(), i, INT, INT32, and VN_VALNUM::print().
FREE_STACK * VN_PHI_EXPR::_Free = NULL [static, private] |
Definition at line 779 of file opt_vn_expr_taxonomy.h.
Referenced by Create(), free(), Init_Free_List(), and Reclaim_Free_List().
IDTYPE VN_PHI_EXPR::_block_id [private] |
Definition at line 781 of file opt_vn_expr_taxonomy.h.
Referenced by Create(), get_block_id(), hash(), is_equal_to(), and print().
PHI_TAG VN_PHI_EXPR::_phi_tag [private] |
Definition at line 782 of file opt_vn_expr_taxonomy.h.
Referenced by Create(), get_phi_tag(), and is_equal_to().
UINT32 VN_PHI_EXPR::_num_opnds [private] |
Definition at line 783 of file opt_vn_expr_taxonomy.h.
Referenced by Create(), get_num_opnds(), and is_equal_to().
VN_VALNUM VN_PHI_EXPR::_vn[3] [private] |
VN_VALNUM* VN_PHI_EXPR::_vn_array [private] |
Definition at line 785 of file opt_vn_expr_taxonomy.h.
Referenced by Create(), free(), get_opnd(), set_opnd(), and VN_PHI_EXPR().
1.5.6