dra_clone.cxx File Reference

#include <alloca.h>
#include <unistd.h>
#include "pu_info.h"
#include "defs.h"
#include "wn.h"
#include "wn_map.h"
#include "wn_util.h"
#include "symtab.h"
#include "strtab.h"
#include "mempool.h"
#include "cxx_memory.h"
#include "erbe.h"
#include "errors.h"
#include "dwarf_DST_mem.h"
#include "clone.h"
#include "clone_DST_utils.h"
#include "dra_demangle.h"
#include "dra_internal.h"
Include dependency graph for dra_clone.cxx:

Go to the source code of this file.

Defines

#define ONST(x, y)   (y)

Functions

static BOOL DRA_Clone_Initialize (void)
static BOOL DRA_Process_Requests (char *tir_names)
static BOOL DRA_Parse_Clone_Name (char *clone_name)
static void DRA_Clone_Instantiate (PU_Info *orig_pu, BOOL pu_has_feedback, STRING_LIST *tir_list, DRA_HASH_TABLE *dra_table)
static char * DRA_New_Clone_Sig (WN *pu_wn, char *clone_name, DRA_HASH_TABLE *dra_table)
static void DRA_Add_Clone (PU_Info *orig_pu, MEM_POOL *mem_pool, STR_IDX clone_name, char *arg_sig, BOOL pu_has_feedback)
static void DRA_Insert_Pragmas (WN *pu_wn, char *arg_sig)
static void DRA_Process_Commons (DRA_HASH_TABLE *dra_table, DRA_COMMON_HASH_TABLE *)
static void DRA_Collect_Commons (WN *pu, DRA_COMMON_HASH_TABLE *dra_common_ht)
static void DRA_Process_Globals (DRA_HASH_TABLE *dra_table)
static BOOL DRA_Info_Matches_Encoding (DRA_INFO *dra, char *arg_sig)
TY_IDX Get_Original_Type (ST *st)
TY_IDX Get_Array_Type (ST *st)
void DRA_Initialize (void)
void DRA_Finalize (void)
void DRA_Processing (PU_Info *pu_info, WN *pu, BOOL pu_has_feedback)
static WNFind_Insertion_Point (WN *pu_wn, char *arg_sig)

Variables

BOOL Run_Dsm_Cloner = FALSE
BOOL Run_Dsm_Common_Check = FALSE
BOOL Run_Dsm_Check = FALSE
NAME_ST_TABLEDRA_func_table = NULL
MEM_POOL DRA_name_pool
MEM_POOLDRA_name_pool_ptr = NULL
DRA_GLOBAL_HASH_TABLEdra_global = NULL
static STRING_LIST_TABLEDRA_clone_table
static MEM_POOL DRA_clone_pool
static MEM_POOLDRA_clone_pool_ptr = NULL
static MEM_POOL DRA_check_pool
static MEM_POOLDRA_check_pool_ptr = NULL

Define Documentation

#define ONST ( x,
 )     (y)

Function Documentation

static void DRA_Add_Clone ( PU_Info orig_pu,
MEM_POOL mem_pool,
STR_IDX  clone_name,
char *  arg_sig,
BOOL  pu_has_feedback 
) [static]
static BOOL DRA_Clone_Initialize ( void   )  [static]

Definition at line 444 of file dra_clone.cxx.

References CXX_NEW, DRA_file_mmap, DRA_FILE_SEPARATOR, DRA_Mem_Unmap_File(), DRA_Process_Requests(), MEM_POOL_Initialize, MEM_POOL_Push, MEM_src_pool, NULL, and TRUE.

Referenced by DRA_Initialize().

Here is the call graph for this function:

static void DRA_Clone_Instantiate ( PU_Info orig_pu,
BOOL  pu_has_feedback,
STRING_LIST tir_list,
DRA_HASH_TABLE dra_table 
) [static]
static void DRA_Collect_Commons ( WN pu,
DRA_COMMON_HASH_TABLE dra_common_ht 
) [static]
void DRA_Finalize ( void   ) 
static BOOL DRA_Info_Matches_Encoding ( DRA_INFO dra,
char *  arg_sig 
) [static]
void DRA_Initialize ( void   ) 
static void DRA_Insert_Pragmas ( WN pu_wn,
char *  arg_sig 
) [static]
static char * DRA_New_Clone_Sig ( WN pu_wn,
char *  clone_name,
DRA_HASH_TABLE dra_table 
) [static]
static BOOL DRA_Parse_Clone_Name ( char *  clone_name  )  [static]
static void DRA_Process_Commons ( DRA_HASH_TABLE dra_table,
DRA_COMMON_HASH_TABLE dra_common_ht 
) [static]
static void DRA_Process_Globals ( DRA_HASH_TABLE dra_table  )  [static]
static BOOL DRA_Process_Requests ( char *  tir_names  )  [static]
void DRA_Processing ( PU_Info pu_info,
WN pu,
BOOL  pu_has_feedback 
)
static WN* Find_Insertion_Point ( WN pu_wn,
char *  arg_sig 
) [static]
TY_IDX Get_Array_Type ( ST st  ) 
TY_IDX Get_Original_Type ( ST st  ) 

Variable Documentation

Definition at line 145 of file dra_clone.cxx.

MEM_POOL * DRA_check_pool_ptr = NULL [static]

Definition at line 145 of file dra_clone.cxx.

Definition at line 143 of file dra_clone.cxx.

MEM_POOL * DRA_clone_pool_ptr = NULL [static]

Definition at line 143 of file dra_clone.cxx.

Definition at line 141 of file dra_clone.cxx.

Definition at line 129 of file dra_clone.cxx.

Referenced by DRA_Mangle_All(), DRA_Mangle_Call_Site(), and DRA_Mangle_Entry().

Definition at line 133 of file dra_clone.cxx.

Definition at line 131 of file dra_clone.cxx.

Definition at line 131 of file dra_clone.cxx.

Referenced by New_DRA().


Generated on Tue Nov 17 05:56:37 2009 for Open64 (mfef90, whirl2f, and IR tools) by  doxygen 1.6.1