2 * Function prototypes for Firm into ia32-Firm transformations.
3 * @author Christian Wuerdig
7 #ifndef _IA32_TRANSFORM_H_
8 #define _IA32_TRANSFORM_H_
10 #include "firm_config.h"
11 #include "bearch_ia32_t.h"
14 * Enters all transform functions into the generic pointer
16 void ia32_register_transformers(void);
19 * Transforms the given Firm node into one or more appropriate ia32 nodes.
21 void ia32_transform_node(ir_node *node, void *env);
24 * The Psi selector can be a tree of compares combined with "And"s and "Or"s.
25 * We create a Set node, respectively a xCmp in case the Psi is a float, for each
26 * compare, which causes the compare result to be stores in a register. The
27 * "And"s and "Or"s are transformed later, we only adjust their mode.
29 void ia32_transform_psi_cond_tree(ir_node *node, void *env);
32 * Transforms a Minus node.
34 * @param env The transformation environment
35 * @param op The Minus operand
36 * @return The created ia32 Minus node
38 ir_node *gen_Minus_ex(ia32_transform_env_t *env, ir_node *op);
42 * Prints the old node name on cg obst and returns a pointer to it.
44 const char *ia32_get_old_node_name(ia32_code_gen_t *cg, ir_node *irn);
47 #endif /* _IA32_TRANSFORM_H_ */