osprey/kgccfe/wfe_misc.cxx File Reference

#include <values.h>
#include <sys/types.h>
#include <elf.h>
#include "defs.h"
#include "config.h"
#include "config_debug.h"
#include "config_list.h"
#include "config_targ_opt.h"
#include "controls.h"
#include "erglob.h"
#include "erlib.h"
#include "file_util.h"
#include "flags.h"
#include "glob.h"
#include "mempool.h"
#include "tracing.h"
#include "util.h"
#include "errors.h"
#include "err_host.tab"
#include <stdarg.h>
#include "gnu_config.h"
#include "gnu/system.h"
#include "gnu/tree.h"
#include "wn.h"
#include "wn_util.h"
#include "wn_simp.h"
#include "symtab.h"
#include "pu_info.h"
#include "ir_reader.h"
#include "ir_bwrite.h"
#include "wfe_decl.h"
#include "wfe_expr.h"
#include "wfe_dst.h"
#include "wfe_misc.h"
#include "wfe_stmt.h"
#include "c_int_model.h"

Include dependency graph for wfe_misc.cxx:

Go to the source code of this file.

Data Types

type  wn_stmt

Defines

#define DEF_DEBUG_LEVEL   0
#define MAX_MSG_LEVEL   2
#define DEF_MSG_LEVEL   2
#define IRB_FILE_EXTENSION   ".B"
#define IRD_FILE_EXTENSION   ".D"
#define ERR_FILE_EXTENSION   ".e"
#define LST_FILE_EXTENSION   ".l"
#define TRC_FILE_EXTENSION   ".t"
#define DSTDUMP_FILE_EXTENSION   ".fe.dst"
#define ENLARGE(x)   (x + (x >> 1))
#define WN_STMT_STACK_SIZE   32

Typedefs

typedef struct wn_stmt WN_STMT

Enumerations

enum  debug_info_level {
  DINFO_LEVEL_NONE, DINFO_LEVEL_TERSE, DINFO_LEVEL_NORMAL, DINFO_LEVEL_VERBOSE,
  DINFO_LEVEL_NONE, DINFO_LEVEL_TERSE, DINFO_LEVEL_NORMAL, DINFO_LEVEL_VERBOSE,
  DINFO_LEVEL_NONE, DINFO_LEVEL_TERSE, DINFO_LEVEL_NORMAL, DINFO_LEVEL_VERBOSE,
  DINFO_LEVEL_NONE, DINFO_LEVEL_TERSE, DINFO_LEVEL_NORMAL, DINFO_LEVEL_VERBOSE,
  DINFO_LEVEL_NONE, DINFO_LEVEL_TERSE, DINFO_LEVEL_NORMAL, DINFO_LEVEL_VERBOSE,
  DINFO_LEVEL_NONE, DINFO_LEVEL_TERSE, DINFO_LEVEL_NORMAL, DINFO_LEVEL_VERBOSE,
  DINFO_LEVEL_NONE, DINFO_LEVEL_TERSE, DINFO_LEVEL_NORMAL, DINFO_LEVEL_VERBOSE
}

Functions/Subroutines

void Initialize_IRB (void)
static BOOL Prepare_Source (void)
static void WFE_Stmt_Stack_Init (void)
static void WFE_Stmt_Stack_Free (void)
void Cleanup_Files (BOOL report, BOOL delete_dotofile)
void Terminate (INT status)
static void Process_Command_Line (void)
void WFE_Init (INT argc, char **argv, char **envp)
void WFE_File_Init (INT argc, char **argv)
void WFE_File_Finish (void)
void WFE_Finish ()
void WFE_Check_Errors (int *error_count, int *warning_count, BOOL *need_inliner)
void WFE_Stmt_Push (WN *wn, WFE_STMT_KIND kind, SRCPOS srcpos)
WNWFE_Stmt_Top (void)
void WFE_Stmt_Append (WN *wn, SRCPOS srcpos)
WNWFE_Stmt_Last (void)
WNWFE_Stmt_Delete ()
WNWFE_Stmt_Pop (WFE_STMT_KIND kind)

