Lines Matching refs:ssa
341 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
344 ssa->var_info[ssa_var_num].type, in zend_dump_ssa_var_info()
345 ssa->var_info[ssa_var_num].ce, in zend_dump_ssa_var_info()
346 ssa->var_info[ssa_var_num].ce ? in zend_dump_ssa_var_info()
347 ssa->var_info[ssa_var_num].is_instanceof : 0, in zend_dump_ssa_var_info()
351 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
360 if (ssa_var_num >= 0 && ssa->vars) { in zend_dump_ssa_var()
361 if (ssa->vars[ssa_var_num].no_val) { in zend_dump_ssa_var()
364 if (ssa->vars[ssa_var_num].escape_state == ESCAPE_STATE_NO_ESCAPE) { in zend_dump_ssa_var()
367 if (ssa->var_info) { in zend_dump_ssa_var()
368 zend_dump_ssa_var_info(ssa, ssa_var_num, dump_flags); in zend_dump_ssa_var()
369 if (ssa->var_info[ssa_var_num].has_range) { in zend_dump_ssa_var()
370 zend_dump_range(&ssa->var_info[ssa_var_num].range); in zend_dump_ssa_var()
376 static void zend_dump_type_constraint(const zend_op_array *op_array, const zend_ssa *ssa, const zen… in zend_dump_type_constraint() argument
382 static void zend_dump_range_constraint(const zend_op_array *op_array, const zend_ssa *ssa, const ze… in zend_dump_range_constraint() argument
396 …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()
411 …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()
424 …asic_block *b, const zend_op *opline, uint32_t dump_flags, const zend_ssa *ssa, const zend_ssa_op … in zend_dump_op() argument
434 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->result_type, EX_VAR_TO_NUM(opline->result.va… in zend_dump_op()
606 …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()
619 …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()
667 …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()
680 …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()
719 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->result_type, EX_VAR_TO_NUM(opline->result.va… in zend_dump_op()
729 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->result_type, EX_VAR_TO_NUM(opline->result.va… in zend_dump_op()
739 const zend_ssa *ssa = NULL; in zend_dump_op_line() local
750 ssa = (const zend_ssa*)data; in zend_dump_op_line()
751 if (ssa && ssa->ops) { in zend_dump_op_line()
752 ssa_op = &ssa->ops[opline - op_array->opcodes]; in zend_dump_op_line()
756 zend_dump_op(op_array, b, opline, dump_flags, ssa, ssa_op); in zend_dump_op_line()
858 …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
861 if (ssa && ssa->blocks && ssa->blocks[n].phis) { in zend_dump_block_header()
862 zend_ssa_phi *p = ssa->blocks[n].phis; in zend_dump_block_header()
868 zend_dump_ssa_var(op_array, ssa, p->ssa_var, 0, p->var, dump_flags); in zend_dump_block_header()
875 zend_dump_ssa_var(op_array, ssa, p->sources[j], 0, p->var, dump_flags); in zend_dump_block_header()
880 zend_dump_ssa_var(op_array, ssa, p->sources[0], 0, p->var, dump_flags); in zend_dump_block_header()
883 zend_dump_range_constraint(op_array, ssa, &p->constraint.range, dump_flags); in zend_dump_block_header()
885 zend_dump_type_constraint(op_array, ssa, &p->constraint.type, dump_flags); in zend_dump_block_header()
911 const zend_ssa *ssa = NULL; in zend_dump_op_array() local
922 ssa = (const zend_ssa*)data; in zend_dump_op_array()
936 if (ssa) { in zend_dump_op_array()
937 fprintf(stderr, ", ssa_vars=%d", ssa->vars_count); in zend_dump_op_array()
994 if (ssa && ssa->var_info) { in zend_dump_op_array()
997 zend_dump_ssa_var(op_array, ssa, i, IS_CV, i, dump_flags); in zend_dump_op_array()
1012 zend_dump_block_header(cfg, op_array, ssa, n, dump_flags); in zend_dump_op_array()
1170 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
1174 if (ssa->vars) { in zend_dump_ssa_variables()
1179 for (j = 0; j < ssa->vars_count; j++) { in zend_dump_ssa_variables()
1181 zend_dump_ssa_var(op_array, ssa, j, IS_CV, ssa->vars[j].var, dump_flags); in zend_dump_ssa_variables()
1182 if (ssa->vars[j].scc >= 0) { in zend_dump_ssa_variables()
1183 if (ssa->vars[j].scc_entry) { in zend_dump_ssa_variables()
1188 fprintf(stderr, "SCC=%d", ssa->vars[j].scc); in zend_dump_ssa_variables()
1230 void zend_dump_phi_placement(const zend_op_array *op_array, const zend_ssa *ssa) in zend_dump_phi_placement() argument
1233 zend_ssa_block *ssa_blocks = ssa->blocks; in zend_dump_phi_placement()
1234 int blocks_count = ssa->cfg.blocks_count; in zend_dump_phi_placement()