Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
Go to the source code of this file.
Classes | |
struct | option_list |
struct | option_desc |
struct | option_group |
Defines | |
#define | OLIST_next(o) ((o)->next) |
#define | OLIST_opt(o) ((o)->opt) |
#define | OLIST_val(o) ((o)->val) |
#define | ODESC_kind(o) ((o)->kind) |
#define | ODESC_visibility(o) ((o)->visibility) |
#define | ODESC_can_change_by_pragma(o) ((o)->can_change_by_pragma) |
#define | ODESC_name(o) ((o)->name) |
#define | ODESC_abbrev(o) ((o)->abbrev) |
#define | ODESC_def_val(o) ((o)->def_val) |
#define | ODESC_min_val(o) ((o)->min_val) |
#define | ODESC_max_val(o) ((o)->max_val) |
#define | ODESC_variable(o) ((o)->variable) |
#define | ODESC_description(o) ((o)->description) |
#define | OGROUP_name(o) ((o)->name) |
#define | OGROUP_options(o) ((o)->options) |
#define | OGROUP_separator(o) ((o)->separator) |
#define | OGROUP_valmarker(o) ((o)->valmarker) |
#define | OGROUP_description(o) ((o)->description) |
Typedefs | |
typedef struct option_list | OPTION_LIST |
typedef struct option_desc | OPTION_DESC |
typedef struct option_group | OPTION_GROUP |
Enumerations | |
enum | OPTION_KIND { OVK_INVALID, OVK_NONE, OVK_BOOL, OVK_INT32, OVK_INT64, OVK_UINT32, OVK_UINT64, OVK_NAME, OVK_SELF, OVK_LIST, OVK_OBSOLETE, OVK_OLD_COUNT, OVK_REPLACED, OVK_UNIMPLEMENTED, OVK_COUNT = 63 } |
enum | OPTION_VISIBILITY { OV_VISIBLE, OV_SHY, OV_INTERNAL } |
Functions | |
INT64 | Get_Numeric_Flag (char **cp, INT64 min, INT64 max, INT64 def, char *flag) |
BOOL | Atoi_KMG (const char *s, INT64 *val, BOOL suffix_required) |
void | Initialize_Option_Groups (OPTION_GROUP *ogroups) |
void | Set_Option_Internal (OPTION_GROUP *ogroup, char *name) |
BOOL | Process_Command_Line_Group (char *flag, OPTION_GROUP *opt_groups) |
void | Print_Option_Group (FILE *tf, OPTION_GROUP *opt_group, char *prefix, BOOL internal, BOOL full, BOOL update) |
void | Trace_Option_Group (FILE *tf, OPTION_GROUP *opt_group, BOOL full) |
void | Print_Option_Groups (FILE *tf, OPTION_GROUP *opt_group, char *prefix, BOOL internal, BOOL full, BOOL update) |
void | Trace_Option_Groups (FILE *tf, OPTION_GROUP *opt_group, BOOL full) |
OPTION_GROUP * | Get_Command_Line_Group (OPTION_GROUP *og, char *name) |
void | Trace_Command_Line_Group (FILE *, OPTION_GROUP *) |
void | Save_or_restore_options (char *, INT32, BOOL) |
Variables | |
char | Cmdname [] |
OPTION_GROUP | Common_Option_Groups [] |
#define ODESC_abbrev | ( | o | ) | ((o)->abbrev) |
Definition at line 355 of file flags.h.
Referenced by Process_Command_Line_Group().
#define ODESC_can_change_by_pragma | ( | o | ) | ((o)->can_change_by_pragma) |
Definition at line 353 of file flags.h.
Referenced by Copy_option(), and Save_or_restore_options().
#define ODESC_def_val | ( | o | ) | ((o)->def_val) |
Definition at line 356 of file flags.h.
Referenced by Process_Command_Line_Group().
#define ODESC_description | ( | o | ) | ((o)->description) |
Definition at line 360 of file flags.h.
Referenced by Print_Option_Group().
#define ODESC_kind | ( | o | ) | ((o)->kind) |
Definition at line 351 of file flags.h.
Referenced by Copy_option(), Duplicate_Value(), Initialize_Option_Group(), Modified_Option(), Print_Option_Group(), Process_Command_Line_Group(), Set_Option_Internal(), and Update_Scalar_Value().
#define ODESC_max_val | ( | o | ) | ((o)->max_val) |
Definition at line 358 of file flags.h.
Referenced by Process_Command_Line_Group().
#define ODESC_min_val | ( | o | ) | ((o)->min_val) |
Definition at line 357 of file flags.h.
Referenced by Process_Command_Line_Group().
#define ODESC_name | ( | o | ) | ((o)->name) |
Definition at line 354 of file flags.h.
Referenced by Print_Option_Group(), Process_Command_Line_Group(), Save_or_restore_options(), and Set_Option_Internal().
#define ODESC_variable | ( | o | ) | ((o)->variable) |
Definition at line 359 of file flags.h.
Referenced by Copy_option(), Duplicate_Value(), Initialize_Option_Group(), Modified_Option(), Print_Option_Group(), Process_Command_Line_Group(), Update_Pointer_Value(), and Update_Scalar_Value().
#define ODESC_visibility | ( | o | ) | ((o)->visibility) |
Definition at line 352 of file flags.h.
Referenced by Print_Option_Group(), and Set_Option_Internal().
#define OGROUP_description | ( | o | ) | ((o)->description) |
Definition at line 376 of file flags.h.
Referenced by Print_Option_Group().
#define OGROUP_name | ( | o | ) | ((o)->name) |
Definition at line 372 of file flags.h.
Referenced by Get_Command_Line_Group(), Initialize_Option_Groups(), Print_Option_Group(), Print_Option_Groups(), Process_Command_Line_Group(), and Save_or_restore_options().
#define OGROUP_options | ( | o | ) | ((o)->options) |
Definition at line 373 of file flags.h.
Referenced by Initialize_Option_Group(), Initialize_Option_Groups(), Print_Option_Group(), Process_Command_Line_Group(), Save_or_restore_options(), and Set_Option_Internal().
#define OGROUP_separator | ( | o | ) | ((o)->separator) |
Definition at line 374 of file flags.h.
Referenced by Print_Option_Group(), and Process_Command_Line_Group().
#define OGROUP_valmarker | ( | o | ) | ((o)->valmarker) |
Definition at line 375 of file flags.h.
Referenced by Print_Option_Group(), and Process_Command_Line_Group().
#define OLIST_next | ( | o | ) | ((o)->next) |
Definition at line 332 of file flags.h.
Referenced by Build_Skiplist(), Configure_Alias_Options(), DEBUG_Configure(), Print_Option_Group(), Process_Command_Line_Group(), and Process_Feedback_Options().
#define OLIST_opt | ( | o | ) | ((o)->opt) |
Definition at line 333 of file flags.h.
Referenced by Build_Skiplist(), Print_Option_Group(), and Process_Command_Line_Group().
Definition at line 334 of file flags.h.
Referenced by Build_Skiplist(), Configure_Alias_Options(), DEBUG_Configure(), Print_Option_Group(), Process_Command_Line_Group(), and Process_Feedback_Options().
typedef struct option_desc OPTION_DESC |
typedef struct option_group OPTION_GROUP |
typedef struct option_list OPTION_LIST |
enum OPTION_KIND |
enum OPTION_VISIBILITY |
OPTION_GROUP* Get_Command_Line_Group | ( | OPTION_GROUP * | og, |
char * | name | ||
) |
Definition at line 1243 of file flags.c.
References NULL, and OGROUP_name.
Referenced by Preconfigure(), and OPTIONS_STACK::Process_Pragma_Options().
INT64 Get_Numeric_Flag | ( | char ** | cp, |
INT64 | min, | ||
INT64 | max, | ||
INT64 | def, | ||
char * | flag | ||
) |
Definition at line 77 of file flags.c.
References c, EC_Flag_Digit, EC_Flag_Range, ErrMsg(), FALSE, TRUE, and val.
Referenced by Get_Trace_Phase_Number(), Process_Command_Line(), Process_Command_Line_Group(), and Process_Trace_Option().
void Initialize_Option_Groups | ( | OPTION_GROUP * | ogroups | ) |
Definition at line 549 of file flags.c.
References Initialize_Option_Group(), NULL, OGROUP_name, and OGROUP_options.
Referenced by Preconfigure(), and Process_Command_Line_Group().
void Print_Option_Group | ( | FILE * | tf, |
OPTION_GROUP * | opt_group, | ||
char * | prefix, | ||
BOOL | internal, | ||
BOOL | full, | ||
BOOL | update | ||
) |
Definition at line 1015 of file flags.c.
References FALSE, fprintf(), Modified_Option(), NULL, ODA_mod_int, ODA_mod_user, ODA_print, ODA_set_int, ODA_set_user, ODESC_aux, ODESC_description, ODESC_kind, ODESC_name, ODESC_primary, ODESC_variable, ODESC_visibility, OGA_internal, OGROUP_aux, OGROUP_description, OGROUP_name, OGROUP_options, OGROUP_separator, OGROUP_valmarker, OLIST_next, OLIST_opt, OLIST_val, OV_INTERNAL, OVK_BOOL, OVK_COUNT, OVK_INT32, OVK_INT64, OVK_LIST, OVK_NAME, OVK_OLD_COUNT, OVK_SELF, OVK_UINT32, OVK_UINT64, Reset_ODA_mod_int, Reset_ODA_mod_user, Reset_ODA_print, Reset_ODA_printed, Reset_ODA_set_int, Reset_ODA_set_user, SBar, Set_ODA_print, and TRUE.
Referenced by Print_Option_Groups(), Trace_Command_Line_Group(), and Trace_Option_Group().
void Print_Option_Groups | ( | FILE * | tf, |
OPTION_GROUP * | opt_group, | ||
char * | prefix, | ||
BOOL | internal, | ||
BOOL | full, | ||
BOOL | update | ||
) |
Definition at line 1214 of file flags.c.
References NULL, OGROUP_name, and Print_Option_Group().
Referenced by List_Compile_Options(), and Trace_Option_Groups().
BOOL Process_Command_Line_Group | ( | char * | flag, |
OPTION_GROUP * | opt_groups | ||
) |
Definition at line 651 of file flags.c.
References EC_Ambig_In_Grp, EC_Flag_Int_Expected, EC_Inv_Grp_Val, EC_Not_In_Grp, EC_Obsolete_Opt, EC_Replaced_Opt, EC_Unimp_Opt, EC_Unimplemented, ErrMsg(), FALSE, free(), Get_Numeric_Flag(), Initialize_Option_Groups(), Is_True, name, NULL, ODA_specified, ODESC_abbrev, ODESC_aux, ODESC_def_val, ODESC_kind, ODESC_max_val, ODESC_min_val, ODESC_name, ODESC_variable, OGROUP_name, OGROUP_options, OGROUP_separator, OGROUP_valmarker, OLIST_next, OLIST_opt, OLIST_val, OVK_BOOL, OVK_COUNT, OVK_INT32, OVK_INT64, OVK_LIST, OVK_NAME, OVK_NONE, OVK_OBSOLETE, OVK_OLD_COUNT, OVK_REPLACED, OVK_SELF, OVK_UINT32, OVK_UINT64, OVK_UNIMPLEMENTED, Set_ODA_mod, Set_ODA_set, strdup, TRUE, Update_Pointer_Value(), Update_Scalar_Value(), and val.
Referenced by Process_Command_Line(), and Process_Common_Options().
void Save_or_restore_options | ( | char * | , |
INT32 | , | ||
BOOL | |||
) |
Definition at line 1275 of file flags.c.
References Common_Option_Groups, Copy_option(), Get_Trace(), individual_option, Is_True, ODESC_can_change_by_pragma, ODESC_name, OGA_count, OGA_odesc_aux, OGROUP_aux, OGROUP_name, OGROUP_options, Opt_Level, TFile, and TP_MISC.
Referenced by OPTIONS_STACK::Pop_Current_Options(), and OPTIONS_STACK::Push_Current_Options().
void Set_Option_Internal | ( | OPTION_GROUP * | ogroup, |
char * | name | ||
) |
Definition at line 511 of file flags.c.
References NULL, ODESC_kind, ODESC_name, ODESC_visibility, OGROUP_aux, OGROUP_options, OV_INTERNAL, OVK_COUNT, OVK_OLD_COUNT, and Set_OGA_internal.
Referenced by Preconfigure().
void Trace_Command_Line_Group | ( | FILE * | , |
OPTION_GROUP * | |||
) |
Definition at line 1199 of file flags.c.
References FALSE, Print_Option_Group(), and TRUE.
Referenced by OPTIONS_STACK::Process_Pragma_Options().
void Trace_Option_Group | ( | FILE * | tf, |
OPTION_GROUP * | opt_group, | ||
BOOL | full | ||
) |
Definition at line 1191 of file flags.c.
References Print_Option_Group(), and TRUE.
void Trace_Option_Groups | ( | FILE * | tf, |
OPTION_GROUP * | opt_group, | ||
BOOL | full | ||
) |
Definition at line 1226 of file flags.c.
References Print_Option_Groups(), and TRUE.
Referenced by Configure_Source().
char Cmdname[] |
Definition at line 627 of file config.cxx.
Referenced by Process_Command_Line(), Process_Common_Options(), OPTIONS_STACK::Process_Pragma_Options(), and Save_or_restore_options().