Lines Matching refs:op

98 		if (insn->op >= IR_LAST_OP) {  in ir_check()
99 fprintf(stderr, "ir_base[%d].op invalid opcode (%d)\n", i, insn->op); in ir_check()
103 flags = ir_op_flags[insn->op]; in ir_check()
121 if (!(ir_op_flags[use_insn->op] & IR_OP_FLAG_DATA)) { in ir_check()
122 if (!(ir_op_flags[use_insn->op] & IR_OP_FLAG_MEM) in ir_check()
130 && !(insn->op == IR_PHI && ctx->ir_base[insn->op1].op == IR_LOOP_BEGIN)) { in ir_check()
135 switch (insn->op) { in ir_check()
168 && (insn->op == IR_SHL in ir_check()
169 || insn->op == IR_SHR in ir_check()
170 || insn->op == IR_SAR in ir_check()
171 || insn->op == IR_ROL in ir_check()
172 || insn->op == IR_ROR) in ir_check()
177 if (insn->op == IR_NOT && insn->type == IR_BOOL) { in ir_check()
195 && insn->op != IR_PHI in ir_check()
203 if (!(ir_op_flags[use_insn->op] & IR_OP_FLAG_BB_END)) { in ir_check()
208 if (ir_op_flags[use_insn->op] & IR_OP_FLAG_BB_END) { in ir_check()
217 && !(insn->op == IR_LOOP_BEGIN)) { in ir_check()
220 } else if (insn->op == IR_PHI) { in ir_check()
222 if (merge_insn->op != IR_MERGE && merge_insn->op != IR_LOOP_BEGIN) { in ir_check()
229 if (!(ir_op_flags[use_insn->op] & IR_OP_FLAG_CONTROL)) { in ir_check()
239 } else if ((insn->op == IR_RETURN || insn->op == IR_UNREACHABLE) && j == 2) { in ir_check()
241 } else if (insn->op == IR_BEGIN && j == 1) { in ir_check()
244 && (insn->op != IR_SNAPSHOT || j == 1)) { in ir_check()
256 switch (insn->op) { in ir_check()
276 if (ctx->ir_base[insn->op2].op != IR_VAR) { in ir_check()
278 i, ir_op_name[ctx->ir_base[insn->op2].op]); in ir_check()
309 switch (insn->op) { in ir_check()
327 if (ctx->ir_base[ctx->use_edges[use_list->refs]].op == IR_ENTRY) { in ir_check()
335 i, ir_op_name[insn->op], use_list->count); in ir_check()
344 if (!(ir_op_flags[ctx->ir_base[use].op] & IR_OP_FLAG_CONTROL)) { in ir_check()
349 if (insn->op == IR_CALL && count == 2) { in ir_check()
353 if ((insn->op == IR_LOOP_END || insn->op == IR_END) && count == 2) { in ir_check()
355 if (ctx->ir_base[ctx->use_edges[use_list->refs]].op == IR_ENTRY) { in ir_check()
358 if (ctx->ir_base[ctx->use_edges[use_list->refs + 1]].op == IR_ENTRY) { in ir_check()
365 if (count == 0 && (insn->op == IR_END || insn->op == IR_LOOP_END)) { in ir_check()
370 i, ir_op_name[insn->op], count); in ir_check()