#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"

Go to the source code of this file.
| #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 + (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.
| enum debug_info_level |
Definition at line 122 of file wfe_misc.cxx.
Definition at line 188 of file wfe_misc.cxx.
References Delete_IR_File, EC_IR_Close, EC_IR_Delete, EC_Lst_Close, EC_Src_Close, ErrMsg(), errno, ERROR_LINE_UNKNOWN, fclose(), IR_File, IR_File_Name, Lst_File, Lst_File_Name, NULL, Set_Error_File(), Set_Error_Line(), Set_Error_Source(), Set_Trace_File(), Src_File, Src_File_Name, Tim_File, and unlink.
Definition at line 517 of file driver_util.cxx.
References EC_Tlog_Open, ERR_FILE_EXTENSION, Err_File_Name, ErrMsg(), errno, fopen, Get_Trace(), IRB_FILE_EXTENSION, Irb_File_Name, Last_Pathname_Component(), New_Extension(), NULL, Set_Error_File(), Set_Trace_File(), Src_File_Name, TFile, Tim_File, TINFO_CTIME, TINFO_TIME, TKIND_INFO, Tlog_Enabled, Tlog_File, TLOG_FILE_EXTENSION, Tlog_File_Name, Tracing_Enabled, TRC_FILE_EXTENSION, and Trc_File_Name.
Referenced by CG_Process_Command_Line(), main(), WFE_File_Init(), and WGEN_File_Init().
Definition at line 245 of file wfe_misc.cxx.
References Argc, Argv, BOOL, Common_Option_Groups, dashdash_flag, FALSE, i, INT16, len, malloc, Process_Command_Line_Group(), Process_Trace_Option(), Source_Arg, Src_Count, Src_File_Name, strcpy, strlen(), and strncmp().
Definition at line 472 of file wfe_misc.cxx.
References Close_Output_Info(), GLOBAL_SYMTAB, IR_reader_finish(), MEM_POOL_Pop, MEM_src_pool, Verify_SYMTAB(), and Write_Global_Info().
Definition at line 459 of file wfe_misc.cxx.
References DST_build(), EC_No_Sources, ErrMsg(), Irb_File_Name, MEM_POOL_Push, MEM_src_pool, Open_Output_Info(), Prepare_Source(), Restore_Cmd_Line_Ctrls(), and Src_Count.
Definition at line 391 of file wfe_misc.cxx.
References ABI_Name, Argc, Argv, Configure(), Dash, Debug_Level, Delete_IR_File, DINFO_LEVEL_NORMAL, DSTdump_File_Name, Err_File_Name, ERROR_LINE_UNKNOWN, FALSE, Handle_Signals(), host_errlist, Init_Controls_Tbl(), Init_Error_Handler(), Initialize_C_Int_Model(), Initialize_Symbol_Tables(), IR_File_Name, IR_reader_init(), Irb_File_Name, Lst_File_Name, MEM_Initialize(), NULL, Opt_Level, optimize, Phases, Preconfigure(), Process_Command_Line(), Set_Error_File(), Set_Error_Line(), Set_Error_Phase(), Set_Error_Tables(), Src_File_Name, TARGET_64BIT, Trc_File_Name, TRUE, WFE_Expr_Init(), WFE_Omp_Init(), WFE_Stmt_Init(), WFE_Stmt_Stack_Init(), WHIRL_Keep_Cvt_On, WHIRL_Mldid_Mstid_On, and WN_Simp_Fold_LDA.
Definition at line 582 of file wfe_misc.cxx.
References last, NULL, OPR_BLOCK, WFE_Stmt_Top(), WN_first(), WN_INSERT_BlockAfter(), WN_last(), WN_operator(), and WN_Set_Linenum().
| 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_Pop | ( | WFE_STMT_KIND | kind | ) |
Definition at line 635 of file wfe_misc.cxx.
References FmtAssert, wn_stmt::kind, wn, and wn_stmt::wn.
Definition at line 552 of file wfe_misc.cxx.
References ENLARGE, INT, wn_stmt::kind, realloc, wn_stmt::wn, and WN_Set_Linenum().
Definition at line 164 of file wfe_misc.cxx.
char** Argv [static] |
Definition at line 165 of file wfe_misc.cxx.
| char* asm_file_name |
char Dash[] = "-" [static] |
Definition at line 168 of file wfe_misc.cxx.
| 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.
Definition at line 171 of file wfe_misc.cxx.
| int optimize |
Definition at line 352 of file genattrtab.c.
| PU_Info* PU_Tree_Root = NULL |
Definition at line 107 of file wfe_misc.cxx.
INT32 Source_Arg = 0 [static] |
Definition at line 166 of file wfe_misc.cxx.
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.
| int WFE_Keep_Zero_Length_Structs = FALSE |
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.
WN_STMT* wn_stmt_stack [static] |
Definition at line 504 of file wfe_misc.cxx.
WN_STMT* wn_stmt_stack_last [static] |
Definition at line 506 of file wfe_misc.cxx.
INT wn_stmt_stack_size [static] |
Definition at line 507 of file wfe_misc.cxx.
1.5.6