- Refactored finish/after_ra phases a bit, stacknode fixup and stack bias
[libfirm] / ir / be / ia32 / ia32_optimize.h
index 63f76cb..e0ef59c 100644 (file)
@@ -1,25 +1,28 @@
+/**
+ * Function prototypes for ia32 optimizations
+ * @author Christian Wuerdig
+ * $Id$
+ */
+
 #ifndef _IA32_OPTIMIZE_H_
 #define _IA32_OPTIMIZE_H_
 
 /**
- * Transforms a Firm Const into an ia32 Const and places it
- * in the Block where it's used.
- * Additionally all mode_P nodes are changed into mode_Is nodes.
- * This function is called by a walker.
+ * Prepares irg for codegeneration. Places consts and transform reference mode
+ * nodes into mode_Iu nodes.
+ * @param cg  The ia32 codegenerator object
  */
-void ia32_place_consts_set_modes(ir_node *irn, void *env);
+void ia32_pre_transform_phase(ia32_code_gen_t *cg);
 
 /**
- * Checks for address mode patterns and performs the
- * necessary transformations.
- * This function is called by a walker.
+ * Performs address mode optimization.
+ * @param cg  The ia32 codegenerator object
  */
-void ia32_optimize_am(ir_node *irn, void *env);
+void ia32_optimize_addressmode(ia32_code_gen_t *cg);
 
 /**
  * Performs Peephole Optimizations
- * This function is called by a walker.
  */
-void ia32_peephole_optimization(ir_node *irn, void *env);
+void ia32_peephole_optimization(ir_graph *irg, ia32_code_gen_t *cg);
 
 #endif /* _IA32_OPTIMIZE_H_ */