switches_util.cc File Reference
Go to the source code of this file.
|
Functions |
| int | getopt (int argc, char *const *argv, const char *optstring) |
| int | p_getsubopt (char **optionp, const char *const *tokens, char **valuep) |
| int | switch_value (char const *switch_name) |
| | < int getopt(int argc, char **argv, char *optstring);
|
| void | define_switch (char const *switch_name, int switch_value) |
| void | adjust_switch_value (char const *switch_name, int new_value) |
| int | parse_switches (int argc, char *argv[], char const *version, char **intrin_file_name) |
| | parse_switches - parse the polaris command line
|
| int | read_switch_file (const char *file_name) |
| int | read_switches () |
| void | dump_switches (ostream &o) |
Variables |
| Database< String, IntElem > | switches |
| char | polarisOutputFileName [PATH_MAX] |
Function Documentation
| int getopt |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring |
|
) |
|
|
| int p_getsubopt |
( |
char ** |
optionp, |
|
|
const char *const * |
tokens, |
|
|
char ** |
valuep |
|
) |
|
|
|
|
... find the end of the option and the equal sign if possible.
... if we have an '=' sign then record the argument and ... null terminate the token.
Definition at line 24 of file switches_util.cc.
References eq().
Referenced by parse_switches(). |
| int switch_value |
( |
char const * |
switch_name |
) |
|
|
|
|
< int getopt(int argc, char **argv, char *optstring);
Definition at line 69 of file switches_util.cc.
References ProtoDatabase< S, T >::find_ref(), switches, and IntElem::value().
Referenced by _is_expr_evenly_divisible(), _iterate_to_fixed_point_phase(), _make_nonlocals_modified_at_calls(), _read_simplify_opts(), _update_succ_edges(), build_CD(), build_pidom(), ProgramUnit::burst_header(), cleanup_program(), collect_ar_statistics(), convert_case(), StmtList::create_directives(), define_switch(), do_wide_output(), Dominator_S(), expr_type(), Directive::generate_csrd_privaterefs_directive(), Directive::generate_csrd_readonlyrefs_directive(), Directive::generate_csrd_sharedrefs_directive(), Directive::generate_omp_directive(), Directive::generate_omp_do_directive(), InlineObject::inline_expand(), is_evenly_divisible(), main(), MakeGSA(), output_size(), Program::print(), print_stmt_list(), propagate_constants_pu(), propagate_outermost_DOs(), RangeComparator::RangeComparator(), Program::read(), restructure(), substitute_parameters_pu(), translate_special_name(), wide_space(), SymbolAccessRef::write(), SymbolAccess::write(), Program::write(), and CommonBlockDict::write(). |
| void define_switch |
( |
char const * |
switch_name, |
|
|
int |
switch_value |
|
) |
|
|
| void adjust_switch_value |
( |
char const * |
switch_name, |
|
|
int |
new_value |
|
) |
|
|
| int parse_switches |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
char const * |
version, |
|
|
char ** |
intrin_file_name |
|
) |
|
|
| int read_switch_file |
( |
const char * |
file_name |
) |
|
|
| void dump_switches |
( |
ostream & |
o |
) |
|
|
|
|
o << " " << form("%16s", (const char *)*id) << form("%3d", val->value());
Definition at line 262 of file switches_util.cc.
References ProtoDatabase< S, T >::find_ref(), TypedBaseMap< S, T >::first_ref(), id(), TypedBaseMap< S, T >::successor_ref(), switches, and IntElem::value().
Referenced by Program::print(), and Program::write(). |
Variable Documentation
|