Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <ctype.h>
#include <cmplrs/rcodes.h>
#include "defs.h"
#include "glob.h"
#include "erglob.h"
#include "file_util.h"
#include "phase.h"
#include "flags.h"
#include "config.h"
#include "config_list.h"
#include "timing.h"
#include "tracing.h"
#include "wn.h"
#include "stab.h"
#include "stblock.h"
#include "wn_lower.h"
#include "wn_fio.h"
#include "wn_instrument.h"
#include "driver_util.h"
Go to the source code of this file.
Defines | |
#define | MAX_MSG_LEVEL 2 |
#define | ERR_FILE_EXTENSION ".e" /* Error file */ |
#define | TRC_FILE_EXTENSION ".t" /* Trace file */ |
#define | IRB_FILE_EXTENSION ".B" /* WHIRL file */ |
#define | LST_FILE_EXTENSION ".l" /* Listing file */ |
#define | TLOG_FILE_EXTENSION ".tlog" /* Transformation log file */ |
Functions | |
static void | add_phase_args (BE_PHASES phase, char *flag) |
void | Get_Phase_Args (BE_PHASES phase, INT *argc, char ***argv) |
static BOOL | Handle_Phase_Specific_Options (char *flag) |
void | Process_Command_Line (INT argc, char **argv) |
void | Prepare_Source (void) |
void | Prepare_Listing_File (void) |
Variables | |
int | compiling_upc_flag = 0 |
static UINT | phase_argc [PHASE_COUNT] |
static STRING * | phase_argv [PHASE_COUNT] |
static UINT | phase_max_argc [PHASE_COUNT] |
static BOOL | Tlog_Enabled = FALSE |
BOOL | Run_Dsm_Cloner |
BOOL | Run_Dsm_Check |
BOOL | Run_Dsm_Common_Check |
BOOL | Run_autopar |
BOOL | Run_MemCtr |
static BOOL | Dsm_Recompile = FALSE |
char * | Config_File_Name = "" |
#define ERR_FILE_EXTENSION ".e" /* Error file */ |
Definition at line 83 of file driver_util.cxx.
Referenced by Prepare_Source().
#define IRB_FILE_EXTENSION ".B" /* WHIRL file */ |
Definition at line 85 of file driver_util.cxx.
Referenced by Prepare_Source().
#define LST_FILE_EXTENSION ".l" /* Listing file */ |
Definition at line 86 of file driver_util.cxx.
Referenced by Prepare_Listing_File().
#define MAX_MSG_LEVEL 2 |
Definition at line 80 of file driver_util.cxx.
Referenced by Process_Command_Line().
#define TLOG_FILE_EXTENSION ".tlog" /* Transformation log file */ |
Definition at line 87 of file driver_util.cxx.
Referenced by Prepare_Source().
#define TRC_FILE_EXTENSION ".t" /* Trace file */ |
Definition at line 84 of file driver_util.cxx.
Referenced by Prepare_Source().
static void add_phase_args | ( | BE_PHASES | phase, |
char * | flag | ||
) | [static] |
Definition at line 103 of file driver_util.cxx.
References FmtAssert, phase_argc, phase_argv, and phase_max_argc.
Referenced by Handle_Phase_Specific_Options(), and Process_Command_Line().
void Get_Phase_Args | ( | BE_PHASES | phase, |
INT * | argc, | ||
char *** | argv | ||
) |
Definition at line 123 of file driver_util.cxx.
References phase_argc, and phase_argv.
Referenced by load_components(), and main().
static BOOL Handle_Phase_Specific_Options | ( | char * | flag | ) | [static] |
Definition at line 135 of file driver_util.cxx.
References add_phase_args(), FALSE, PHASE_SPECIFIC_OPTION_GROUP::group_name, PHASE_SPECIFIC_OPTION_GROUP::group_name_length, NULL, PHASE_SPECIFIC_OPTION_GROUP::phase, PHASE_COMMON, PHASE_COUNT, phase_ogroup_table, and TRUE.
Referenced by Process_Command_Line().
void Prepare_Listing_File | ( | void | ) |
Definition at line 546 of file driver_util.cxx.
References EC_Lst_Open, ErrMsg(), errno, Last_Pathname_Component(), List_Enabled, Lst_File, LST_FILE_EXTENSION, Lst_File_Name, New_Extension(), NULL, and Src_File_Name.
Referenced by main().
void Prepare_Source | ( | void | ) |
Definition at line 495 of file driver_util.cxx.
References EC_Tlog_Open, ERR_FILE_EXTENSION, Err_File_Name, ErrMsg(), errno, 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 main().
void Process_Command_Line | ( | INT | argc, |
char ** | argv | ||
) |
Definition at line 168 of file driver_util.cxx.
Referenced by main(), OPTIONS_STACK::Process_Pragma_Options(), sgi_cmd_line(), and W2F_Process_Command_Line().
int compiling_upc_flag = 0 |
Definition at line 71 of file driver_util.cxx.
Referenced by Process_Command_Line().
char* Config_File_Name = "" |
Definition at line 97 of file driver_util.cxx.
Referenced by Process_Command_Line().
BOOL Dsm_Recompile = FALSE [static] |
Definition at line 95 of file driver_util.cxx.
Referenced by Process_Command_Line().
UINT phase_argc[PHASE_COUNT] [static] |
Definition at line 75 of file driver_util.cxx.
Referenced by add_phase_args(), Get_Phase_Args(), load_components(), and main().
STRING* phase_argv[PHASE_COUNT] [static] |
Definition at line 76 of file driver_util.cxx.
Referenced by add_phase_args(), Get_Phase_Args(), load_components(), and main().
UINT phase_max_argc[PHASE_COUNT] [static] |
Definition at line 77 of file driver_util.cxx.
Referenced by add_phase_args().
Definition at line 87 of file config_lno.cxx.
Referenced by Adjust_Opt_Level(), Backend_Processing(), LNO_Configure(), LNO_Processing(), load_components(), main(), Phase_Fini(), Phase_Init(), and Process_Command_Line().
Definition at line 127 of file dra_clone.cxx.
Referenced by DRA_Initialize(), DRA_Processing(), Preorder_Process_PUs(), and Process_Command_Line().
Definition at line 123 of file dra_clone.cxx.
Referenced by DRA_Initialize(), DRA_Processing(), main(), Phase_Fini(), Preorder_Process_PUs(), and Process_Command_Line().
Definition at line 125 of file dra_clone.cxx.
Referenced by DRA_Initialize(), DRA_Processing(), main(), Phase_Fini(), Preorder_Process_PUs(), and Process_Command_Line().
Definition at line 348 of file curr.driver.cxx.
Referenced by Backend_Processing(), and Process_Command_Line().
BOOL Tlog_Enabled = FALSE [static] |
Definition at line 89 of file driver_util.cxx.
Referenced by Prepare_Source(), and Process_Command_Line().