Lines Matching refs:ssa
359 static void zend_dump_ssa_var_info(const zend_ssa *ssa, int ssa_var_num, uint32_t dump_flags) in zend_dump_ssa_var_info() argument
362 ssa->var_info[ssa_var_num].type, in zend_dump_ssa_var_info()
363 ssa->var_info[ssa_var_num].ce, in zend_dump_ssa_var_info()
364 ssa->var_info[ssa_var_num].ce ? in zend_dump_ssa_var_info()
365 ssa->var_info[ssa_var_num].is_instanceof : 0, in zend_dump_ssa_var_info()
369 ZEND_API void zend_dump_ssa_var(const zend_op_array *op_array, const zend_ssa *ssa, int ssa_var_num… in zend_dump_ssa_var() argument
378 if (ssa_var_num >= 0 && ssa->vars) { in zend_dump_ssa_var()
379 if (ssa->vars[ssa_var_num].no_val) { in zend_dump_ssa_var()
382 if (ssa->vars[ssa_var_num].escape_state == ESCAPE_STATE_NO_ESCAPE) { in zend_dump_ssa_var()
385 if (ssa->var_info) { in zend_dump_ssa_var()
386 zend_dump_ssa_var_info(ssa, ssa_var_num, dump_flags); in zend_dump_ssa_var()
387 if (ssa->var_info[ssa_var_num].has_range) { in zend_dump_ssa_var()
388 zend_dump_range(&ssa->var_info[ssa_var_num].range); in zend_dump_ssa_var()
394 static void zend_dump_type_constraint(const zend_op_array *op_array, const zend_ssa *ssa, const zen… in zend_dump_type_constraint() argument
400 static void zend_dump_range_constraint(const zend_op_array *op_array, const zend_ssa *ssa, const ze… in zend_dump_range_constraint() argument
414 …zend_dump_ssa_var(op_array, ssa, r->min_ssa_var, (r->min_var < op_array->last_var ? IS_CV : 0), r-… in zend_dump_range_constraint()
429 …zend_dump_ssa_var(op_array, ssa, r->max_ssa_var, (r->max_var < op_array->last_var ? IS_CV : 0), r-… in zend_dump_range_constraint()
442 …asic_block *b, const zend_op *opline, uint32_t dump_flags, const zend_ssa *ssa, const zend_ssa_op … in zend_dump_op() argument
452 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->result_type, EX_VAR_TO_NUM(opline->result.va… in zend_dump_op()
629 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->op1_type, EX_VAR_TO_NUM(opline->op1.var), du… in zend_dump_op()
642 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->op1_type, EX_VAR_TO_NUM(opline->op1.var), du… in zend_dump_op()
690 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var), du… in zend_dump_op()
703 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var), du… in zend_dump_op()
742 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->result_type, EX_VAR_TO_NUM(opline->result.va… in zend_dump_op()
752 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->result_type, EX_VAR_TO_NUM(opline->result.va… in zend_dump_op()
762 const zend_ssa *ssa = NULL; in zend_dump_op_line() local
773 ssa = (const zend_ssa*)data; in zend_dump_op_line()
774 if (ssa && ssa->ops) { in zend_dump_op_line()
775 ssa_op = &ssa->ops[opline - op_array->opcodes]; in zend_dump_op_line()
779 zend_dump_op(op_array, b, opline, dump_flags, ssa, ssa_op); in zend_dump_op_line()
881 …header(const zend_cfg *cfg, const zend_op_array *op_array, const zend_ssa *ssa, int n, uint32_t du… in zend_dump_block_header() argument
884 if (ssa && ssa->blocks && ssa->blocks[n].phis) { in zend_dump_block_header()
885 zend_ssa_phi *p = ssa->blocks[n].phis; in zend_dump_block_header()
891 zend_dump_ssa_var(op_array, ssa, p->ssa_var, 0, p->var, dump_flags); in zend_dump_block_header()
898 zend_dump_ssa_var(op_array, ssa, p->sources[j], 0, p->var, dump_flags); in zend_dump_block_header()
903 zend_dump_ssa_var(op_array, ssa, p->sources[0], 0, p->var, dump_flags); in zend_dump_block_header()
906 zend_dump_range_constraint(op_array, ssa, &p->constraint.range, dump_flags); in zend_dump_block_header()
908 zend_dump_type_constraint(op_array, ssa, &p->constraint.type, dump_flags); in zend_dump_block_header()
933 const zend_ssa *ssa = NULL; in zend_dump_op_array() local
944 ssa = (const zend_ssa*)data; in zend_dump_op_array()
958 if (ssa) { in zend_dump_op_array()
959 fprintf(stderr, ", ssa_vars=%d", ssa->vars_count); in zend_dump_op_array()
1016 if (ssa && ssa->var_info) { in zend_dump_op_array()
1019 zend_dump_ssa_var(op_array, ssa, i, IS_CV, i, dump_flags); in zend_dump_op_array()
1034 zend_dump_block_header(cfg, op_array, ssa, n, dump_flags); in zend_dump_op_array()
1178 void zend_dump_ssa_variables(const zend_op_array *op_array, const zend_ssa *ssa, uint32_t dump_flag… in zend_dump_ssa_variables() argument
1182 if (ssa->vars) { in zend_dump_ssa_variables()
1187 for (j = 0; j < ssa->vars_count; j++) { in zend_dump_ssa_variables()
1189 zend_dump_ssa_var(op_array, ssa, j, IS_CV, ssa->vars[j].var, dump_flags); in zend_dump_ssa_variables()
1190 if (ssa->vars[j].scc >= 0) { in zend_dump_ssa_variables()
1191 if (ssa->vars[j].scc_entry) { in zend_dump_ssa_variables()
1196 fprintf(stderr, "SCC=%d", ssa->vars[j].scc); in zend_dump_ssa_variables()
1238 void zend_dump_phi_placement(const zend_op_array *op_array, const zend_ssa *ssa) in zend_dump_phi_placement() argument
1241 zend_ssa_block *ssa_blocks = ssa->blocks; in zend_dump_phi_placement()
1242 int blocks_count = ssa->cfg.blocks_count; in zend_dump_phi_placement()