GIMPLE_COND#

gcond *gimple_build_cond(enum tree_code pred_code, tree lhs, tree rhs, tree t_label, tree f_label)#

Build a GIMPLE_COND statement. A GIMPLE_COND statement compares LHS and RHS and if the condition in PRED_CODE is true, jump to the label in t_label, otherwise jump to the label in f_label. PRED_CODE are relational operator tree codes like EQ_EXPR, LT_EXPR, LE_EXPR, NE_EXPR, etc.

gcond *gimple_build_cond_from_tree(tree cond, tree t_label, tree f_label)#

Build a GIMPLE_COND statement from the conditional expression tree COND. T_LABEL and F_LABEL are as in gimple_build_cond.

enum tree_code gimple_cond_code(gimple g)#

Return the code of the predicate computed by conditional statement G.

void gimple_cond_set_code(gcond *g, enum tree_code code)#

Set CODE to be the predicate code for the conditional statement G.

tree gimple_cond_lhs(gimple g)#

Return the LHS of the predicate computed by conditional statement G.

void gimple_cond_set_lhs(gcond *g, tree lhs)#

Set LHS to be the LHS operand of the predicate computed by conditional statement G.

tree gimple_cond_rhs(gimple g)#

Return the RHS operand of the predicate computed by conditional G.

void gimple_cond_set_rhs(gcond *g, tree rhs)#

Set RHS to be the RHS operand of the predicate computed by conditional statement G.

tree gimple_cond_true_label(const gcond *g)#

Return the label used by conditional statement G when its predicate evaluates to true.

void gimple_cond_set_true_label(gcond *g, tree label)#

Set LABEL to be the label used by conditional statement G when its predicate evaluates to true.

void gimple_cond_set_false_label(gcond *g, tree label)#

Set LABEL to be the label used by conditional statement G when its predicate evaluates to false.

tree gimple_cond_false_label(const gcond *g)#

Return the label used by conditional statement G when its predicate evaluates to false.

void gimple_cond_make_false(gcond *g)#

Set the conditional COND_STMT to be of the form ‘if (1 == 0)’.

void gimple_cond_make_true(gcond *g)#

Set the conditional COND_STMT to be of the form ‘if (1 == 1)’.