PoCC Version 1.0
options.c File Reference

Defines

#define dirty_parse(val, check)

Functions

static void print_version (void)
static void print_help (void)
void pocc_usage ()
int pocc_getopts (s_pocc_options_t *options, int argc, char **argv)

Variables

static struct s_opt opts [POCC_NB_OPTS]
static struct s_option option

Define Documentation

#define dirty_parse (   val,
  check 
)
Value:
count = 0;                                              \
      while (str[pos] && str[pos] != ',')                       \
        buff[count++] = str[pos++];                             \
      if (check && ! str[pos])                                  \
        pocc_error ("Missing argument in --letsee-bounds\n");   \
      buff[count] = '\0';                                       \
      val = atoi (buff);                                        \
      ++pos;

Referenced by pocc_getopts().


Function Documentation

static void print_version ( void  ) [static]

Referenced by pocc_getopts().

static void print_help ( void  ) [static]

References opts, and POCC_NB_OPTS.

Referenced by pocc_getopts().

void pocc_usage ( )

Referenced by pocc_getopts().

int pocc_getopts ( s_pocc_options_t options,
int  argc,
char **  argv 
)

References s_pocc_options::array_contraction_keep_outer_par_loops, s_pocc_options::array_contraction_keep_vectorized_loops, s_pocc_options::candl_deps_isl_simplify, s_pocc_options::candl_deps_prune_transcover, s_pocc_options::candl_pass, s_pocc_options::clan_bounded_context, s_pocc_options::cloog_f, s_pocc_options::cloogify_schedules, s_pocc_options::codegen, s_pocc_options::codegen_timer_asm, s_pocc_options::codegen_timer_papi, s_pocc_options::codegen_timercode, s_pocc_options::compile_command, s_pocc_options::compile_program, dirty_parse, s_pocc_options::execute_command_args, s_pocc_options::input_file, s_pocc_options::input_file_name, s_pocc_options::inscop_fakepoccarray, s_pocc_options::letsee, s_pocc_options::letsee_backtrack_multi, s_pocc_options::letsee_clb, s_pocc_options::letsee_cUb, s_pocc_options::letsee_ilb, s_pocc_options::letsee_iUb, s_pocc_options::letsee_normspace, s_pocc_options::letsee_plb, s_pocc_options::letsee_prune_precut, s_pocc_options::letsee_pUb, s_pocc_options::letsee_rtries, s_pocc_options::letsee_scheme_m1, s_pocc_options::letsee_space, s_pocc_options::letsee_traversal, option, s_pocc_options::output_file, s_pocc_options::output_file_name, s_pocc_options::output_scoplib_file_name, s_pocc_options::pluto, s_pocc_options::pluto_bee, s_pocc_options::pluto_bound_coefficients, s_pocc_options::pluto_external_candl, s_pocc_options::pluto_ft, s_pocc_options::pluto_fuse, s_pocc_options::pluto_l2tile, s_pocc_options::pluto_lastwriter, s_pocc_options::pluto_multipipe, s_pocc_options::pluto_parallel, s_pocc_options::pluto_polyunroll, s_pocc_options::pluto_prevector, s_pocc_options::pluto_quiet, s_pocc_options::pluto_rar, s_pocc_options::pluto_rar_cf, s_pocc_options::pluto_scalpriv, s_pocc_options::pluto_tile, s_pocc_options::pluto_tiling_in_scatt, s_pocc_options::pluto_ufactor, s_pocc_options::pluto_unroll, pocc_error(), POCC_NB_OPTS, POCC_OPT_AC_KEEP_OUTERPAR, POCC_OPT_AC_KEEP_VECTORIZED, POCC_OPT_BOUNDED_CTXT, POCC_OPT_CANDL_DEP_ISL_SIMP, POCC_OPT_CANDL_DEP_PRUNE_DUPS, POCC_OPT_CLOOG_F, POCC_OPT_CLOOG_L, POCC_OPT_CLOOGIFY_SCHED, POCC_OPT_CODEGEN_TIMER_ASM, POCC_OPT_CODEGEN_TIMER_PAPI, POCC_OPT_CODEGEN_TIMERCODE, POCC_OPT_COMPILE, POCC_OPT_COMPILE_CMD, POCC_OPT_DEFAULT_CTXT, POCC_OPT_HELP, POCC_OPT_INSCOP_FAKEARRAY, POCC_OPT_LETSEE, POCC_OPT_LETSEE_BACKTRACK_MULTI, POCC_OPT_LETSEE_BOUNDS, POCC_OPT_LETSEE_DRY_RUN, POCC_OPT_LETSEE_NORMSPACE, POCC_OPT_LETSEE_PRUNE_PRECUT, POCC_OPT_LETSEE_RTRIES, POCC_OPT_LETSEE_SCHEME_M1, POCC_OPT_LETSEE_SEARCHSPACE, POCC_OPT_LETSEE_TRAVERSAL, POCC_OPT_NO_CANDL, POCC_OPT_NOCODEGEN, POCC_OPT_OUTFILE, POCC_OPT_OUTFILE_SCOP, POCC_OPT_PLUTO, POCC_OPT_PLUTO_BEE, POCC_OPT_PLUTO_BOUND_COEF, POCC_OPT_PLUTO_EXTERNAL_CANDL, POCC_OPT_PLUTO_FT, POCC_OPT_PLUTO_FUSE, POCC_OPT_PLUTO_L2TILE, POCC_OPT_PLUTO_LASTWRITER, POCC_OPT_PLUTO_LT, POCC_OPT_PLUTO_MULTIPIPE, POCC_OPT_PLUTO_PARALLEL, POCC_OPT_PLUTO_POLYUNROLL, POCC_OPT_PLUTO_PREVECTOR, POCC_OPT_PLUTO_QUIET, POCC_OPT_PLUTO_RAR, POCC_OPT_PLUTO_RAR_CF, POCC_OPT_PLUTO_SCALPRIV, POCC_OPT_PLUTO_TILE, POCC_OPT_PLUTO_TILING_IN_SCATT, POCC_OPT_PLUTO_UFACTOR, POCC_OPT_PLUTO_UNROLL, POCC_OPT_POLYFEAT, POCC_OPT_POLYFEAT_RAR, POCC_OPT_PRAGMATIZER, POCC_OPT_PRINT_CLOOG_FILE, POCC_OPT_PROGRAM_TIMEOUT, POCC_OPT_PTILE, POCC_OPT_PTILE_FTS, POCC_OPT_PUNROLL, POCC_OPT_PUNROLL_AND_JAM, POCC_OPT_PUNROLL_SIZE, POCC_OPT_QUIET, POCC_OPT_READ_SCOP_FILE, POCC_OPT_RUN_CMD_ARGS, POCC_OPT_STORCOMPACT, POCC_OPT_TRASH, POCC_OPT_USE_PAST, POCC_OPT_VECT_MARK_PAR_LOOPS, POCC_OPT_VECT_NO_KEEP_OUTER_PAR_LOOPS, POCC_OPT_VECT_SINK_ALL_LOOPS, POCC_OPT_VECTORIZER, POCC_OPT_VERBOSE, POCC_OPT_VERSION, pocc_usage(), s_pocc_options::polyfeat, s_pocc_options::polyfeat_rar, s_pocc_options::pragmatizer, s_pocc_options::print_cloog_file, print_help(), print_version(), s_pocc_options::ptile, s_pocc_options::ptile_fts, s_pocc_options::punroll, s_pocc_options::punroll_and_jam, s_pocc_options::punroll_size, s_pocc_options::quiet, s_pocc_options::read_input_scop_file, s_pocc_options::set_default_parameter_values, s_pocc_options::storage_compaction, s_pocc_options::timeout, s_pocc_options::trash, s_pocc_options::use_past, s_pocc_options::vectorizer, s_pocc_options::vectorizer_keep_outer_par_loops, s_pocc_options::vectorizer_mark_par_loops, s_pocc_options::vectorizer_sink_all_candidates, s_pocc_options::vectorizer_vectorize_loops, s_pocc_options::verbose, and XMALLOC.

Referenced by main().


Variable Documentation

struct s_opt opts[POCC_NB_OPTS] [static]

Referenced by print_help().

struct s_option option [static]
Initial value:
  {
    opts,
    {"Unknown argument: -", "unknown argument: --",
     "Expected argument for option: "},
    POCC_NB_OPTS,
    1
  }

Referenced by pocc_getopts().