Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

IPO_CLONE Class Reference

#include <clone.h>

Collaboration diagram for IPO_CLONE:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IPO_CLONE (WN *pu, SCOPE *scope_tab, SYMTAB_IDX symtab_idx, WN_MAP_TAB *map_tab, MEM_POOL *map_pool, MEM_POOL *m)
 IPO_CLONE (WN_MAP_TAB *caller, WN_MAP_TAB *callee, WN_MAP parent, SCOPE *callee_scope_tab=NULL, SCOPE *caller_scope_tab=NULL, SYMTAB_IDX callee_symtab_idx=0, SYMTAB_IDX caller_symtab_idx=0, IPO_SYMTAB *cloned_symtab=NULL, MEM_POOL *map_pool=NULL, BOOL same_file=TRUE, mUINT16 filenum=0)
 IPO_CLONE (IPO_SYMTAB *ipo_symtab)
void Set_Entry_Point (WN *, WN *, ST *)
WNClone_Tree (WN *, ST *clone_st=NULL)
void New_Clone (ST *clone_st=NULL)
void Promote_Statics ()
WNGet_Cloned_PU () const
SCOPEGet_Cloned_Symtab () const
char * Get_Func_Name ()
WN_MAP_TABGet_Cloned_maptab ()
WN_MAP Get_parent_map ()
STGet_Func_ST ()
IPO_SYMTABGet_sym ()

Private Member Functions

void Fix_ST (WN *, WN *)
void Fix_TY (WN *, WN *)
void Fix_INITO (WN *cloned_wn, WN *wn)
WNCopy_Node (const WN *src_wn)

Private Attributes

WN_orig_pu
WN_cloned_pu
IPO_SYMTAB_sym
WN_MAP_TAB_orig_map_tab
WN_MAP_TAB_cloned_map_tab
WN_MAP _parent_map
MEM_POOL_mem
BOOL _same_file
mUINT16 _cloned_node_file_id
WN_raw_buffer
UINT _raw_buf_size

Static Private Attributes

static INT _label = 0
static const INT _default_buf_size = 2048

Detailed Description

Definition at line 359 of file clone.h.


Constructor & Destructor Documentation

IPO_CLONE::IPO_CLONE ( WN pu,
SCOPE scope_tab,
SYMTAB_IDX  symtab_idx,
WN_MAP_TAB map_tab,
MEM_POOL map_pool,
MEM_POOL m 
) [inline]

Definition at line 402 of file clone.h.

IPO_CLONE::IPO_CLONE ( WN_MAP_TAB caller,
WN_MAP_TAB callee,
WN_MAP  parent,
SCOPE callee_scope_tab = NULL,
SCOPE caller_scope_tab = NULL,
SYMTAB_IDX  callee_symtab_idx = 0,
SYMTAB_IDX  caller_symtab_idx = 0,
IPO_SYMTAB cloned_symtab = NULL,
MEM_POOL map_pool = NULL,
BOOL  same_file = TRUE,
mUINT16  filenum = 0 
) [inline]

Definition at line 422 of file clone.h.

References CXX_NEW, Malloc_Mem_Pool, and NULL.

IPO_CLONE::IPO_CLONE ( IPO_SYMTAB ipo_symtab  )  [inline]

Definition at line 463 of file clone.h.


Member Function Documentation

WN * IPO_CLONE::Clone_Tree ( WN wn,
ST clone_st = NULL 
)
WN * IPO_CLONE::Copy_Node ( const WN src_wn  )  [private]
void IPO_CLONE::Fix_INITO ( WN cloned_wn,
WN wn 
) [private]

Definition at line 248 of file clone.cxx.

References _sym, FmtAssert, IPO_SYMTAB::Get_Cloned_INITO_IDX(), IPO_SYMTAB::Get_INITO(), IPO_SYMTAB::Get_INITO_IDX(), and WN_ereg_supp().

Referenced by Clone_Tree().

Here is the call graph for this function:

void IPO_CLONE::Fix_ST ( WN cloned_wn,
WN wn 
) [private]
void IPO_CLONE::Fix_TY ( WN ,
WN  
) [private]
WN_MAP_TAB* IPO_CLONE::Get_Cloned_maptab (  )  [inline]

Definition at line 495 of file clone.h.

Referenced by DRA_Add_Clone().

WN* IPO_CLONE::Get_Cloned_PU (  )  const [inline]

Definition at line 489 of file clone.h.

Referenced by DRA_Add_Clone().

SCOPE* IPO_CLONE::Get_Cloned_Symtab (  )  const [inline]

Definition at line 491 of file clone.h.

char* IPO_CLONE::Get_Func_Name (  )  [inline]

Definition at line 493 of file clone.h.

References ST_name(), and WN_st().

Here is the call graph for this function:

ST* IPO_CLONE::Get_Func_ST (  )  [inline]

Definition at line 499 of file clone.h.

References WN_st().

Referenced by DRA_Add_Clone().

Here is the call graph for this function:

WN_MAP IPO_CLONE::Get_parent_map (  )  [inline]

Definition at line 497 of file clone.h.

IPO_SYMTAB* IPO_CLONE::Get_sym (  )  [inline]

Definition at line 501 of file clone.h.

Referenced by DRA_Add_Clone().

void IPO_CLONE::New_Clone ( ST clone_st = NULL  ) 
void IPO_CLONE::Promote_Statics ( void   )  [inline]

Definition at line 486 of file clone.h.

void IPO_CLONE::Set_Entry_Point ( WN wn,
WN cloned_wn,
ST cloned_st 
)

Member Data Documentation

Definition at line 372 of file clone.h.

Referenced by Clone_Tree(), and New_Clone().

Definition at line 380 of file clone.h.

Referenced by Copy_Node().

Definition at line 364 of file clone.h.

Referenced by New_Clone().

const INT IPO_CLONE::_default_buf_size = 2048 [static, private]

Definition at line 369 of file clone.h.

Referenced by Copy_Node().

INT IPO_CLONE::_label = 0 [static, private]

Definition at line 368 of file clone.h.

Definition at line 376 of file clone.h.

Referenced by New_Clone().

Definition at line 371 of file clone.h.

WN* IPO_CLONE::_orig_pu [private]

Definition at line 363 of file clone.h.

Referenced by New_Clone().

Definition at line 374 of file clone.h.

Referenced by Clone_Tree(), and New_Clone().

Definition at line 384 of file clone.h.

Referenced by Copy_Node().

Definition at line 383 of file clone.h.

Referenced by Copy_Node().

Definition at line 378 of file clone.h.

Definition at line 366 of file clone.h.

Referenced by Clone_Tree(), Fix_INITO(), Fix_ST(), New_Clone(), and Set_Entry_Point().


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