Defines | Enumerations | Functions

opt_cvtl_rule.h File Reference

#include "defs.h"
#include "mtypes.h"
#include "opcode_core.h"
Include dependency graph for opt_cvtl_rule.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define opt_cvtl_rule_INCLUDED   "opt_cvtl_rule.h"

Definition at line 48 of file opt_cvtl_rule.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
NOT_AT_ALL 
NEED_CVT 
NEED_CVTL 

Definition at line 70 of file opt_cvtl_rule.h.


Function Documentation

TYPE_ID Actual_cvtl_type ( OPCODE  opc,
INT  bits 
)

Definition at line 371 of file opt_cvtl_rule.cxx.

References OPCODE_rtype(), and Rebuild_rtype().

Here is the call graph for this function:

INT Actual_data_size ( WN wn  ) 
TYPE_ID Actual_result_type ( WN wn  ) 
TYPE_ID Actual_signed_type ( TYPE_ID  rtype,
INT  size,
WN wn 
)
TYPE_ID Adjust_signed_type ( TYPE_ID  rtype,
INT  size,
WN wn 
)

Definition at line 409 of file opt_cvtl_rule.cxx.

References Actual_data_size(), MTYPE_is_integral, MTYPE_is_unsigned, and Rebuild_rtype().

Here is the call graph for this function:

INT Need_load_type_conversion ( BOOL  source_sign_extd,
BOOL  target_sign_extd,
TYPE_ID  to_ty,
TYPE_ID  dsc_ty,
OPCODE opc 
)
INT Need_type_conversion ( TYPE_ID  from_ty,
TYPE_ID  to_ty,
OPCODE opc 
)

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().

Here is the call graph for this function:

BOOL Types_are_compatible ( TYPE_ID  t1,
TYPE_ID  t2 
)

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().

Here is the call graph for this function:

BOOL Types_are_compatible ( TYPE_ID  t1,
WN wn 
)

Definition at line 231 of file opt_cvtl_rule.cxx.

References Actual_result_type(), and Types_are_compatible().

Here is the call graph for this function: