Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
ir_bread.h File Reference
#include "wn_map.h"
Include dependency graph for ir_bread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  OFFSET_AND_SIZE

Defines

#define REVISION_MISMATCH   0
#define READER_ERROR   -1
#define ABI_MISMATCH   -2

Functions

OFFSET_AND_SIZE get_section (void *handle, Elf64_Word type, Elf64_Word info)
void Set_Verbose_Info (BOOL val)
INT WN_massage_input (char *baseaddr, Elf64_Word size, char *file_revision)
void * WN_get_section_base (void *handle, INT sect)
Elf64_Word Get_Elf_Section_Size (void *handle, Elf64_Word type, Elf64_Word info)
void * WN_inline_open_file (const char *file_name, off_t *mapped_size, char *file_revision)
void * WN_open_input (const char *filename, off_t *mapped_size)
PU_InfoWN_get_PU_Infos (void *handle, INT32 *p_num_PUs)
WNWN_get_tree (void *handle, PU_Info *pu)
INT WN_get_symtab (void *handle, PU_Info *pu)
void * WN_get_depgraph (void *handle, PU_Info *pu)
INT WN_get_prefetch (void *handle, PU_Info *pu)
INT WN_get_INT32_map (void *handle, PU_Info *pu, INT32 subsection_type, WN_MAP value_map)
STWN_get_proc_sym (PU_Info *pu)
INT WN_get_global_symtab (void *handle)
INT WN_get_strtab (void *handle)
INT WN_get_dst (void *handle)
INT WN_get_localmap (void *handle)
INT WN_get_feedback (void *handle, PU_Info *pu, MEM_POOL *pool)
INT WN_get_flags (void *handle, char ***argv)
void * Open_Input_Info (const char *input_file)
void * Open_Global_Input (const char *input_file)
void * Open_Local_Input (const char *input_file)
PU_InfoRead_Global_Info (INT32 *p_num_PUs)
void Read_Local_Info (MEM_POOL *pool, PU_Info *pu)
void Free_Local_Info (PU_Info *pu)
void Free_Dep_Graph (void)
void Free_Local_Input (void)
void Free_Input_Info (void)

Define Documentation

#define ABI_MISMATCH   -2

Definition at line 43 of file ir_bread.h.

Referenced by check_elf_header(), and open_specified_input().

#define READER_ERROR   -1

Definition at line 42 of file ir_bread.h.

Referenced by open_specified_input().

#define REVISION_MISMATCH   0

Definition at line 41 of file ir_bread.h.

Referenced by check_section_headers(), and open_specified_input().


Function Documentation

void Free_Dep_Graph ( void  )

Referenced by LNO_Processing().

void Free_Input_Info ( void  )

Definition at line 1371 of file ir_bread.cxx.

References Free_Local_Input(), global_fhandle, global_mapped_size, local_fhandle, and WN_free_input().

Referenced by Cleanup_Files(), ir_b2a(), ir_sel(), and ir_size().

Here is the call graph for this function:

void Free_Local_Info ( PU_Info pu)

Definition at line 1352 of file ir_bread.cxx.

References Delete_Scope(), NULL, PU_Info_maptab, PU_Info_proc_sym, PU_lexical_level(), St_Table, and WN_MAP_TAB_Delete().

Referenced by ir_b2a_process_PUs(), ir_sel(), main(), Postprocess_PU(), and process_pu().

Here is the call graph for this function:

void Free_Local_Input ( void  )

Definition at line 1364 of file ir_bread.cxx.

References local_fhandle, local_mapped_size, and WN_free_input().

Referenced by Free_Input_Info().

Here is the call graph for this function:

Elf64_Word Get_Elf_Section_Size ( void *  handle,
Elf64_Word  type,
Elf64_Word  info 
)

Definition at line 714 of file ir_bread.cxx.

References get_section(), OFFSET_AND_SIZE::offset, and OFFSET_AND_SIZE::size.

Referenced by ir_size().

Here is the call graph for this function:

