Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
flags.h File Reference
This graph shows which files directly or indirectly include this file:

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

#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_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)
#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_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_opt (   o)    ((o)->opt)

Definition at line 333 of file flags.h.

Referenced by Build_Skiplist(), Print_Option_Group(), and Process_Command_Line_Group().


Typedef Documentation

typedef struct option_desc OPTION_DESC
typedef struct option_group OPTION_GROUP
typedef struct option_list OPTION_LIST

Enumeration Type Documentation

Enumerator:
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 

Definition at line 296 of file flags.h.

Enumerator:
OV_VISIBLE 
OV_SHY 
OV_INTERNAL 

Definition at line 319 of file flags.h.


Function Documentation

BOOL Atoi_KMG ( const char *  s,
INT64 val,
BOOL  suffix_required 
)

Definition at line 173 of file flags.c.

References c, FALSE, and TRUE.

Referenced by LNO_Configure().

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

void Set_Option_Internal ( OPTION_GROUP ogroup,
char *  name 
)
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().

Here is the call graph for this function:

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.

Here is the call graph for this function:

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

Here is the call graph for this function:


Variable Documentation

char Cmdname[]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines