Implement access functions for machine nodes with machine operands
[libfirm] / ir / be / ia32 / ia32_transform.h
1 #ifndef _IA32_TRANSFORM_H_
2 #define _IA32_TRANSFORM_H_
3
4 #include "firm_config.h"
5 #include "bearch_ia32_t.h"
6
7 /**
8  * Transforms the given Firm node into one or more appropriate ia32 nodes.
9  */
10 void ia32_transform_node(ir_node *node, void *env);
11
12 /**
13  * Transforms a Sub or fSub into Neg--Add iff OUT_REG == SRC2_REG.
14  * THIS FUNCTIONS MUST BE CALLED AFTER REGISTER ALLOCATION.
15  */
16 void ia32_transform_sub_to_neg_add(ir_node *irn, ia32_code_gen_t *cg);
17
18 /**
19  * Transforms a LEA into an Add if possible
20  * THIS FUNCTIONS MUST BE CALLED AFTER REGISTER ALLOCATION.
21  */
22 void ia32_transform_lea_to_add(ir_node *irn, ia32_code_gen_t *cg);
23
24 #ifndef NDEBUG
25 /**
26  * Prints the old node name on cg obst and returns a pointer to it.
27  */
28 const char *ia32_get_old_node_name(ia32_code_gen_t *cg, ir_node *irn);
29 #endif /* NDEBUG */
30
31 #endif /* _IA32_TRANSFORM_H_ */