#include "wn_simp_ftable.h"


Go to the source code of this file.
| #define B | ( | t | ) | (1<<t) |
Definition at line 1682 of file wn_simp_code.h.
Referenced by __adddf3(), __addsf3(), __addtf3(), __divdf3(), __divsf3(), __divtf3(), __eqdf2(), __eqsf2(), __eqtf2(), __gedf2(), __gesf2(), __getf2(), __ledf2(), __lesf2(), __letf2(), __muldf3(), __mulsf3(), __multf3(), __subdf3(), __subsf3(), __subtf3(), __unorddf2(), __unordsf2(), __unordtf2(), _type_f(), ar_sim(), arc_limm_fixup_adjust(), dsmOneArcInst(), e_d(), eliminate_phi(), insert_base(), insert_offset(), insert_st_syntax(), lambda_compute_auxillary_space(), md5_process_block(), process_command(), rd_ed(), sort_by_bb_frequency(), strrevcmp(), strrevcmp_align(), and w_ed().
| #define FACTOR_11 1 |
| #define FACTOR_12 2 |
| #define FACTOR_21 4 |
| #define FACTOR_22 8 |
Definition at line 1188 of file wn_simp_code.h.
Referenced by simp_band(), simp_bior(), simp_bxor(), and simp_factor().
| #define FACTOR_ALL (FACTOR_11 | FACTOR_12 | FACTOR_21 | FACTOR_22) |
Definition at line 1189 of file wn_simp_code.h.
Referenced by simp_add_sub(), simp_band(), simp_bior(), simp_bxor(), simp_land(), and simp_lior().
| #define IS_POWER_OF_2 | ( | x | ) | (((x)!=0) && ((x) & ((x)-1))==0) |
Definition at line 516 of file wn_simp_code.h.
| #define LDA_CANNOT_BE_ZERO 1 |
| #define LDA_EQUIV_POSSIBLE 2 |
| #define LDA_UNTESTABLE 4 |
Definition at line 732 of file wn_simp_code.h.
Referenced by get_lda_info(), and LDA_Equal_Address().
| #define MAX_INTRINSIC_ARGS 6 |
Definition at line 6078 of file wn_simp_code.h.
Definition at line 167 of file wn_simp_code.h.
Referenced by cancel_in_relop(), Fold2_Into_Select(), simp_abs(), simp_add_sub(), simp_band(), simp_bior(), simp_bnor(), simp_bxor(), simp_cvtl(), simp_div(), simp_eq_neq(), simp_factor(), simp_factor_idty(), simp_land(), simp_lior(), simp_mod_rem(), simp_neg(), simp_not(), simp_power(), simp_recip(), simp_shift(), simp_times(), SIMPNODE_SimplifyExp1(), and SIMPNODE_SimplifyExp3().
| #define PRECISE_FQ B(MTYPE_FQ) |
| #define PRECISE_U8 B(MTYPE_FQ) |
| #define SELECT_ADD_SUB | ( | x | ) | ((x)? subop : addop) |
| #define SHOW_RULE | ( | x | ) | show_rule(x) |
Definition at line 182 of file wn_simp_code.h.
Referenced by cancel_in_relop(), Fold2_Into_Select(), simp_abs(), simp_add_sub(), simp_band(), simp_bior(), simp_bnor(), simp_bxor(), simp_cand(), simp_cior(), simp_cvt(), simp_cvtl(), simp_div(), simp_eq_neq(), simp_factor(), simp_factor_idty(), simp_land(), simp_lior(), simp_min_max(), simp_mod_rem(), simp_neg(), simp_not(), simp_power(), simp_recip(), simp_relop(), simp_shift(), simp_times(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), SIMPNODE_SimplifyExp1(), SIMPNODE_SimplifyExp2_h(), SIMPNODE_SimplifyExp3(), and SIMPNODE_SimplifyIntrinsic().
| #define SHOW_TREE | ( | opc, | |||
| k0, | |||||
| k1, | |||||
| result | ) | if ((result!=NULL) && trace_trees) show_tree(opc,k0,k1,result) |
Definition at line 176 of file wn_simp_code.h.
Referenced by SIMPNODE_SimplifyCvtl(), SIMPNODE_SimplifyExp1(), SIMPNODE_SimplifyExp2(), and SIMPNODE_SimplifyIntrinsic().
| #define SIMP_DELETE | ( | x | ) | simp_delete(x) |
Definition at line 238 of file wn_simp_code.h.
Referenced by cancel_in_relop(), simp_abs(), simp_add_sub(), simp_band(), simp_bior(), simp_bxor(), simp_cand(), simp_cior(), simp_cvt(), simp_cvtl(), simp_div(), simp_eq_neq(), simp_factor(), simp_factor_idty(), simp_land(), simp_lior(), simp_min_max(), simp_mod_rem(), simp_neg(), simp_not(), simp_power(), simp_recip(), simp_relop(), simp_shift(), simp_times(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), SIMPNODE_SimplifyExp2_h(), and SIMPNODE_SimplifyIntrinsic().
| #define SIMP_DELETE_TREE | ( | x | ) | simp_delete_tree(x) |
Definition at line 239 of file wn_simp_code.h.
Referenced by cancel_in_relop(), simp_add_sub(), simp_band(), simp_bior(), simp_bxor(), simp_cand(), simp_cior(), simp_cvt(), simp_div(), simp_eq_neq(), simp_factor(), simp_factor_idty(), simp_land(), simp_lior(), simp_min_max(), simp_mod_rem(), simp_power(), simp_relop(), simp_shift(), simp_times(), and SIMPNODE_SimplifyExp3().
| #define SIMP_FLOATCONST | ( | ty, | |||
| value | ) | SIMPNODE_CreateFloatconstFromTcon(Host_To_Targ_Float(ty,(value))) |
Definition at line 212 of file wn_simp_code.h.
Referenced by make_identity(), simp_diff_value(), simp_div(), simp_power(), and simp_times().
Definition at line 209 of file wn_simp_code.h.
Referenced by cancel_in_relop(), make_identity(), simp_band(), simp_bior(), simp_bxor(), simp_cand(), simp_cior(), simp_cvtl(), simp_diff_value(), simp_div(), simp_eq_neq(), simp_land(), simp_lior(), simp_mod_rem(), simp_power(), simp_relop(), simp_shift(), simp_times(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), SIMPNODE_SimplifyExp3(), and SIMPNODE_SimplifyIntrinsic().
| #define SIMP_IS_TYPE_COMPLEX | ( | x | ) | ((MTYPE_type_class(x)&MTYPE_CLASS_COMPLEX)!=0) |
Definition at line 164 of file wn_simp_code.h.
Referenced by is_floating_equal(), is_numeric_equal(), simp_abs(), simp_div(), and simp_times().
| #define SIMP_IS_TYPE_FLOATING | ( | x | ) | ((MTYPE_type_class(x)&MTYPE_CLASS_FLOAT)!=0) |
Definition at line 163 of file wn_simp_code.h.
Referenced by cancel_in_relop(), is_numeric_equal(), is_ok_to_reassociate(), make_identity(), simp_abs(), simp_add_sub(), simp_bxor(), simp_diff_value(), simp_div(), simp_eq_neq(), simp_factor(), simp_factor_idty(), simp_not(), simp_power(), and simp_times().
| #define SIMP_IS_TYPE_INTEGRAL | ( | x | ) | ((MTYPE_type_class(x)&MTYPE_CLASS_INTEGER)!=0) |
Definition at line 161 of file wn_simp_code.h.
Referenced by cancel_in_relop(), is_floating_equal(), is_numeric_equal(), is_ok_to_reassociate(), simp_add_sub(), simp_div(), simp_eq_neq(), simp_power(), simp_relop(), simp_shift(), simp_times(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), and SIMPNODE_SimplifyIntrinsic().
| #define SIMP_IS_TYPE_UNSIGNED | ( | x | ) | ((MTYPE_type_class(x)&MTYPE_CLASS_UNSIGNED)!=0) |
Definition at line 162 of file wn_simp_code.h.
Referenced by cancel_in_relop(), is_numeric_equal(), simp_add_sub(), simp_cvt(), simp_div(), simp_mod_rem(), simp_neg(), simp_power(), simp_relop(), simp_shift(), and simp_times().
| #define SIMP_TYPE | ( | x | ) | SIMPNODE_rtype(x) |
Definition at line 241 of file wn_simp_code.h.
Referenced by simp_band(), simp_bior(), and simp_shift().
| #define SIMP_TYPE_SIZE | ( | x | ) | MTYPE_size_min(x) |
| #define TESTABLE_TYPE |
Definition at line 733 of file wn_simp_code.h.
| enum YESNOMAYBE |
Definition at line 4255 of file wn_simp_code.h.
References Allow_wrap_around_opt, BOOL, buf, Enable_Cfold_Aggressive, Enable_Cfold_Reassociate, FALSE, Force_IEEE_Comparisons, INT32, KIND_POINTER, MTYPE_I4, MTYPE_I8, Mtype_TransferSign(), MTYPE_U4, MTYPE_U8, NULL, OPC_FROM_OPR, OPCODE_commutative_op(), OPCODE_has_1ty(), OPCODE_has_2ty(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPR_ADD, OPR_EQ, OPR_LDA, OPR_NE, OPR_NEG, OPR_SUB, ROUNDOFF_ANY, Roundoff_Level, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, simp_diff_value(), Simp_Fold_Unsigned_Relops, SIMP_INTCONST, SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, Simp_Unsafe_Relops, SIMPNODE_Compare_Symbols, SIMPNODE_DELETE, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_lda_offset, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, SIMPNODE_ty, sprintf(), top, TRUE, and TY_kind.
Referenced by simp_eq_neq(), and simp_relop().
Definition at line 1713 of file wn_simp_code.h.
References BOOL, FALSE, INT32, MTYPE_F10, MTYPE_F4, MTYPE_F8, MTYPE_FQ, MTYPE_I1, MTYPE_I2, MTYPE_I4, MTYPE_I8, MTYPE_U1, MTYPE_U2, MTYPE_U4, MTYPE_U8, PRECISE_F4, PRECISE_F8, PRECISE_FQ, PRECISE_I1, PRECISE_I2, PRECISE_I4, PRECISE_I8, PRECISE_U1, PRECISE_U2, PRECISE_U4, PRECISE_U8, r, TESTABLE_TYPE, and TYPEISIN.
Referenced by simp_cvt().
Definition at line 520 of file wn_simp_code.h.
Referenced by simp_band(), simp_bior(), and simp_shift().
Definition at line 5182 of file wn_simp_code.h.
References NULL, OPC_FROM_OPR, OPCODE_operator(), OPCODE_rtype(), OPR_COMPOSE_BITS, OPR_SELECT, SHOW_RULE, SIMP_Is_Constant(), SIMPNODE_CopyNode, SIMPNODE_kid, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_operator, SIMPNODE_SimpCreateExp2, and SIMPNODE_SimpCreateExp3.
Referenced by SIMPNODE_SimplifyExp2_h().
Definition at line 1115 of file wn_simp_code.h.
References OPCODE_desc(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPCODE_UNKNOWN, OPR_EQ, OPR_GE, OPR_GT, OPR_LE, OPR_LT, and OPR_NE.
Referenced by simp_band(), simp_bior(), simp_bxor(), simp_eq_neq(), simp_not(), and SIMPNODE_SimplifyExp3().
Definition at line 735 of file wn_simp_code.h.
References EXPORT_OPTIONAL, EXPORT_PREEMPTIBLE, LDA_CANNOT_BE_ZERO, LDA_EQUIV_POSSIBLE, LDA_UNTESTABLE, r, SCLASS_COMMON, SCLASS_EXTERN, SCLASS_FORMAL_REF, SCLASS_TEXT, SIMPNODE_lda_offset, SIMPNODE_st_idx, ST_base, ST_export, ST_is_weak_symbol, ST_ofst, ST_ptr(), ST_sclass, and ST_st_idx.
Referenced by LDA_Equal_Address(), and simp_eq_neq().
Definition at line 1139 of file wn_simp_code.h.
References OPCODE_desc(), OPR_ILOAD, OPR_LDBITS, OPR_LDID, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_rtype, and TYPE_ID.
Referenced by simp_cvt(), and simp_shift().
Definition at line 551 of file wn_simp_code.h.
References FALSE, INT32_MAX, INT32_MIN, MTYPE_I4, MTYPE_I8, MTYPE_U4, MTYPE_U8, TRUE, and UINT64.
Referenced by simp_add_sub(), simp_eq_neq(), and simp_relop().
Definition at line 624 of file wn_simp_code.h.
References FALSE, Host_To_Targ_Float(), INT64, MTYPE_F10, MTYPE_F4, MTYPE_F8, MTYPE_FQ, MTYPE_is_str, NULL, OPC_I4FQEQ, SIMP_Flt_ConstVal(), SIMP_Is_Constant(), SIMP_IS_TYPE_COMPLEX, SIMP_IS_TYPE_INTEGRAL, SIMPNODE_rtype, Targ_To_Host(), Targ_To_Host_Float(), Targ_WhirlOp(), and TYPE_ID.
Referenced by is_numeric_equal(), simp_add_sub(), simp_div(), simp_power(), and simp_times().
Definition at line 1047 of file wn_simp_code.h.
References OPCODE_operator(), OPCODE_UNKNOWN, OPR_LAND, OPR_LIOR, and OPR_LNOT.
Referenced by simp_eq_neq().
Definition at line 662 of file wn_simp_code.h.
References FALSE, INT64, is_floating_equal(), MTYPE_is_str, SIMP_Int_ConstVal(), SIMP_Is_Constant(), SIMP_IS_TYPE_COMPLEX, SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, SIMPNODE_rtype, TYPE_ID, and UINT64.
Referenced by simp_power().
Definition at line 1074 of file wn_simp_code.h.
References Enable_Cfold_Reassociate, FALSE, OPCODE_operator(), OPCODE_rtype(), OPR_ADD, OPR_BAND, OPR_BIOR, OPR_BXOR, OPR_LAND, OPR_LIOR, OPR_MAX, OPR_MIN, OPR_MPY, SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, and TRUE.
Definition at line 584 of file wn_simp_code.h.
References FALSE, INT32_MAX, INT32_MIN, MTYPE_I4, MTYPE_I8, MTYPE_U4, MTYPE_U8, TRUE, and UINT64.
Referenced by simp_eq_neq(), and simp_relop().
| static YESNOMAYBE LDA_Equal_Address | ( | simpnode | lda_x, | |
| simpnode | lda_y | |||
| ) | [static] |
Definition at line 782 of file wn_simp_code.h.
References BOOL, EXPORT_OPTIONAL, EXPORT_PREEMPTIBLE, get_lda_info(), INT64, LDA_UNTESTABLE, MAYBE, NO, SCLASS_EXTERN, ST_export, ST_is_weak_symbol, ST_ptr(), ST_sclass, ST_st_idx, ST_strong_idx(), is::y, and YES.
Referenced by simp_eq_neq().
Definition at line 1269 of file wn_simp_code.h.
References FALSE, FmtAssert, NULL, OPR_ADD, OPR_BAND, OPR_BIOR, OPR_BXOR, OPR_LAND, OPR_LIOR, OPR_MPY, OPR_SUB, r, SIMP_FLOATCONST, SIMP_INTCONST, and SIMP_IS_TYPE_FLOATING.
Referenced by simp_factor_idty().
| static void show_rule | ( | const char * | rule | ) | [static] |
| static simpnode simp_abs | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 1401 of file wn_simp_code.h.
References MTYPE_is_vector, NULL, OPC_FROM_OPR, OPCODE_desc(), OPCODE_rtype(), OPR_ABS, OPR_CVT, OPR_NEG, r, SHOW_RULE, SIMP_DELETE, SIMP_IS_TYPE_COMPLEX, SIMP_IS_TYPE_FLOATING, SIMPNODE_kid0, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_SimpCreateExp1, and TYPE_ID.
| static simpnode simp_add_sub | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 2031 of file wn_simp_code.h.
References BOOL, d1, d2, Enable_Cfold_Aggressive, Enable_Cfold_Reassociate, FACTOR_ALL, FALSE, i, IEEE_Arithmetic, IEEE_INEXACT, INT32, INT64, is_add_ok(), is_floating_equal(), MTYPE_FQ, MTYPE_I4, MTYPE_signed, MTYPE_size_reg, Mtype_TransferSign(), NULL, offset, OPC_FROM_OPR, OPCODE_operator(), OPCODE_rtype(), OPR_ADD, OPR_LDA, OPR_MPY, OPR_NEG, OPR_SUB, r, SELECT_ADD_SUB, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, simp_diff_value(), simp_factor(), simp_factor_idty(), SIMP_Int_ConstVal(), SIMP_Is_Constant(), SIMP_Is_Int_Constant(), SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_lda_offset, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, Targ_To_Host(), TRUE, TYPE_ID, and WN_Simp_Fold_LDA.
| static simpnode simp_band | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3269 of file wn_simp_code.h.
References create_bitmask(), Enable_Cfold_Aggressive, Enable_extract_bits, FACTOR_22, FACTOR_ALL, FALSE, get_inverse_relop(), Host_Byte_Sex, INT32, INT64, IS_POWER_OF_2, log2, MTYPE_bit_size, NULL, OPC_FROM_OPR, OPC_U4EXTRACT_BITS, OPC_U8EXTRACT_BITS, OPCODE_rtype(), OPR_ASHR, OPR_BAND, OPR_BIOR, OPR_BNOT, OPR_EQ, OPR_LDID, OPR_LSHR, OPR_SHL, shift_count, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, simp_factor(), simp_factor_idty(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Int_Constant(), SIMP_TYPE, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, SIMPNODE_SimpCreateExtract, Target_Byte_Sex, TYPE_ID, and UINT64.
| static simpnode simp_bior | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3428 of file wn_simp_code.h.
References create_bitmask(), Enable_Cfold_Aggressive, Enable_compose_bits, FACTOR_22, FACTOR_ALL, Fail_FmtAssertion(), FALSE, get_inverse_relop(), Host_Byte_Sex, INT64, IS_POWER_OF_2, log2, MTYPE_bit_size, NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_ASHR, OPR_BAND, OPR_BIOR, OPR_BNOT, OPR_COMPOSE_BITS, OPR_LSHR, OPR_NE, OPR_SHL, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, simp_factor(), simp_factor_idty(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Int_Constant(), SIMP_TYPE, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_op_bit_offset, SIMPNODE_op_bit_size, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateDeposit, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, Targ_To_Host(), Target_Byte_Sex, TYPE_ID, and UINT64.
| static simpnode simp_bnor | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3629 of file wn_simp_code.h.
References NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_BIOR, OPR_BNOT, SHOW_RULE, SIMPNODE_SimpCreateExp1, SIMPNODE_SimplifyExp2, and TYPE_ID.
| static simpnode simp_bxor | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3661 of file wn_simp_code.h.
References Enable_Cfold_Aggressive, FACTOR_22, FACTOR_ALL, FALSE, Force_IEEE_Comparisons, get_inverse_relop(), INT64, NULL, OPC_FROM_OPR, OPCODE_desc(), OPCODE_rtype(), OPR_ASHR, OPR_BAND, OPR_BNOT, OPR_LSHR, OPR_SHL, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, simp_factor(), simp_factor_idty(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_IS_TYPE_FLOATING, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, and TYPE_ID.
| static simpnode simp_cand | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3886 of file wn_simp_code.h.
References INT64, NULL, OPCODE_rtype(), SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), SIMP_INTCONST, and WN_has_side_effects().
| static simpnode simp_cior | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3936 of file wn_simp_code.h.
References INT64, NULL, OPCODE_rtype(), SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), and SIMP_INTCONST.
| static simpnode simp_cvt | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 1770 of file wn_simp_code.h.
References CLASS_PREG, convert_precise(), get_value_type(), Is_Valid_Opcode_Parts(), MTYPE_BS, MTYPE_byte_size, MTYPE_size_min, NULL, OPC_I4I8CVT, OPC_I4U8CVT, OPC_I8I4CVT, OPC_U4I8CVT, OPC_U4U8CVT, OPC_U8I4CVT, OPCODE_desc(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPCODE_UNKNOWN, OPR_ASHR, OPR_BAND, OPR_COMPLEX, OPR_CVT, OPR_ILOAD, OPR_IMAGPART, OPR_LDID, OPR_LSHR, OPR_REALPART, OPR_TAS, OPR_TRUNC, r, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), SIMP_Is_Int_Constant(), SIMP_IS_TYPE_UNSIGNED, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_SimpCreateExp1, source_type(), ST_class, TYPE_ID, UINT64, WHIRL_Keep_Cvt_On, WN_Is_Volatile_Mem(), WN_set_opcode(), and WN_st().
Definition at line 5610 of file wn_simp_code.h.
References BOOL, Fail_FmtAssertion(), FALSE, Host_To_Targ(), INT16, INT64, MTYPE_bit_size, MTYPE_I8, NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_ABS, OPR_ADD, OPR_BAND, OPR_BIOR, OPR_BNOT, OPR_BXOR, OPR_EQ, OPR_GE, OPR_GT, OPR_LAND, OPR_LE, OPR_LIOR, OPR_LNOT, OPR_LT, OPR_MPY, OPR_NE, OPR_NEG, OPR_SELECT, OPR_SHL, OPR_SUB, SHOW_RULE, SIMP_DELETE, SIMP_Flt_ConstVal(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Constant(), SIMP_Is_Flt_Constant(), SIMP_Is_Int_Constant(), SIMP_TYPE_SIZE, SIMPNODE_cvtl_bits, SIMPNODE_kid, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_SimpCreateCvtl, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, SIMPNODE_SimpCreateExp3, SIMPNODE_SimplifyCvtl, Split_64_Bit_Int_Ops, Targ_To_Host(), Targ_WhirlOp(), and TYPE_ID.
Referenced by SIMPNODE_SimplifyCvtl().
Definition at line 1156 of file wn_simp_code.h.
References INT64, MTYPE_I4, MTYPE_I8, MTYPE_U4, NULL, OPR_LDA, r, SIMP_FLOATCONST, SIMP_INTCONST, SIMP_IS_TYPE_FLOATING, SIMPNODE_Compare_Symbols, SIMPNODE_lda_offset, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_Simp_Compare_Trees, and TYPE_ID.
Referenced by cancel_in_relop(), and simp_add_sub().
| static simpnode simp_div | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 2824 of file wn_simp_code.h.
References Div_Split_Allowed, Enable_Cfold_Aggressive, Force_IEEE_Comparisons, Host_To_Targ_Float(), IEEE_Arithmetic, IEEE_INEXACT, INT64, is_floating_equal(), NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_MPY, OPR_NEG, OPR_RECIP, OPR_SQRT, Opt_Level, r, Recip_Allowed, Roundoff_Level, ROUNDOFF_SIMPLE, Rsqrt_Allowed, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_FLOATCONST, SIMP_Flt_ConstVal(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_IS_TYPE_COMPLEX, SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, SIMPNODE_CreateFloatconstFromTcon, SIMPNODE_kid0, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, Targ_Is_Power_Of_Two(), Targ_WhirlOp(), and TYPE_ID.
| static simpnode simp_eq_neq | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 4573 of file wn_simp_code.h.
References ARCH_has_bit_tests, BOOL, cancel_in_relop(), Enable_Cfold_Aggressive, Force_IEEE_Comparisons, get_inverse_relop(), get_lda_info(), INT64, is_add_ok(), is_logop(), IS_POWER_OF_2, is_sub_ok(), LDA_CANNOT_BE_ZERO, LDA_Equal_Address(), MTYPE_bit_size, MTYPE_byte_size, MTYPE_complement, MTYPE_I4, MTYPE_is_unsigned, NO, NULL, offset, OPC_FROM_OPR, OPC_I4SHL, OPC_I8SHL, OPCODE_desc(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPR_ADD, OPR_ASHR, OPR_BAND, OPR_BIOR, OPR_BNOT, OPR_EQ, OPR_GE, OPR_LDA, OPR_LNOT, OPR_LSHR, OPR_LT, OPR_MPY, OPR_SUB, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Int_Constant(), SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_kid_count, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, Targ_To_Host(), TYPE_ID, and YES.
| static simpnode simp_factor | ( | simpnode | k0, | |
| simpnode | k1, | |||
| OPERATOR | op1, | |||
| OPCODE | opc2, | |||
| TYPE_ID | ty, | |||
| INT32 | flag | |||
| ) | [static] |
Definition at line 1198 of file wn_simp_code.h.
References Enable_Cfold_Aggressive, Enable_Cfold_Reassociate, FACTOR_11, FACTOR_12, FACTOR_21, FACTOR_22, FACTOR_OK, NULL, OPC_FROM_OPR, r, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_IS_TYPE_FLOATING, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_Simp_Compare_Trees, and SIMPNODE_SimpCreateExp2.
Referenced by simp_add_sub(), simp_band(), simp_bior(), simp_bxor(), simp_land(), and simp_lior().
| static simpnode simp_factor_idty | ( | simpnode | k0, | |
| simpnode | k1, | |||
| OPERATOR | op1, | |||
| OPCODE | opc2, | |||
| TYPE_ID | ty, | |||
| INT32 | const_only | |||
| ) | [static] |
Definition at line 1305 of file wn_simp_code.h.
References Enable_Cfold_Aggressive, Enable_Cfold_Reassociate, make_identity(), NULL, OPC_FROM_OPR, r, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Is_Constant(), SIMP_IS_TYPE_FLOATING, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_Simp_Compare_Trees, and SIMPNODE_SimpCreateExp2.
Referenced by simp_add_sub(), simp_band(), simp_bior(), simp_bxor(), simp_land(), and simp_lior().
Definition at line 386 of file wn_simp_code.h.
References c, CLASS_CONST, Extract_Complex_Imag(), Extract_Complex_Real(), Fail_FmtAssertion(), Is_True, MTYPE_C10, MTYPE_C4, MTYPE_C8, MTYPE_F10, MTYPE_F4, MTYPE_F8, OPR_ARRAY, OPR_ILOAD, OPR_LDA, OPR_LDID, SIMPNODE_array_index, SIMPNODE_const_val, SIMPNODE_element_size, SIMPNODE_fconst_val, SIMPNODE_GetDefinition(), SIMPNODE_kid, SIMPNODE_load_offset, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_st, ST_class, ST_tcon_val(), TCON_ty, and TYPE_ID.
Referenced by is_floating_equal(), simp_cvtl(), simp_div(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), and SIMPNODE_SimplifyIntrinsic().
Definition at line 379 of file wn_simp_code.h.
References SIMPNODE_const_val, and SIMPNODE_GetDefinition().
Referenced by is_numeric_equal(), simp_add_sub(), simp_band(), simp_bior(), simp_bxor(), simp_cand(), simp_cior(), simp_cvt(), simp_cvtl(), simp_div(), simp_eq_neq(), simp_land(), simp_lior(), simp_min_max(), simp_mod_rem(), simp_power(), simp_relop(), simp_shift(), simp_times(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), SIMPNODE_SimplifyExp3(), and SIMPNODE_SimplifyIntrinsic().
Definition at line 364 of file wn_simp_code.h.
References OPR_CONST, OPR_INTCONST, SIMPNODE_GetDefinition(), SIMPNODE_operator, and TRUE.
Referenced by Fold2_Into_Select(), is_floating_equal(), is_numeric_equal(), simp_add_sub(), simp_cvtl(), simp_factor_idty(), simp_neg(), simp_times(), SIMPNODE_SimplifyExp1(), SIMPNODE_SimplifyExp2_h(), and SIMPNODE_SimplifyIntrinsic().
Definition at line 354 of file wn_simp_code.h.
References OPR_CONST, SIMPNODE_GetDefinition(), SIMPNODE_operator, and TRUE.
Referenced by simp_cvtl(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), and SIMPNODE_SimplifyIntrinsic().
Definition at line 346 of file wn_simp_code.h.
References OPR_INTCONST, SIMPNODE_GetDefinition(), and SIMPNODE_operator.
Referenced by simp_add_sub(), simp_band(), simp_bior(), simp_cvt(), simp_cvtl(), simp_eq_neq(), simp_min_max(), simp_relop(), simp_shift(), SIMPNODE_ConstantFold1(), SIMPNODE_ConstantFold2(), SIMPNODE_SimplifyExp3(), and SIMPNODE_SimplifyIntrinsic().
| static simpnode simp_land | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3748 of file wn_simp_code.h.
References Enable_Cfold_Aggressive, FACTOR_ALL, FALSE, INT64, NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_LIOR, OPR_LNOT, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, simp_factor(), simp_factor_idty(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMPNODE_kid0, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, and TYPE_ID.
| static simpnode simp_lior | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3820 of file wn_simp_code.h.
References Enable_Cfold_Aggressive, FACTOR_ALL, INT64, NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_LAND, OPR_LNOT, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, simp_factor(), simp_factor_idty(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMPNODE_kid0, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, TRUE, and TYPE_ID.
| static simpnode simp_min_max | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3176 of file wn_simp_code.h.
References BOOL, Enable_Cfold_Aggressive, INT32_MAX, INT32_MIN, INT64, MTYPE_I4, MTYPE_I8, MTYPE_U4, MTYPE_U8, NULL, OPCODE_operator(), OPCODE_rtype(), OPR_MAX, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), SIMP_Is_Int_Constant(), SIMPNODE_Simp_Compare_Trees, and UINT64.
| static simpnode simp_mod_rem | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3006 of file wn_simp_code.h.
References BOOL, INT64, IS_POWER_OF_2, NULL, OPC_FROM_OPR, OPCODE_operator(), OPCODE_rtype(), OPR_BAND, OPR_REM, OPR_SUB, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_IS_TYPE_UNSIGNED, SIMPNODE_SimpCreateExp2, and TYPE_ID.
| static simpnode simp_neg | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 1505 of file wn_simp_code.h.
References MTYPE_complement, NULL, OPC_FROM_OPR, OPR_DIV, OPR_MPY, OPR_NEG, OPR_SUB, r, SHOW_RULE, SIMP_DELETE, SIMP_Is_Constant(), SIMP_IS_TYPE_UNSIGNED, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, and TYPE_ID.
| static simpnode simp_not | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 1451 of file wn_simp_code.h.
References ARCH_generate_nor, Force_IEEE_Comparisons, get_inverse_relop(), NULL, OPC_BLNOT, OPC_FROM_OPR, OPC_I4LNOT, OPCODE_desc(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPR_BIOR, OPR_BNOR, OPR_BNOT, r, SHOW_RULE, SIMP_DELETE, SIMP_IS_TYPE_FLOATING, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, and SIMPNODE_SimpCreateExp2.
| static simpnode simp_power | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 3087 of file wn_simp_code.h.
References is_floating_equal(), is_numeric_equal(), NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_BAND, OPR_DIV, OPR_SHL, OPR_SQRT, OPR_SUB, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_FLOATCONST, SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, and TYPE_ID.
| static simpnode simp_recip | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 1565 of file wn_simp_code.h.
References Is_Target_SSE2, MTYPE_F4, NULL, OPC_FROM_OPR, OPCODE_is_load(), OPCODE_operator(), OPCODE_rtype(), OPR_MPY, OPR_RECIP, OPR_RSQRT, OPR_SQRT, r, Roundoff_Level, ROUNDOFF_SIMPLE, Rsqrt_Allowed, SHOW_RULE, SIMP_DELETE, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, and TYPE_ID.
| static simpnode simp_relop | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 4905 of file wn_simp_code.h.
References BOOL, cancel_in_relop(), Enable_Cfold_Aggressive, FALSE, Force_IEEE_Comparisons, INT32_MAX, INT32_MIN, INT64, is_add_ok(), is_sub_ok(), MTYPE_I4, MTYPE_I8, MTYPE_U4, MTYPE_U8, NULL, OPCODE_commutative_op(), OPCODE_desc(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPR_ADD, OPR_GE, OPR_GT, OPR_LE, OPR_LT, OPR_MPY, OPR_SUB, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, Simp_Fold_Unsigned_Relops, SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Int_Constant(), SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, Simp_Unsafe_Relops, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp2, TRUE, and TYPE_ID.
| static simpnode simp_shift | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 4002 of file wn_simp_code.h.
References ARCH_mask_shift_counts, BOOL, create_bitmask(), Enable_compose_bits, Enable_extract_bits, FALSE, get_value_type(), Host_Byte_Sex, INT16, INT64, IS_POWER_OF_2, log2, MIN, MTYPE_bit_size, MTYPE_BS, MTYPE_I4, MTYPE_I8, MTYPE_U4, MTYPE_U8, NULL, OPC_FROM_OPR, OPC_I4EXTRACT_BITS, OPC_I8EXTRACT_BITS, OPC_I8I4CVT, OPC_U4EXTRACT_BITS, OPC_U8EXTRACT_BITS, OPCODE_desc(), OPCODE_operator(), OPCODE_rtype(), OPR_ASHR, OPR_BAND, OPR_COMPOSE_BITS, OPR_CVT, OPR_LSHR, OPR_SHL, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Int_Constant(), SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, SIMP_TYPE, SIMP_TYPE_SIZE, SIMPNODE_CopyNode, SIMPNODE_DELETE, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_SimpCreateDeposit, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, SIMPNODE_SimpCreateExtract, Target_Byte_Sex, tmp, TRUE, TYPE_ID, UINT64, and WHIRL_Keep_Cvt_On.
| static simpnode simp_times | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| BOOL | k0const, | |||
| BOOL | k1const | |||
| ) | [static] |
Definition at line 2543 of file wn_simp_code.h.
References addend, Enable_Cfold_Aggressive, IEEE_Arithmetic, IEEE_INEXACT, INT64, is_floating_equal(), is_ok_to_reassociate(), MTYPE_is_signed, NULL, OPC_FROM_OPR, OPCODE_rtype(), OPR_ADD, OPR_CONST, OPR_DIV, OPR_NEG, OPR_RECIP, OPR_RSQRT, OPR_SQRT, OPR_SUB, r, Roundoff_Level, ROUNDOFF_SIMPLE, SHOW_RULE, SIMP_DELETE, SIMP_DELETE_TREE, SIMP_FLOATCONST, SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Constant(), SIMP_IS_TYPE_COMPLEX, SIMP_IS_TYPE_FLOATING, SIMP_IS_TYPE_INTEGRAL, SIMP_IS_TYPE_UNSIGNED, SIMPNODE_CopyNode, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_Simp_Compare_Trees, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, and TYPE_ID.
Definition at line 5222 of file wn_simp_code.h.
References BOOL, Fail_FmtAssertion(), Host_To_Targ(), MTYPE_bit_size, MTYPE_I8, NULL, OPCODE_desc(), OPCODE_operator(), OPCODE_rtype(), OPR_CVT, OPR_CVTL, OPR_PARM, SHOW_RULE, SIMP_DELETE, SIMP_Flt_ConstVal(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Flt_Constant(), SIMP_Is_Int_Constant(), SIMP_IS_TYPE_INTEGRAL, SIMPNODE_CreateFloatconstFromTcon, SIMPNODE_rtype, Split_64_Bit_Int_Ops, Targ_To_Host(), Targ_WhirlOp(), and TCON_ty.
Referenced by simp_add_sub(), and SIMPNODE_SimplifyExp1().
Definition at line 5273 of file wn_simp_code.h.
References BOOL, Fail_FmtAssertion(), Host_To_Targ(), MTYPE_byte_size, MTYPE_I4, MTYPE_I8, MTYPE_is_integral, MTYPE_signed, Mtype_TransferSign(), Mtype_TransferSize(), MTYPE_V, NULL, OPCODE_desc(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPR_ADD, OPR_DIV, OPR_MPY, OPR_SUB, SHOW_RULE, SIMP_DELETE, SIMP_Flt_ConstVal(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Flt_Constant(), SIMP_Is_Int_Constant(), SIMP_IS_TYPE_INTEGRAL, SIMPNODE_CreateFloatconstFromTcon, SIMPNODE_rtype, Targ_To_Host(), Targ_WhirlOp(), and TCON_ty.
Referenced by simp_add_sub(), and SIMPNODE_SimplifyExp2_h().
Definition at line 243 of file wn_simp_code.h.
References CLASS_PREG, OPR_LDID, Preg_Home(), SIMPNODE_operator, ST_class, WN_load_offset(), and WN_st().
Referenced by SIMP_Flt_ConstVal(), SIMP_Int_ConstVal(), SIMP_Is_Constant(), SIMP_Is_Flt_Constant(), and SIMP_Is_Int_Constant().
Definition at line 853 of file wn_simp_code.h.
References i, INT32, MTYPE_BS, OPCODE_is_expression(), OPR_ARRAY, OPR_COMMA, OPR_COMPOSE_BITS, OPR_CONST, OPR_CSELECT, OPR_CVTL, OPR_EXTRACT_BITS, OPR_IDNAME, OPR_ILDBITS, OPR_ILOAD, OPR_ILOADX, OPR_INTCONST, OPR_INTRINSIC_OP, OPR_LDA, OPR_LDA_LABEL, OPR_LDBITS, OPR_LDID, OPR_MLOAD, OPR_RCOMMA, SIMPNODE_array_base, SIMPNODE_array_dim, SIMPNODE_array_index, SIMPNODE_bit_offset, SIMPNODE_Compare_Symbols, SIMPNODE_const_val, SIMPNODE_cvtl_bits, SIMPNODE_desc, SIMPNODE_element_size, SIMPNODE_field_id, SIMPNODE_i_bit_offset, SIMPNODE_i_field_id, SIMPNODE_idname_offset, SIMPNODE_intrinsic, SIMPNODE_kid, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_kid_count, SIMPNODE_label_number, SIMPNODE_lda_offset, SIMPNODE_load_offset, SIMPNODE_num_dim, SIMPNODE_op_bit_offset, SIMPNODE_op_bit_size, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, and SIMPNODE_st_idx.
| static simpnode SIMPNODE_SimpCreateDeposit | ( | OPCODE | opc, | |
| INT16 | boffset, | |||
| INT16 | bsize, | |||
| simpnode | k0, | |||
| simpnode | k1 | |||
| ) | [static] |
| static simpnode SIMPNODE_SimpCreateExp3 | ( | OPCODE | opc, | |
| simpnode | k0, | |||
| simpnode | k1, | |||
| simpnode | k2 | |||
| ) | [static] |
| static simpnode SIMPNODE_SimpCreateExtract | ( | OPCODE | opc, | |
| INT16 | boffset, | |||
| INT16 | bsize, | |||
| simpnode | k0 | |||
| ) | [static] |
Definition at line 5805 of file wn_simp_code.h.
References NULL, SHOW_TREE, simp_cvtl(), SIMPNODE_enable, SIMPNODE_simp_initialized, and SIMPNODE_Simplify_Initialize.
Definition at line 5538 of file wn_simp_code.h.
References BOOL, FALSE, NULL, OPC_FROM_OPR, OPCODE_is_expression(), OPCODE_operator(), OPCODE_rtype(), OPR_EXTRACT_BITS, OPR_PAREN, OPR_PARM, OPR_SELECT, SHOW_RULE, SHOW_TREE, SIMP_Is_Constant(), simplify_function_table, SIMPNODE_ConstantFold1(), SIMPNODE_enable, SIMPNODE_kid, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_operator, SIMPNODE_simp_initialized, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp3, and SIMPNODE_Simplify_Initialize.
Definition at line 5529 of file wn_simp_code.h.
References SHOW_TREE, and SIMPNODE_SimplifyExp2_h().
Definition at line 5343 of file wn_simp_code.h.
References BOOL, Enable_Cfold_Aggressive, Enable_Cfold_Reassociate, Fold2_Into_Select(), INT, is_ok_to_reassociate(), MTYPE_is_vector, NULL, OPCODE_commutative_op(), OPCODE_is_expression(), OPCODE_operator(), OPCODE_rtype(), OPR_ARRAY, OPR_DIVREM, OPR_ILOAD, OPR_LDID, OPR_MINMAX, result, SHOW_RULE, Simp_Canonicalize, SIMP_DELETE, SIMP_Is_Constant(), simplify_function_table, SIMPNODE_ConstantFold2(), SIMPNODE_enable, SIMPNODE_kid0, SIMPNODE_kid1, SIMPNODE_kid_count, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_simp_initialized, SIMPNODE_SimpCreateExp2, and SIMPNODE_Simplify_Initialize.
Referenced by SIMPNODE_SimplifyExp2().
Definition at line 5833 of file wn_simp_code.h.
References Enable_Cfold_Aggressive, get_inverse_relop(), MTYPE_B, NULL, OPC_FROM_OPR, OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPCODE_UNKNOWN, OPR_CAND, OPR_CIOR, OPR_CSELECT, OPR_CVT, OPR_LNOT, OPR_NE, OPR_SELECT, SHOW_RULE, SIMP_DELETE_TREE, SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Int_Constant(), SIMPNODE_enable, SIMPNODE_opcode, SIMPNODE_operator, SIMPNODE_Simp_Compare_Trees, SIMPNODE_simp_initialized, SIMPNODE_SimpCreateExp1, SIMPNODE_SimpCreateExp2, SIMPNODE_Simplify_Initialize, and TYPE_ID.
Definition at line 6079 of file wn_simp_code.h.
References BOOL, FALSE, Host_To_Targ(), INT, INT64, MAX_INTRINSIC_ARGS, MTYPE_I1, MTYPE_I2, MTYPE_I4, MTYPE_U1, MTYPE_U2, MTYPE_U4, NULL, OPCODE_operator(), OPR_INTRINSIC_OP, OPR_PARM, SHOW_RULE, SHOW_TREE, SIMP_DELETE, SIMP_Flt_ConstVal(), SIMP_Int_ConstVal(), SIMP_INTCONST, SIMP_Is_Constant(), SIMP_Is_Flt_Constant(), SIMP_Is_Int_Constant(), SIMP_IS_TYPE_INTEGRAL, SIMPNODE_CreateFloatconstFromTcon, SIMPNODE_enable, SIMPNODE_kid0, SIMPNODE_operator, SIMPNODE_rtype, SIMPNODE_simp_initialized, SIMPNODE_Simplify_Initialize, Targ_IntrinsicOp(), Targ_To_Host(), TCON_ty, TRUE, and TYPE_ID.
BOOL SIMPNODE_simp_initialized = FALSE [static] |
Definition at line 170 of file wn_simp_code.h.
Referenced by CR_Simplify_Initialize(), SIMPNODE_Simplify_Initialize(), SIMPNODE_SimplifyCvtl(), SIMPNODE_SimplifyExp1(), SIMPNODE_SimplifyExp2_h(), SIMPNODE_SimplifyExp3(), and SIMPNODE_SimplifyIntrinsic().
BOOL trace_rules [static] |
Definition at line 180 of file wn_simp_code.h.
Referenced by CR_Simplify_Initialize(), show_rule(), and SIMPNODE_Simplify_Initialize().
BOOL trace_trees [static] |
Definition at line 175 of file wn_simp_code.h.
Referenced by CR_Simplify_Initialize(), simp_delete(), simp_delete_tree(), and SIMPNODE_Simplify_Initialize().
1.5.6