CFG_NODE_INFO Class Reference

#include <ipa_section.h>

Collaboration diagram for CFG_NODE_INFO:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void Set_type_if ()
void Set_type_do_loop ()
void Set_type_entry ()
void Set_type_else ()
BOOL Is_if () const
BOOL Is_do_loop () const
BOOL Is_entry () const
BOOL Is_else () const
void Set_has_calls ()
void Set_is_executed ()
BOOL Has_calls () const
BOOL Is_executed () const
void Set_cd_index (INT index)
INT Get_cd_index () const
 CFG_NODE_INFO (MEM_POOL *m, INT16 index)
void Init (MEM_POOL *m)
void Init_Out ()
void Add_array_param (PROJECTED_REGION *p, mINT32 sym_index, mINT32 element_size, INT16 callsite_id, INT16 actual_id)
void Add_formal_array (PROJECTED_REGION *p, mINT32 element_size, mINT32 idx_symbol, mINT32 idx_formal)
void Add_def_array (PROJECTED_REGION *p, mINT32 element_size, mINT32 sym_index)
void Add_may_def_array (PROJECTED_REGION *p, mINT32 element_size, mINT32 sym_index)
void Add_use_array (PROJECTED_REGION *p, mINT32 element_size, mINT32 sym_index)
void Add_may_use_array (PROJECTED_REGION *p, mINT32 element_size, mINT32 sym_index)
void Add_scalar_def (mINT32 id)
void Add_scalar_use (mINT32 id)
void Add_scalar_reduc (mINT32 id)
void Add_array_reduc (mINT32 id)
void Add_array_may_reduc (mINT32 id)
void Add_scalar_may_reduc (mINT32 id)
void Add_scalar_may_def (mINT32 id)
void Add_scalar_may_use (mINT32 id)
INT Add_scalar_ref_passed (mINT32 id, mINT16 callsite_id)
INT Add_scalar_ref_may_passed (mINT32 id, mINT16 callsite_id)
ARRAY_OF_REGION_ARRAYSGet_def_array () const
ARRAY_OF_REGION_ARRAYSGet_use_array () const
ARRAY_OF_REGION_ARRAYSGet_param_array () const
ARRAY_OF_REGION_ARRAYSGet_formal_array () const
INT_ARRAYGet_scalar_array () const
INT_ARRAYGet_scalar_def_array () const
INT_ARRAYGet_scalar_use_array () const
INT_ARRAYGet_scalar_reduc_array () const
INT_ARRAYGet_array_reduc () const
LOOPINFOGet_loopinfo () const
void Set_loopinfo (LOOPINFO *l)
void Print (FILE *fp=stderr)
void Print_file (FILE *fp=stderr)
void WB_Print (FILE *fp, INT cfg_index)
void Set_def_count (INT count)
void Set_def_index (INT index)
INT Get_def_count () const
INT Get_def_index () const
void Set_use_count (INT count)
void Set_use_index (INT index)
INT Get_use_count () const
INT Get_use_index () const
void Set_param_count (INT count)
void Set_param_index (INT index)
INT Get_param_count () const
INT Get_param_index () const
void Set_scalar_count (INT count)
void Set_scalar_index (INT index)
INT Get_scalar_count () const
INT Get_scalar_index () const
void Set_formal_count (INT count)
void Set_formal_index (INT index)
INT Get_formal_count () const
INT Get_formal_index () const
void Set_loop_index (INT index)
INT Get_loop_index () const
void Set_else_index (INT index)
INT Get_else_index ()
void Set_if_index (INT index)
INT Get_if_index ()

Private Types

enum  _cfg_type {
  CFG_IF = 1, CFG_DO_LOOP = 2, CFG_ENTRY = 3, CFG_ELSE = 4,
  CFG_UNKNOWN = 5
}
enum  _cfg_state { CFG_STATE_CLEAR = 0x0, CFG_HAS_CALLS = 0x1, CFG_IS_EXECUTED = 0x2 }

Private Attributes

union {
   ARRAY_OF_REGION_ARRAYS *   _def
   mINT32   _def_index
u1
union {
   ARRAY_OF_REGION_ARRAYS *   _use
   mINT32   _use_index
u2
union {
   ARRAY_OF_REGION_ARRAYS *   _param
   mINT32   _param_index
u3
union {
   INT_ARRAY *   _scalar_info
   mINT32   _scalar_index
u4
union {
   LOOPINFO *   _loop
   mINT32   _index
u5
union {
   ARRAY_OF_REGION_ARRAYS *   _formal
   mINT32   _formal_index
u6
mINT16 _def_count
mINT16 _use_count
mINT16 _param_count
mINT16 _scalar_count
mINT16 _formal_count
enum CFG_NODE_INFO::_cfg_type _type
enum CFG_NODE_INFO::_cfg_state _state
mINT32 _cd_index: 24


Detailed Description

Definition at line 1175 of file ipa_section.h.


Member Enumeration Documentation

enum CFG_NODE_INFO::_cfg_state [private]

Enumerator:
CFG_STATE_CLEAR 
CFG_HAS_CALLS 
CFG_IS_EXECUTED 

Definition at line 1217 of file ipa_section.h.

enum CFG_NODE_INFO::_cfg_type [private]

Enumerator:
CFG_IF 
CFG_DO_LOOP 
CFG_ENTRY 
CFG_ELSE 
CFG_UNKNOWN 

Definition at line 1209 of file ipa_section.h.


Constructor & Destructor Documentation

CFG_NODE_INFO::CFG_NODE_INFO ( MEM_POOL m,
INT16  index 
) [inline]

Definition at line 1257 of file ipa_section.h.

References _cd_index, _state, _type, CFG_STATE_CLEAR, CFG_UNKNOWN, CXX_NEW, u1, u2, u3, u4, u5, and u6.


Member Function Documentation

void CFG_NODE_INFO::Add_array_may_reduc ( mINT32  id  ) 

void CFG_NODE_INFO::Add_array_param ( PROJECTED_REGION p,
mINT32  sym_index,
mINT32  element_size,
INT16  callsite_id,
INT16  actual_id 
)

void CFG_NODE_INFO::Add_array_reduc ( mINT32  id  ) 

void CFG_NODE_INFO::Add_def_array ( PROJECTED_REGION p,
mINT32  element_size,
mINT32  sym_index 
)

void CFG_NODE_INFO::Add_formal_array ( PROJECTED_REGION p,
mINT32  element_size,
mINT32  idx_symbol,
mINT32  idx_formal 
)

void CFG_NODE_INFO::Add_may_def_array ( PROJECTED_REGION p,
mINT32  element_size,
mINT32  sym_index 
)

void CFG_NODE_INFO::Add_may_use_array ( PROJECTED_REGION p,
mINT32  element_size,
mINT32  sym_index 
)

void CFG_NODE_INFO::Add_scalar_def ( mINT32  id  ) 

void CFG_NODE_INFO::Add_scalar_may_def ( mINT32  id  ) 

void CFG_NODE_INFO::Add_scalar_may_reduc ( mINT32  id  ) 

void CFG_NODE_INFO::Add_scalar_may_use ( mINT32  id  ) 

void CFG_NODE_INFO::Add_scalar_reduc ( mINT32  id  ) 

INT CFG_NODE_INFO::Add_scalar_ref_may_passed ( mINT32  id,
mINT16  callsite_id 
)

INT CFG_NODE_INFO::Add_scalar_ref_passed ( mINT32  id,
mINT16  callsite_id 
)

void CFG_NODE_INFO::Add_scalar_use ( mINT32  id  ) 

void CFG_NODE_INFO::Add_use_array ( PROJECTED_REGION p,
mINT32  element_size,
mINT32  sym_index 
)

INT_ARRAY* CFG_NODE_INFO::Get_array_reduc (  )  const [inline]

Definition at line 1320 of file ipa_section.h.

References u4.

Referenced by Add_array_may_reduc(), and Add_array_reduc().

INT CFG_NODE_INFO::Get_cd_index (  )  const [inline]

Definition at line 1255 of file ipa_section.h.

References _cd_index.

Referenced by Print_file(), and WB_Print().

ARRAY_OF_REGION_ARRAYS* CFG_NODE_INFO::Get_def_array (  )  const [inline]

Definition at line 1311 of file ipa_section.h.

References u1.

Referenced by Add_def_array(), Add_may_def_array(), and Print().

INT CFG_NODE_INFO::Get_def_count (  )  const [inline]

Definition at line 1333 of file ipa_section.h.

References _def_count.

Referenced by Print_file(), and WB_Print().

INT CFG_NODE_INFO::Get_def_index (  )  const [inline]

Definition at line 1334 of file ipa_section.h.

References u1.

Referenced by Print_file(), and WB_Print().

INT CFG_NODE_INFO::Get_else_index (  )  [inline]

Definition at line 1371 of file ipa_section.h.

References Fail_FmtAssertion(), Is_if(), and u5.

Referenced by Print_file(), and WB_Print().

Here is the call graph for this function:

ARRAY_OF_REGION_ARRAYS* CFG_NODE_INFO::Get_formal_array (  )  const [inline]

Definition at line 1314 of file ipa_section.h.

References u6.

Referenced by Add_formal_array().

INT CFG_NODE_INFO::Get_formal_count (  )  const [inline]

Definition at line 1357 of file ipa_section.h.

References _formal_count.

Referenced by Print_file(), and WB_Print().

INT CFG_NODE_INFO::Get_formal_index (  )  const [inline]

Definition at line 1358 of file ipa_section.h.

References u6.

Referenced by Print_file(), and WB_Print().

INT CFG_NODE_INFO::Get_if_index (  )  [inline]

Definition at line 1388 of file ipa_section.h.

References Fail_FmtAssertion(), Is_else(), and u5.

Referenced by Print_file(), and WB_Print().

Here is the call graph for this function:

INT CFG_NODE_INFO::Get_loop_index (  )  const [inline]

Definition at line 1361 of file ipa_section.h.

References u5.

Referenced by Print_file(), and WB_Print().

LOOPINFO* CFG_NODE_INFO::Get_loopinfo (  )  const [inline]

Definition at line 1322 of file ipa_section.h.

References u5.

ARRAY_OF_REGION_ARRAYS* CFG_NODE_INFO::Get_param_array (  )  const [inline]

Definition at line 1313 of file ipa_section.h.

References u3.

Referenced by Add_array_param().

INT CFG_NODE_INFO::Get_param_count (  )  const [inline]

Definition at line 1345 of file ipa_section.h.

References _param_count.

Referenced by Print_file(), and WB_Print().

INT CFG_NODE_INFO::Get_param_index (  )  const [inline]

Definition at line 1346 of file ipa_section.h.

References u3.

Referenced by Print_file(), and WB_Print().

INT_ARRAY* CFG_NODE_INFO::Get_scalar_array (  )  const [inline]

Definition at line 1316 of file ipa_section.h.

References u4.

Referenced by Add_scalar_ref_may_passed(), and Add_scalar_ref_passed().

INT CFG_NODE_INFO::Get_scalar_count (  )  const [inline]

Definition at line 1351 of file ipa_section.h.

References _scalar_count.

Referenced by Print_file(), and WB_Print().

INT_ARRAY* CFG_NODE_INFO::Get_scalar_def_array (  )  const [inline]

Definition at line 1317 of file ipa_section.h.

References u4.

Referenced by Add_scalar_def(), Add_scalar_may_def(), Add_scalar_may_reduc(), Add_scalar_may_use(), and Print().

INT CFG_NODE_INFO::Get_scalar_index (  )  const [inline]

Definition at line 1352 of file ipa_section.h.

References u4.

Referenced by Print_file(), and WB_Print().

INT_ARRAY* CFG_NODE_INFO::Get_scalar_reduc_array (  )  const [inline]

Definition at line 1319 of file ipa_section.h.

References u4.

Referenced by Add_scalar_reduc().

INT_ARRAY* CFG_NODE_INFO::Get_scalar_use_array (  )  const [inline]

Definition at line 1318 of file ipa_section.h.

References u4.

Referenced by Add_scalar_use().

ARRAY_OF_REGION_ARRAYS* CFG_NODE_INFO::Get_use_array (  )  const [inline]

Definition at line 1312 of file ipa_section.h.

References u2.

Referenced by Add_may_use_array(), Add_use_array(), and Print().

INT CFG_NODE_INFO::Get_use_count (  )  const [inline]

Definition at line 1339 of file ipa_section.h.

References _use_count.

Referenced by Print_file(), and WB_Print().

INT CFG_NODE_INFO::Get_use_index (  )  const [inline]

Definition at line 1340 of file ipa_section.h.

References u2.

Referenced by Print_file(), and WB_Print().

BOOL CFG_NODE_INFO::Has_calls (  )  const [inline]

Definition at line 1251 of file ipa_section.h.

References _state, and CFG_HAS_CALLS.

Referenced by Print(), Print_file(), and WB_Print().

void CFG_NODE_INFO::Init ( MEM_POOL m  )  [inline]

Definition at line 1269 of file ipa_section.h.

References _cd_index, _state, _type, CFG_STATE_CLEAR, CFG_UNKNOWN, CXX_NEW, NULL, u1, u2, u3, u4, u5, and u6.

void CFG_NODE_INFO::Init_Out (  )  [inline]

Definition at line 1281 of file ipa_section.h.

References _type, and CFG_UNKNOWN.

BOOL CFG_NODE_INFO::Is_do_loop (  )  const [inline]

Definition at line 1240 of file ipa_section.h.

References _type, and CFG_DO_LOOP.

Referenced by Print_file(), and WB_Print().

BOOL CFG_NODE_INFO::Is_else (  )  const [inline]

Definition at line 1242 of file ipa_section.h.

References _type, and CFG_ELSE.

Referenced by Get_if_index(), Print_file(), Set_if_index(), and WB_Print().

BOOL CFG_NODE_INFO::Is_entry (  )  const [inline]

Definition at line 1241 of file ipa_section.h.

References _type, and CFG_ENTRY.

Referenced by Print_file(), and WB_Print().

BOOL CFG_NODE_INFO::Is_executed (  )  const [inline]

Definition at line 1252 of file ipa_section.h.

References _state, and CFG_IS_EXECUTED.

Referenced by Print_file().

BOOL CFG_NODE_INFO::Is_if (  )  const [inline]

Definition at line 1239 of file ipa_section.h.

References _type, and CFG_IF.

Referenced by Get_else_index(), Print_file(), Set_else_index(), and WB_Print().

void CFG_NODE_INFO::Print ( FILE *  fp = stderr  ) 

void CFG_NODE_INFO::Print_file ( FILE *  fp = stderr  ) 

void CFG_NODE_INFO::Set_cd_index ( INT  index  )  [inline]

Definition at line 1254 of file ipa_section.h.

References _cd_index.

void CFG_NODE_INFO::Set_def_count ( INT  count  )  [inline]

Definition at line 1330 of file ipa_section.h.

References _def_count.

void CFG_NODE_INFO::Set_def_index ( INT  index  )  [inline]

Definition at line 1331 of file ipa_section.h.

References u1.

void CFG_NODE_INFO::Set_else_index ( INT  index  )  [inline]

Definition at line 1364 of file ipa_section.h.

References Fail_FmtAssertion(), Is_if(), and u5.

Here is the call graph for this function:

void CFG_NODE_INFO::Set_formal_count ( INT  count  )  [inline]

Definition at line 1354 of file ipa_section.h.

References _formal_count.

void CFG_NODE_INFO::Set_formal_index ( INT  index  )  [inline]

Definition at line 1355 of file ipa_section.h.

References u6.

void CFG_NODE_INFO::Set_has_calls (  )  [inline]

Definition at line 1248 of file ipa_section.h.

References _state, and CFG_HAS_CALLS.

void CFG_NODE_INFO::Set_if_index ( INT  index  )  [inline]

Definition at line 1380 of file ipa_section.h.

References Fail_FmtAssertion(), Is_else(), and u5.

Here is the call graph for this function:

void CFG_NODE_INFO::Set_is_executed (  )  [inline]

Definition at line 1249 of file ipa_section.h.

References _state, and CFG_IS_EXECUTED.

void CFG_NODE_INFO::Set_loop_index ( INT  index  )  [inline]

Definition at line 1360 of file ipa_section.h.

References u5.

void CFG_NODE_INFO::Set_loopinfo ( LOOPINFO l  )  [inline]

Definition at line 1323 of file ipa_section.h.

References u5.

void CFG_NODE_INFO::Set_param_count ( INT  count  )  [inline]

Definition at line 1342 of file ipa_section.h.

References _param_count.

void CFG_NODE_INFO::Set_param_index ( INT  index  )  [inline]

Definition at line 1343 of file ipa_section.h.

References u3.

void CFG_NODE_INFO::Set_scalar_count ( INT  count  )  [inline]

Definition at line 1348 of file ipa_section.h.

References _scalar_count.

void CFG_NODE_INFO::Set_scalar_index ( INT  index  )  [inline]

Definition at line 1349 of file ipa_section.h.

References u4.

void CFG_NODE_INFO::Set_type_do_loop (  )  [inline]

Definition at line 1235 of file ipa_section.h.

References _type, and CFG_DO_LOOP.

void CFG_NODE_INFO::Set_type_else (  )  [inline]

Definition at line 1237 of file ipa_section.h.

References _type, and CFG_ELSE.

void CFG_NODE_INFO::Set_type_entry (  )  [inline]

Definition at line 1236 of file ipa_section.h.

References _type, and CFG_ENTRY.

void CFG_NODE_INFO::Set_type_if (  )  [inline]

Definition at line 1234 of file ipa_section.h.

References _type, and CFG_IF.

void CFG_NODE_INFO::Set_use_count ( INT  count  )  [inline]

Definition at line 1336 of file ipa_section.h.

References _use_count.

void CFG_NODE_INFO::Set_use_index ( INT  index  )  [inline]

Definition at line 1337 of file ipa_section.h.

References u2.

void CFG_NODE_INFO::WB_Print ( FILE *  fp,
INT  cfg_index 
)


Member Data Documentation

Definition at line 1226 of file ipa_section.h.

Referenced by CFG_NODE_INFO(), Get_cd_index(), Init(), and Set_cd_index().

Definition at line 1179 of file ipa_section.h.

Definition at line 1203 of file ipa_section.h.

Referenced by Get_def_count(), and Set_def_count().

Definition at line 1180 of file ipa_section.h.

Definition at line 1199 of file ipa_section.h.

Definition at line 1207 of file ipa_section.h.

Referenced by Get_formal_count(), and Set_formal_count().

Definition at line 1200 of file ipa_section.h.

Definition at line 1196 of file ipa_section.h.

Definition at line 1195 of file ipa_section.h.

Definition at line 1187 of file ipa_section.h.

Definition at line 1205 of file ipa_section.h.

Referenced by Get_param_count(), and Set_param_count().

Definition at line 1188 of file ipa_section.h.

Definition at line 1206 of file ipa_section.h.

Referenced by Get_scalar_count(), and Set_scalar_count().

Definition at line 1192 of file ipa_section.h.

Definition at line 1191 of file ipa_section.h.

Definition at line 1183 of file ipa_section.h.

Definition at line 1204 of file ipa_section.h.

Referenced by Get_use_count(), and Set_use_count().

Definition at line 1184 of file ipa_section.h.

union { ... } CFG_NODE_INFO::u1 [private]

union { ... } CFG_NODE_INFO::u2 [private]

union { ... } CFG_NODE_INFO::u3 [private]

union { ... } CFG_NODE_INFO::u4 [private]

union { ... } CFG_NODE_INFO::u5 [private]

union { ... } CFG_NODE_INFO::u6 [private]


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

Generated on Fri Jul 24 05:14:32 2009 for OpenADFortTk (extended to Open64) by  doxygen 1.5.7.1