void* Open_Global_Input ( const char *  input_file)

Definition at line 1245 of file ir_bread.cxx.

References global_fhandle, global_ir_file, global_mapped_size, and open_specified_input().

Referenced by ir_b2a(), and main().

Here is the call graph for this function:

void* Open_Input_Info ( const char *  input_file)

Definition at line 1234 of file ir_bread.cxx.

References global_fhandle, global_ir_file, global_mapped_size, local_fhandle, local_ir_file, local_mapped_size, and open_specified_input().

Referenced by ir_b2a(), ir_sel(), ir_size(), and main().

Here is the call graph for this function:

void* Open_Local_Input ( const char *  input_file)

Definition at line 1253 of file ir_bread.cxx.

References local_fhandle, local_ir_file, local_mapped_size, and open_specified_input().

Referenced by ir_b2a(), and main().

Here is the call graph for this function:

void Set_Verbose_Info ( BOOL  val)

Definition at line 493 of file ir_bread.cxx.

References val, and verbose_info.

Referenced by main().

void* WN_get_depgraph ( void *  handle,
PU_Info pu 
)
INT WN_get_dst ( void *  handle)

Definition at line 923 of file ir_bread.cxx.

References CONVERT_OFFSET, Current_DST, DST_Init(), ERROR_RETURN, get_section(), NULL, OFFSET_AND_SIZE::offset, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, and WT_DST.

Referenced by Read_Global_Info().

Here is the call graph for this function:

INT WN_get_flags ( void *  handle,
char ***  argv 
)

Definition at line 898 of file ir_bread.cxx.

References ERROR_VALUE, fix_comp_flags(), get_section(), if(), OFFSET_AND_SIZE::offset, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, and WT_COMP_FLAGS.

Here is the call graph for this function:

INT WN_get_INT32_map ( void *  handle,
PU_Info pu,
INT32  subsection_type,
WN_MAP  value_map 
)

Definition at line 1164 of file ir_bread.cxx.

References WN_read_generic_map().

Referenced by Read_Local_Info().

Here is the call graph for this function:

INT WN_get_localmap ( void *  handle)
PU_Info* WN_get_PU_Infos ( void *  handle,
INT32 p_num_PUs 
)

Definition at line 770 of file ir_bread.cxx.

References ERROR_RETURN, ERROR_VALUE, get_section(), OFFSET_AND_SIZE::offset, Read_PU_Infos(), SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, size, and WT_PU_SECTION.

Referenced by ir_size(), and Read_Global_Info().

Here is the call graph for this function:

void* WN_get_section_base ( void *  handle,
INT  sect 
)

Definition at line 792 of file ir_bread.cxx.

References ERROR_RETURN, get_section(), OFFSET_AND_SIZE::offset, return(), and SHT_MIPS_WHIRL.

Here is the call graph for this function:

INT WN_get_strtab ( void *  handle)

Definition at line 380 of file ir_bread.cxx.

References ERROR_RETURN, get_section(), Initialize_Strtab(), OFFSET_AND_SIZE::offset, SHT_MIPS_WHIRL, OFFSET_AND_SIZE::size, and WT_STRTAB.

Referenced by Read_Global_Info().

Here is the call graph for this function:

void* WN_inline_open_file ( const char *  file_name,
off_t *  mapped_size,
char *  file_revision 
)

Definition at line 748 of file ir_bread.cxx.

References errno, ERROR_RETURN, and read_file().

Here is the call graph for this function:

INT WN_massage_input ( char *  baseaddr,
Elf64_Word  size,
char *  file_revision 
)

Definition at line 651 of file ir_bread.cxx.

References check_elf_header(), check_section_headers(), and ELFCLASS32.

Referenced by read_file().

Here is the call graph for this function:

void* WN_open_input ( const char *  filename,
off_t *  mapped_size 
)

Definition at line 729 of file ir_bread.cxx.

References errno, ERROR_RETURN, file_revision, and read_file().

Referenced by open_specified_input().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines