libFirm
|
Compares its two operands and checks whether a specified relation (like less or equal) is fulfilled. More...
Enumerations | |
enum | n_Cmp { n_Cmp_left, n_Cmp_right, n_Cmp_max = n_Cmp_right } |
Input numbers for Cmp node. More... | |
Functions | |
ir_node * | new_rd_Cmp (dbg_info *dbgi, ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_relation relation) |
Construct a Cmp node. More... | |
ir_node * | new_r_Cmp (ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_relation relation) |
Construct a Cmp node. More... | |
ir_node * | new_d_Cmp (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right, ir_relation relation) |
Construct a Cmp node. More... | |
ir_node * | new_Cmp (ir_node *irn_left, ir_node *irn_right, ir_relation relation) |
Construct a Cmp node. More... | |
int | is_Cmp (const ir_node *node) |
Test if node is a Cmp. More... | |
ir_node * | get_Cmp_left (const ir_node *node) |
Returns left input of a Cmp node. More... | |
void | set_Cmp_left (ir_node *node, ir_node *left) |
Sets left input of a Cmp node. More... | |
ir_node * | get_Cmp_right (const ir_node *node) |
Returns right input of a Cmp node. More... | |
void | set_Cmp_right (ir_node *node, ir_node *right) |
Sets right input of a Cmp node. More... | |
ir_relation | get_Cmp_relation (const ir_node *node) |
Returns relation attribute of a Cmp node. More... | |
void | set_Cmp_relation (ir_node *node, ir_relation relation) |
Sets relation attribute of a Cmp node. More... | |
ir_op * | get_op_Cmp (void) |
Returns opcode for Cmp nodes. More... | |
Variables | |
ir_op * | op_Cmp |
Cmp opcode. More... | |
Compares its two operands and checks whether a specified relation (like less or equal) is fulfilled.
enum n_Cmp |
Returns left input of a Cmp node.
Definition at line 726 of file gen_irnode.c.
ir_relation get_Cmp_relation | ( | const ir_node * | node | ) |
Returns relation attribute of a Cmp node.
Definition at line 3075 of file gen_irnode.c.
Returns right input of a Cmp node.
Definition at line 736 of file gen_irnode.c.
ir_op* get_op_Cmp | ( | void | ) |
int is_Cmp | ( | const ir_node * | node | ) |
Test if node is a Cmp.
Definition at line 3070 of file gen_irnode.c.
ir_node* new_Cmp | ( | ir_node * | irn_left, |
ir_node * | irn_right, | ||
ir_relation | relation | ||
) |
Construct a Cmp node.
irn_left | left |
irn_right | right |
relation | Comparison relation |
Definition at line 721 of file gen_irnode.c.
References new_d_Cmp().
ir_node* new_d_Cmp | ( | dbg_info * | dbgi, |
ir_node * | irn_left, | ||
ir_node * | irn_right, | ||
ir_relation | relation | ||
) |
Construct a Cmp node.
dbgi | A pointer to debug information. |
irn_left | left |
irn_right | right |
relation | Comparison relation |
Definition at line 714 of file gen_irnode.c.
References current_ir_graph, get_cur_block(), IR_GRAPH_CONSTRAINT_CONSTRUCTION, irg_is_constrained(), and new_rd_Cmp().
Referenced by new_Cmp().
ir_node* new_r_Cmp | ( | ir_node * | block, |
ir_node * | irn_left, | ||
ir_node * | irn_right, | ||
ir_relation | relation | ||
) |
Construct a Cmp node.
block | The IR block the node belongs to. |
irn_left | left |
irn_right | right |
relation | Comparison relation |
Definition at line 709 of file gen_irnode.c.
References new_rd_Cmp().
ir_node* new_rd_Cmp | ( | dbg_info * | dbgi, |
ir_node * | block, | ||
ir_node * | irn_left, | ||
ir_node * | irn_right, | ||
ir_relation | relation | ||
) |
Construct a Cmp node.
dbgi | A pointer to debug information. |
block | The IR block the node belongs to. |
irn_left | left |
irn_right | right |
relation | Comparison relation |
Definition at line 692 of file gen_irnode.c.
References get_irn_irg(), mode_b, new_ir_node(), op_Cmp, optimize_node(), and verify_new_node().
Referenced by new_d_Cmp(), and new_r_Cmp().
Sets left input of a Cmp node.
Definition at line 731 of file gen_irnode.c.
void set_Cmp_relation | ( | ir_node * | node, |
ir_relation | relation | ||
) |
Sets relation attribute of a Cmp node.
Definition at line 3080 of file gen_irnode.c.
ir_op* op_Cmp |
Cmp opcode.
Definition at line 1109 of file nodes.h.
Referenced by get_op_Cmp(), new_rd_Cmp(), set_Cmp_right(), and set_typeconst_type().