Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <time.h>
#include "anl_common.h"
#include "stamp.h"
#include "config_promp.h"
#include "w2c_driver.h"
#include "w2f_driver.h"
#include "anl_file_mngr.h"
#include "w2cf_translator.h"
#include "anl_func_entry.h"
#include "anl_driver.h"
#include "wb_anl.h"
#include "prompf.h"
Go to the source code of this file.
#define USE_C_TRANSFORMED_SRC | ( | ) |
(Language == LANG_KR_C || Language == LANG_ANSI_C || \ Language == LANG_CPLUS || Language == LANG_DELTA)
Definition at line 68 of file anl_driver.cxx.
Referenced by Anl_Init(), Anl_Needs_Whirl2c(), Anl_Needs_Whirl2f(), and Anl_Static_Analysis().
#define USE_F77_TRANSFORMED_SRC | ( | ) | (Language == LANG_F77 || Language == LANG_F90) |
Definition at line 71 of file anl_driver.cxx.
void Anl_Cleanup | ( | void | ) |
Definition at line 471 of file anl_driver.cxx.
References ANL_FILE_MNGR::Close_File(), ANL_FILE_MNGR::File_Is_Open(), and NULL.
Referenced by Cleanup_Files().
const char* Anl_File_Path | ( | void | ) |
Definition at line 428 of file anl_driver.cxx.
References Anl_Filename.
void Anl_Fini | ( | void | ) |
Definition at line 435 of file anl_driver.cxx.
References Anl_Enabled, Anl_Filename, Anl_OrignSrc_Filename, Anl_Verbose, Anl_Version, CXX_DELETE, FALSE, MEM_POOL_Delete(), MEM_POOL_Pop, NULL, Pool_Initialized, Prompf_Id_Map, Prompf_Info, PROMPF_pool, Set_Error_Phase(), and WN_MAP_Delete.
Referenced by Phase_Fini().
static void Anl_Help_Page | ( | void | ) | [static] |
Definition at line 104 of file anl_driver.cxx.
References fprintf().
Referenced by Anl_Validate_Options().
void Anl_Init | ( | void | ) |
Definition at line 229 of file anl_driver.cxx.
References Anl_Enabled, Anl_Filename, Anl_Validate_Options(), ANL_FILE_MNGR::Close_File(), CXX_NEW, Derive_Anl_Filename(), ANL_DIAGNOSTICS::Error_Was_Reported(), FALSE, ANL_DIAGNOSTICS::Fatal(), Fe_Version, INCLUDE_STAMP, LANG_ANSI_C, LANG_CPLUS, LANG_DELTA, LANG_F77, LANG_F90, LANG_KR_C, LANG_UNKNOWN, Language, MEM_POOL_Initialize, MEM_POOL_Push, NULL, ANL_FILE_MNGR::Open_Create(), Pool_Initialized, Set_Error_Phase(), TRUE, USE_C_TRANSFORMED_SRC, W2C_Get_Transformed_Src_Path(), W2F_Get_Transformed_Src_Path(), and ANL_FILE_MNGR::Write_String().
Referenced by Phase_Init().
WN_MAP Anl_Init_Map | ( | MEM_POOL * | id_map_pool | ) |
Definition at line 331 of file anl_driver.cxx.
References WN_MAP32_Create.
Referenced by Preprocess_PU().
BOOL Anl_Needs_Whirl2c | ( | void | ) |
Definition at line 211 of file anl_driver.cxx.
References USE_C_TRANSFORMED_SRC.
Referenced by load_components(), Phase_Fini(), Phase_Init(), and Prompf_Emit_Whirl_to_Source().
BOOL Anl_Needs_Whirl2f | ( | void | ) |
Definition at line 220 of file anl_driver.cxx.
References USE_C_TRANSFORMED_SRC.
Referenced by load_components(), Phase_Fini(), Phase_Init(), and Prompf_Emit_Whirl_to_Source().
void Anl_Process_Command_Line | ( | INT | phase_argc, |
char * | phase_argv[], | ||
INT | argc, | ||
char * | argv[] | ||
) |
Definition at line 183 of file anl_driver.cxx.
References Anl_Enabled, Anl_Filename, Anl_OrignSrc_Filename, Anl_Owhile, Anl_Progname, Anl_Verbose, Next_Construct_Id, NULL, PROMP_anl_filename, PROMP_enabled, PROMP_next_id, PROMP_owhile, PROMP_show, PROMP_src_filename, and COUNTER::Reset().
Referenced by load_components().
void Anl_Static_Analysis | ( | WN * | pu, |
WN_MAP | id_map | ||
) |
Definition at line 337 of file anl_driver.cxx.
References Anl_Enabled, Anl_Filename, ANL_FILE_MNGR::Close_File(), CXX_DELETE, CXX_NEW, ANL_FUNC_ENTRY::Emit_Original_Construct(), ANL_DIAGNOSTICS::Error_Was_Reported(), FALSE, ANL_DIAGNOSTICS::Fatal(), MEM_POOL_Delete(), MEM_POOL_Initialize, MEM_POOL_Pop, MEM_POOL_Pop_Unfreeze, MEM_POOL_Push, MEM_POOL_Push_Freeze, Next_Construct_Id, NULL, ANL_FILE_MNGR::Open_Append(), Parent_Map, Prompf_Info, PROMPF_pool, Set_Error_Phase(), USE_C_TRANSFORMED_SRC, WN_MAP_Create, and WN_MAP_Delete.
Referenced by Preprocess_PU().
static void Anl_Validate_Options | ( | ANL_DIAGNOSTICS * | diag | ) | [static] |
Definition at line 126 of file anl_driver.cxx.
References Anl_Enabled, Anl_Help_Page(), Anl_OrignSrc_Filename, ANL_DIAGNOSTICS::Error(), FALSE, NULL, and Src_File_Name.
Referenced by Anl_Init().
static void Derive_Anl_Filename | ( | void | ) | [static] |
Definition at line 157 of file anl_driver.cxx.
References Anl_Filename, Anl_OrignSrc_Filename, Last_Pathname_Component(), New_Extension(), and NULL.
Referenced by Anl_Init().
INT64 Get_Next_Construct_Id | ( | void | ) |
Definition at line 414 of file anl_driver.cxx.
References Next_Construct_Id, and COUNTER::Value().
INT64 New_Construct_Id | ( | void | ) |
Definition at line 421 of file anl_driver.cxx.
References Next_Construct_Id, and COUNTER::Post_Incr().
Referenced by Prompf_Assign_Ids_Traverse().
Definition at line 81 of file anl_driver.cxx.
Definition at line 83 of file anl_driver.cxx.
BOOL Anl_Enabled = TRUE [static] |
Definition at line 95 of file anl_driver.cxx.
Referenced by Anl_Fini(), Anl_Init(), Anl_Process_Command_Line(), Anl_Static_Analysis(), and Anl_Validate_Options().
ANL_FILE_MNGR* Anl_File_Mngr [static] |
Definition at line 88 of file anl_driver.cxx.
const char* Anl_Filename = NULL [static] |
Definition at line 97 of file anl_driver.cxx.
Referenced by Anl_File_Path(), Anl_Fini(), Anl_Init(), Anl_Process_Command_Line(), Anl_Static_Analysis(), and Derive_Anl_Filename().
const char* Anl_OrignSrc_Filename = NULL [static] |
Definition at line 98 of file anl_driver.cxx.
Referenced by Anl_Fini(), Anl_Process_Command_Line(), Anl_Validate_Options(), and Derive_Anl_Filename().
Definition at line 94 of file anl_driver.cxx.
Referenced by Anl_Process_Command_Line(), and ANL_FUNC_ENTRY::Emit_Nested_Original_Constructs().
char* Anl_Progname = NULL [static] |
Definition at line 100 of file anl_driver.cxx.
Referenced by Anl_Process_Command_Line().
BOOL Anl_Verbose = FALSE [static] |
Definition at line 96 of file anl_driver.cxx.
Referenced by Anl_Fini(), and Anl_Process_Command_Line().
const char* Anl_Version = NULL [static] |
Definition at line 99 of file anl_driver.cxx.
Referenced by Anl_Fini().
const char* Fe_Version |
Definition at line 97 of file glob.cxx.
Referenced by Anl_Init().
COUNTER Next_Construct_Id(1) [static] |
Referenced by Anl_Process_Command_Line(), Anl_Static_Analysis(), Get_Next_Construct_Id(), and New_Construct_Id().
Definition at line 82 of file anl_driver.cxx.
Referenced by Anl_Static_Analysis().
BOOL Pool_Initialized = FALSE [static] |
Definition at line 90 of file anl_driver.cxx.
Referenced by Anl_Fini(), and Anl_Init().