Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
driver_util.cxx File Reference
#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"
Include dependency graph for driver_util.cxx:

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 STRINGphase_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 Documentation

#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().


Function Documentation

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().

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().

Here is the call graph for this function:

void Process_Command_Line ( INT  argc,
char **  argv 
)

Variable Documentation

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().

Definition at line 75 of file driver_util.cxx.

Referenced by add_phase_args(), Get_Phase_Args(), load_components(), and main().

Definition at line 76 of file driver_util.cxx.

Referenced by add_phase_args(), Get_Phase_Args(), load_components(), and main().

Definition at line 77 of file driver_util.cxx.

Referenced by add_phase_args().

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().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines