Commit e0de495e authored by Michael Beck's avatar Michael Beck
Browse files

completely removed old verbosity based debug output

[r19146]
parent bbc6291b
......@@ -55,7 +55,7 @@ typedef unsigned optimization_state_t;
* If optimize == 0 no optimizations are performed at all.
* Default: optimize == 1.
*/
void set_optimize (int value);
void set_optimize(int value);
int get_optimize(void);
/** Enables/Disables constant folding optimization.
......@@ -66,18 +66,14 @@ int get_optimize(void);
* - simplification of tests ( !(a < b) ==> (a >= b))
* Default: opt_constant_folding == 1.
*/
void set_opt_constant_folding (int value);
/** Enables/Disables output of information about loop unrolling.
*/
void set_opt_loop_unrolling_verbose (int value);
void set_opt_constant_folding(int value);
/** Enables/Disables common subexpression elimination.
*
* If opt_cse == 1 perform common subexpression elimination.
* Default: opt_cse == 1.
*/
void set_opt_cse (int value);
void set_opt_cse(int value);
/** Returns constant folding optimization setting. */
int get_opt_cse(void);
......@@ -91,7 +87,7 @@ int get_opt_cse(void);
* right after a call to local_optimize with global cse turned on.
* Default: opt_global_cse == 0.
*/
void set_opt_global_cse (int value);
void set_opt_global_cse(int value);
/** Enables/Disables strength reduction.
*
......@@ -100,11 +96,7 @@ void set_opt_global_cse (int value);
*
* Default: opt_strength_red = 1;
*/
void set_opt_strength_red (int value);
/** Enables/Disables output of information about strength reduction.
*/
void set_opt_strength_red_verbose (int value);
void set_opt_strength_red(int value);
/** Enables/Disables unreachable code elimination.
*
......@@ -140,15 +132,14 @@ void set_opt_control_flow_strong_simplification(int value);
* If the flag is turned on Sel nodes can be replaced by Const nodes representing
* the address of a function.
*/
void set_opt_dyn_meth_dispatch (int value);
int get_opt_dyn_meth_dispatch (void);
void set_opt_dyn_meth_dispatch(int value);
int get_opt_dyn_meth_dispatch(void);
/** Enable/Disable type optimization of cast nodes.
*
* Controls the optimizations in tropt.h. Default: on.
*/
void set_opt_optimize_class_casts (int value);
void set_opt_optimize_class_casts_verbose (int value);
void set_opt_optimize_class_casts(int value);
/** Restricts the behavior of cast optimization.
*
......@@ -177,7 +168,6 @@ void set_opt_remove_confirm(int value);
* Enable/Disable scalar replacement optimization.
*/
void set_opt_scalar_replacement(int value);
void set_opt_scalar_replacement_verbose(int value);
/**
* Enable/Disable Null exception in Load and Store nodes only.
......@@ -234,7 +224,7 @@ void set_opt_auto_create_sync(int value);
*
* @note ATTENTION: not all such transformations are guarded by a flag.
*/
void set_opt_normalize (int value);
void set_opt_normalize(int value);
/** Enable/Disable precise exception context.
*
......
This diff is collapsed.
......@@ -63,6 +63,7 @@
#include "funccall_t.h"
#include "irhooks.h"
#include "iredges_t.h"
#include "tropt.h"
#include "debugger.h"
/* returns the firm root */
......@@ -141,6 +142,8 @@ void init_firm(const firm_parameter_t *param)
firm_init_entity();
/* allocate a hash table. */
init_type_identify(def_params.ti_if);
/* class cast optimization */
firm_init_class_casts_opt();
/* Init architecture dependent optimizations. */
arch_dep_init(arch_dep_default_factory);
......
......@@ -60,9 +60,6 @@ optimization_state_t libFIRM_running = 0;
/* verbose is always off on default */
optimization_state_t libFIRM_verb = 0;
/** The Firm verbosity level */
int firm_verbosity_level;
/* an external flag can be set and get from outside */
#define E_FLAG(name, value, def) \
void set_opt_##name(int flag) { \
......@@ -113,14 +110,6 @@ void set_opt_control_flow(int value) {
set_opt_control_flow_strong_simplification(value);
}
void set_firm_verbosity (int value) {
firm_verbosity_level = value;
}
int (get_firm_verbosity) (void) {
return _get_firm_verbosity();
}
/* Save the current optimization state. */
void save_optimization_state(optimization_state_t *state) {
*state = libFIRM_opt;
......
......@@ -63,8 +63,6 @@ typedef enum {
extern optimization_state_t libFIRM_opt, libFIRM_running, libFIRM_verb;
extern firm_verification_t opt_do_node_verification;
extern int firm_verbosity_level;
/** initialises the flags */
void firm_init_flags(void);
......@@ -72,18 +70,12 @@ void firm_init_flags(void);
#define E_FLAG(name, value, def) \
static INLINE int _get_opt_##name(void) { \
return libFIRM_opt & irf_##name; \
} \
static INLINE int get_opt_##name##_verbose(void) { \
return libFIRM_verb & irf_##name; \
}
/* generate the getter functions for internal access */
#define I_FLAG(name, value, def) \
static INLINE int get_opt_##name(void) { \
return libFIRM_opt & irf_##name; \
} \
static INLINE int get_opt_##name##_verbose(void) { \
return libFIRM_verb & irf_##name; \
}
/* generate getter and setter functions for running flags */
......@@ -102,10 +94,6 @@ static INLINE void set_##name##_running(int flag) {\
#undef E_FLAG
#undef R_FLAG
static INLINE int _get_firm_verbosity(void) {
return firm_verbosity_level;
}
static INLINE int _get_optimize(void) {
return get_opt_optimize();
}
......@@ -117,7 +105,6 @@ get_node_verification_mode(void) {
#define get_optimize() _get_optimize()
#define get_opt_cse() _get_opt_cse()
#define get_firm_verbosity() _get_firm_verbosity()
#define get_opt_dyn_meth_dispatch() _get_opt_dyn_meth_dispatch()
#define get_opt_optimize_class_casts() _get_opt_optimize_class_casts()
#define get_opt_suppress_downcast_optimization() _get_opt_suppress_downcast_optimization()
......
This diff is collapsed.
/*
* Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation and appearing in the file LICENSE.GPL included in the
* packaging of this file.
*
* Licensees holding valid libFirm Professional Edition licenses may use
* this file in accordance with the libFirm Commercial License.
* Agreement provided with the Software.
*
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE.
*/
/**
* @file
* @brief Perform optimizations of the type representation.
* @version $Id: $
*/
#ifndef FIRM_OPT_TROPT_H
#define FIRM_OPT_TROPT_H
void firm_init_class_casts_opt(void);
#endif
Markdown is supported
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