Variables

int WFE_Keep_Zero_Length_Structs = FALSE
int optimize
PU_InfoPU_Tree_Root = NULL
int wfe_invoke_inliner = FALSE
char * asm_file_name
int trace_verbose = FALSE
enum debug_info_level debug_info_level
INT8 Debug_Level = DEF_DEBUG_LEVEL
static INT32 Argc
static char ** Argv
static INT32 Source_Arg = 0
static INT32 Src_Count = 0
static char Dash [] = "-"
static BOOL Echo_Flag = FALSE
static BOOL Delete_IR_File = FALSE
static WN_STMTwn_stmt_stack
static WN_STMTwn_stmt_sp
static WN_STMTwn_stmt_stack_last
static INT wn_stmt_stack_size
char * WFE_Stmt_Kind_Name [wfe_stmk_last+1]


Define Documentation

#define DEF_DEBUG_LEVEL   0

Definition at line 144 of file wfe_misc.cxx.

#define DEF_MSG_LEVEL   2

Definition at line 147 of file wfe_misc.cxx.

#define DSTDUMP_FILE_EXTENSION   ".fe.dst"

Definition at line 161 of file wfe_misc.cxx.

#define ENLARGE (  )     (x + (x >> 1))

Definition at line 496 of file wfe_misc.cxx.

#define ERR_FILE_EXTENSION   ".e"

Definition at line 158 of file wfe_misc.cxx.

#define IRB_FILE_EXTENSION   ".B"

Definition at line 156 of file wfe_misc.cxx.

#define IRD_FILE_EXTENSION   ".D"

Definition at line 157 of file wfe_misc.cxx.

#define LST_FILE_EXTENSION   ".l"

Definition at line 159 of file wfe_misc.cxx.

#define MAX_MSG_LEVEL   2

Definition at line 146 of file wfe_misc.cxx.

#define TRC_FILE_EXTENSION   ".t"

Definition at line 160 of file wfe_misc.cxx.

#define WN_STMT_STACK_SIZE   32

Definition at line 497 of file wfe_misc.cxx.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
DINFO_LEVEL_NONE 
DINFO_LEVEL_TERSE 
DINFO_LEVEL_NORMAL 
DINFO_LEVEL_VERBOSE 
DINFO_LEVEL_NONE 
DINFO_LEVEL_TERSE 
DINFO_LEVEL_NORMAL 
DINFO_LEVEL_VERBOSE 
DINFO_LEVEL_NONE 
DINFO_LEVEL_TERSE 
DINFO_LEVEL_NORMAL 
DINFO_LEVEL_VERBOSE 
DINFO_LEVEL_NONE 
DINFO_LEVEL_TERSE 
DINFO_LEVEL_NORMAL 
DINFO_LEVEL_VERBOSE 
DINFO_LEVEL_NONE 
DINFO_LEVEL_TERSE 
DINFO_LEVEL_NORMAL 
DINFO_LEVEL_VERBOSE 
DINFO_LEVEL_NONE 
DINFO_LEVEL_TERSE 
DINFO_LEVEL_NORMAL 
DINFO_LEVEL_VERBOSE 
DINFO_LEVEL_NONE 
DINFO_LEVEL_TERSE 
DINFO_LEVEL_NORMAL 
DINFO_LEVEL_VERBOSE 

Definition at line 122 of file wfe_misc.cxx.


Function Documentation

void Cleanup_Files ( BOOL  report,
BOOL  delete_dotofile 
)

void Initialize_IRB ( void   ) 

static BOOL Prepare_Source ( void   )  [static]

static void Process_Command_Line ( void   )  [static]

void Terminate ( INT  status  ) 

Definition at line 236 of file wfe_misc.cxx.

References Cleanup_Files(), exit(), and FALSE.

void WFE_Check_Errors ( int *  error_count,
int *  warning_count,
BOOL need_inliner 
)

Definition at line 488 of file wfe_misc.cxx.

References Get_Error_Count(), and wfe_invoke_inliner.

void WFE_File_Finish ( void   ) 

void WFE_File_Init ( INT  argc,
char **  argv 
)

void WFE_Finish ( void   ) 

Definition at line 482 of file wfe_misc.cxx.

References WFE_Stmt_Stack_Free().

void WFE_Init ( INT  argc,
char **  argv,
char **  envp 
)

void WFE_Stmt_Append ( WN wn,
SRCPOS  srcpos 
)

WN* WFE_Stmt_Delete (  ) 

Definition at line 614 of file wfe_misc.cxx.

References last, NULL, prev, WFE_Stmt_Top(), WN_first(), WN_last(), WN_next(), and WN_prev().

WN* WFE_Stmt_Last ( void   ) 

Definition at line 604 of file wfe_misc.cxx.

References WFE_Stmt_Top(), and WN_last().

WN* WFE_Stmt_Pop ( WFE_STMT_KIND  kind  ) 

Definition at line 635 of file wfe_misc.cxx.

References FmtAssert, wn_stmt::kind, wn, and wn_stmt::wn.

void WFE_Stmt_Push ( WN wn,
WFE_STMT_KIND  kind,
SRCPOS  srcpos 
)

Definition at line 552 of file wfe_misc.cxx.

References ENLARGE, INT, wn_stmt::kind, realloc, wn_stmt::wn, and WN_Set_Linenum().

static void WFE_Stmt_Stack_Free ( void   )  [static]

Definition at line 545 of file wfe_misc.cxx.

References free(), and NULL.

static void WFE_Stmt_Stack_Init ( void   )  [static]

Definition at line 535 of file wfe_misc.cxx.

References malloc, and WN_STMT_STACK_SIZE.

WN* WFE_Stmt_Top ( void   ) 

Definition at line 573 of file wfe_misc.cxx.

References FmtAssert, and wn_stmt::wn.


Variable Documentation

INT32 Argc [static]

Definition at line 164 of file wfe_misc.cxx.

char** Argv [static]

Definition at line 165 of file wfe_misc.cxx.

Definition at line 367 of file toplev.c.

char Dash[] = "-" [static]

Definition at line 168 of file wfe_misc.cxx.

Definition at line 380 of file toplev.c.

INT8 Debug_Level = DEF_DEBUG_LEVEL

Definition at line 145 of file wfe_misc.cxx.

BOOL Delete_IR_File = FALSE [static]

Definition at line 172 of file wfe_misc.cxx.

BOOL Echo_Flag = FALSE [static]

Definition at line 171 of file wfe_misc.cxx.

int optimize

Definition at line 352 of file genattrtab.c.

Definition at line 107 of file wfe_misc.cxx.

INT32 Source_Arg = 0 [static]

Definition at line 166 of file wfe_misc.cxx.

INT32 Src_Count = 0 [static]

Definition at line 167 of file wfe_misc.cxx.

int trace_verbose = FALSE

Definition at line 113 of file wfe_misc.cxx.

int wfe_invoke_inliner = FALSE

Definition at line 108 of file wfe_misc.cxx.

Definition at line 100 of file wfe_misc.cxx.

char* WFE_Stmt_Kind_Name[wfe_stmk_last+1]

Initial value:

 {
  "'unknown'",
  "'function entry'",
  "'function pragma'",
  "'function body'",
  "'region pragmas'",
  "'scope'",
  "'if condition'",
  "'if then clause'",
  "'if else clause'",
  "'while condition'",
  "'while body'",
  "'dowhile condition'",
  "'dowhile body'",
  "'for condition'",
  "'for body'",
  "'switch'",
  "'comma'",
  "'rcomma'",


 
  "'last'"
}

Definition at line 509 of file wfe_misc.cxx.

WN_STMT* wn_stmt_sp [static]

Definition at line 505 of file wfe_misc.cxx.

Definition at line 504 of file wfe_misc.cxx.

Definition at line 506 of file wfe_misc.cxx.

Definition at line 507 of file wfe_misc.cxx.


Generated on Wed Apr 8 15:48:47 2009 for Open64 by  doxygen 1.5.6