#include "defs.h"#include "mtypes.h"#include "opcode_core.h"

Go to the source code of this file.
Defines | |
| #define | opt_cvtl_rule_INCLUDED "opt_cvtl_rule.h" |
Enumerations | |
| enum | { NOT_AT_ALL, NEED_CVT, NEED_CVTL } |
Functions | |
| TYPE_ID | Adjust_signed_type (TYPE_ID rtype, INT size, WN *wn) |
| TYPE_ID | Actual_cvtl_type (OPCODE opc, INT bits) |
| TYPE_ID | Actual_result_type (WN *wn) |
| TYPE_ID | Actual_signed_type (TYPE_ID rtype, INT size, WN *wn) |
| BOOL | Types_are_compatible (TYPE_ID t1, TYPE_ID t2) |
| BOOL | Types_are_compatible (TYPE_ID t1, WN *wn) |
| INT | Need_type_conversion (TYPE_ID from_ty, TYPE_ID to_ty, OPCODE *opc) |
| INT | Need_load_type_conversion (BOOL source_sign_extd, BOOL target_sign_extd, TYPE_ID to_ty, TYPE_ID dsc_ty, OPCODE *opc) |
| INT | Actual_data_size (WN *wn) |
| #define opt_cvtl_rule_INCLUDED "opt_cvtl_rule.h" |
Definition at line 48 of file opt_cvtl_rule.h.
| anonymous enum |
Definition at line 70 of file opt_cvtl_rule.h.
Definition at line 371 of file opt_cvtl_rule.cxx.
References OPCODE_rtype(), and Rebuild_rtype().

Definition at line 268 of file opt_cvtl_rule.cxx.
References Actual_data_size(), MTYPE_CLASS_INTEGER, MTYPE_is_integral, MTYPE_is_signed, MTYPE_is_unsigned, MTYPE_size_min, MTYPE_type_class, OPR_ASHR, OPR_BAND, OPR_BIOR, OPR_CVTL, OPR_ILDBITS, OPR_ILOAD, OPR_INTCONST, OPR_LDBITS, OPR_LDID, OPR_LSHR, OPR_SHL, Pointer_type, val, WN_bit_size(), WN_const_val(), WN_cvtl_bits(), WN_desc(), WN_kid0(), WN_kid1(), WN_operator(), and WN_rtype().
Referenced by Actual_data_size(), Actual_result_type(), and Adjust_signed_type().

Definition at line 380 of file opt_cvtl_rule.cxx.
References Actual_data_size(), MTYPE_CLASS_INTEGER, MTYPE_type_class, OPCODE_operator(), OPCODE_rtype(), OPR_ASHR, OPR_BAND, OPR_BIOR, OPR_CVTL, OPR_ILDBITS, OPR_ILOAD, OPR_INTCONST, OPR_LDBITS, OPR_LDID, OPR_LSHR, OPR_SHL, Rebuild_rtype(), and WN_opcode().
Referenced by Types_are_compatible().

Definition at line 409 of file opt_cvtl_rule.cxx.
References Actual_data_size(), MTYPE_is_integral, MTYPE_is_unsigned, and Rebuild_rtype().

| INT Need_load_type_conversion | ( | BOOL | source_sign_extd, | |
| BOOL | target_sign_extd, | |||
| TYPE_ID | to_ty, | |||
| TYPE_ID | dsc_ty, | |||
| OPCODE * | opc | |||
| ) |
Definition at line 177 of file opt_cvtl_rule.cxx.
References Is_True, MTYPE_BS, MTYPE_I4, MTYPE_is_integral, MTYPE_size_min, OPC_I4CVTL, OPC_I8CVTL, OPC_U4CVTL, OPC_U4U8CVT, OPC_U8CVTL, and OPC_U8U4CVT.
Definition at line 120 of file opt_cvtl_rule.cxx.
References MTYPE_is_integral, NULL, OPCODE_make_op(), and OPR_CVT.
Referenced by Types_are_compatible().

Definition at line 214 of file opt_cvtl_rule.cxx.
References MTYPE_CLASS_UNSIGNED_INTEGER, MTYPE_type_class, and Need_type_conversion().
Referenced by Types_are_compatible().

Definition at line 231 of file opt_cvtl_rule.cxx.
References Actual_result_type(), and Types_are_compatible().

1.7.1