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 * Transform firm nodes to x86 assembler nodes
16 void ia32_transform_graph(ia32_code_gen_t *cg);
20 * Enters all transform functions into the generic pointer
22 void ia32_register_transformers(void);
25 * Transforms the given Firm node into one or more appropriate ia32 nodes.
27 void ia32_transform_node(ir_node *node, void *env);
31 * The Psi selector can be a tree of compares combined with "And"s and "Or"s.
32 * We create a Set node, respectively a xCmp in case the Psi is a float, for each
33 * compare, which causes the compare result to be stores in a register. The
34 * "And"s and "Or"s are transformed later, we only adjust their mode.
36 void ia32_transform_psi_cond_tree(ir_node *node, void *env);
40 * Prints the old node name on cg obst and returns a pointer to it.
42 const char *ia32_get_old_node_name(ia32_code_gen_t *cg, ir_node *irn);
46 ia32_SSIGN, ia32_DSIGN, ia32_SABS, ia32_DABS, ia32_known_const_max
50 * Generate a known floating point constant
52 ident *ia32_gen_fp_known_const(ia32_known_const_t kct);
54 #endif /* _IA32_TRANSFORM_H_ */