Commit 69d7305c authored by Manuel Mohr's avatar Manuel Mohr
Browse files

be: Remove -bstatev/-bfiltev options, let frontend handle it.

parent 2a2cc1d8
......@@ -52,8 +52,6 @@ struct be_options_t {
int verify_option; /**< backend verify option */
char ilp_server[128]; /**< the ilp server name */
char ilp_solver[128]; /**< the ilp solver name */
int statev; /**< enable stat event dumping */
char filtev[128]; /**< filter mask for stat events */
int verbose_asm; /**< dump verbose assembler */
};
extern be_options_t be_options;
......
......@@ -71,8 +71,6 @@ be_options_t be_options = {
BE_VERIFY_WARN, /* verification level: warn */
"", /* ilp server */
"", /* ilp solver */
0, /* enable statistic event dumping */
"", /* print stat events */
1, /* verbose assembler output */
};
......@@ -117,8 +115,6 @@ static const lc_opt_table_entry_t be_main_options[] = {
LC_OPT_ENT_BOOL ("time", "get backend timing statistics", &be_options.timing),
LC_OPT_ENT_BOOL ("profilegenerate", "instrument the code for execution count profiling", &be_options.opt_profile_generate),
LC_OPT_ENT_BOOL ("profileuse", "use existing profile data", &be_options.opt_profile_use),
LC_OPT_ENT_BOOL ("statev", "dump statistic events", &be_options.statev),
LC_OPT_ENT_STR ("filtev", "filter for stat events (regex if support is active", &be_options.filtev),
LC_OPT_ENT_BOOL ("verboseasm", "enable verbose assembler output", &be_options.verbose_asm),
LC_OPT_ENT_STR("ilp.server", "the ilp server name", &be_options.ilp_server),
......@@ -828,15 +824,13 @@ void be_main(FILE *file_handle, const char *cup_name)
ir_timer_reset_and_start(t);
}
if (be_options.statev) {
if (stat_ev_enabled) {
const char *dot = strrchr(cup_name, '.');
const char *pos = dot ? dot : cup_name + strlen(cup_name);
char *buf = ALLOCAN(char, pos - cup_name + 1);
strncpy(buf, cup_name, pos - cup_name);
buf[pos - cup_name] = '\0';
be_options.statev = 1;
stat_ev_begin(buf, be_options.filtev);
stat_ev_ctx_push_str("bemain_compilation_unit", cup_name);
}
......@@ -853,9 +847,8 @@ void be_main(FILE *file_handle, const char *cup_name)
}
}
if (be_options.statev) {
if (stat_ev_enabled) {
stat_ev_ctx_pop("bemain_compilation_unit");
stat_ev_end();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment