*/
enum firmstat_options_t {
FIRMSTAT_ENABLED = 0x00000001, /**< enable statistics */
- FIRMSTAT_PATTERN_ENABLED = 0x00000002 /**< enable pattern calculation */
+ FIRMSTAT_PATTERN_ENABLED = 0x00000002, /**< enable pattern calculation */
+ FIRMSTAT_COUNT_STRONG_OP = 0x00000004, /**< if set, count Mul/Div/Mod/DivMod by constant */
};
/**
STAT_OPT_ID, /**< ID optimization */
STAT_OPT_CONST_EVAL, /**< constant evaluation */
STAT_OPT_STRENGTH_RED, /**< strenght reduction */
+ STAT_OPT_ARCH_DEP, /**< architecture dependant optimization */
STAT_LOWERED, /**< lowered */
STAT_OPT_MAX
/**
* A new node is created.
*/
-void stat_new_node(const ir_node *node);
+void stat_new_node(ir_node *node);
/**
* A node is changed into a Id node
*/
-void stat_turn_into_id(const ir_node *node);
+void stat_turn_into_id(ir_node *node);
/**
* A new graph was created
*/
void stat_dead_node_elim_stop(ir_graph *irg);
+/**
+ * A multiply was replaced by a series of Shifts/Adds/Subs
+ */
+void stat_arch_dep_replace_mul_with_shifts(ir_node *mul);
+
/**
* helper: get an ir_op from an opcode
*
#define stat_strength_red(irg, strong, cmp)
#define stat_dead_node_elim_start(irg)
#define stat_dead_node_elim_stop(irg)
+#define stat_arch_dep_replace_mul_with_shifts(irn)
#endif