From 26823c0427ac8822dbc03533fe258856aab80f6a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 18 Sep 2008 23:01:39 +0000 Subject: [PATCH] - add missing prototype [r22105] --- include/libfirm/iroptimize.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/libfirm/iroptimize.h b/include/libfirm/iroptimize.h index dc6d5770c..9cdd5c91d 100644 --- a/include/libfirm/iroptimize.h +++ b/include/libfirm/iroptimize.h @@ -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. * -- 2.20.1