- add missing prototype
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 Sep 2008 23:01:39 +0000 (23:01 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 Sep 2008 23:01:39 +0000 (23:01 +0000)
[r22105]

include/libfirm/iroptimize.h

index dc6d577..9cdd5c9 100644 (file)
@@ -198,6 +198,19 @@ void opt_if_conv(ir_graph *irg, const ir_settings_if_conv_t *params);
 
 void opt_sync(ir_graph *irg);
 
+/*
+ * Check if we can replace the load by a given const from
+ * the const code irg.
+ *
+ * @param load   the load to replace
+ * @param c      the constant
+ *
+ * @return in the modes match or can be transformed using a reinterpret cast
+ *         returns a copy of the constant (possibly Conv'ed) on the
+ *         current_ir_graph
+ */
+ir_node *can_replace_load_by_const(const ir_node *load, ir_node *c);
+
 /**
  * Load/Store optimization.
  *