added DBG_OPT_LEA( to report Lea craetion to the firm statistic module
[libfirm] / ir / be / ia32 / ia32_transform.h
index b29291c..445490d 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef _IA32_TRANSFORM_H_
 #define _IA32_TRANSFORM_H_
 
+#include "firm_config.h"
+#include "bearch_ia32_t.h"
+
 /**
  * Transforms the given Firm node into one or more appropriate ia32 nodes.
  */
@@ -12,4 +15,17 @@ void ia32_transform_node(ir_node *node, void *env);
  */
 void ia32_transform_sub_to_neg_add(ir_node *irn, ia32_code_gen_t *cg);
 
+/**
+ * Transforms a LEA into an Add if possible
+ * THIS FUNCTIONS MUST BE CALLED AFTER REGISTER ALLOCATION.
+ */
+void ia32_transform_lea_to_add(ir_node *irn, ia32_code_gen_t *cg);
+
+#ifndef NDEBUG
+/**
+ * Prints the old node name on cg obst and returns a pointer to it.
+ */
+const char *ia32_get_old_node_name(ia32_code_gen_t *cg, ir_node *irn);
+#endif /* NDEBUG */
+
 #endif /* _IA32_TRANSFORM_H_ */