Lines Matching refs:phi_node
695 void insert_select(struct basic_block *bb, struct instruction *br, struct instruction *phi_node, ps… in insert_select() argument
700 select = alloc_typed_instruction(OP_SEL, phi_node->type); in insert_select()
705 target = phi_node->target; in insert_select()
706 assert(target->def == phi_node); in insert_select()
861 struct instruction *phi_node = alloc_typed_instruction(OP_PHI, type); in alloc_phi_node() local
864 phi = alloc_pseudo(phi_node); in alloc_phi_node()
866 phi->def = phi_node; in alloc_phi_node()
867 phi_node->target = phi; in alloc_phi_node()
868 phi_node->bb = bb; in alloc_phi_node()
869 return phi_node; in alloc_phi_node()
872 void add_phi_node(struct basic_block *bb, struct instruction *phi_node) in add_phi_node() argument
880 INSERT_CURRENT(phi_node, insn); in add_phi_node()
885 add_instruction(&bb->insns, phi_node); in add_phi_node()
890 struct instruction *phi_node = alloc_phi_node(bb, var, var->ident); in insert_phi_node() local
891 add_phi_node(bb, phi_node); in insert_phi_node()
892 return phi_node; in insert_phi_node()
1634 struct instruction *phi_node; in add_join_conditional() local
1641 phi_node = alloc_typed_instruction(OP_PHI, expr->ctype); in add_join_conditional()
1642 link_phi(phi_node, phi1); in add_join_conditional()
1643 link_phi(phi_node, phi2); in add_join_conditional()
1644 phi_node->target = target = alloc_pseudo(phi_node); in add_join_conditional()
1645 add_one_insn(ep, phi_node); in add_join_conditional()
1997 struct instruction *phi_node = first_instruction(bb->insns); in add_return() local
1999 if (!phi_node) { in add_return()
2000 phi_node = alloc_typed_instruction(OP_PHI, ctype); in add_return()
2001 phi_node->target = alloc_pseudo(phi_node); in add_return()
2002 phi_node->bb = bb; in add_return()
2003 add_instruction(&bb->insns, phi_node); in add_return()
2007 link_phi(phi_node, phi); in add_return()
2012 struct instruction *phi_node; in linearize_fn_statement() local
2026 phi_node = first_instruction(bb->insns); in linearize_fn_statement()
2027 if (phi_node) in linearize_fn_statement()
2028 pseudo = phi_node->target; in linearize_fn_statement()