Lines Matching refs:op1

49 #define IR_OP_NAME(name, flags, op1, op2, op3)  #name,  argument
286 #define _IR_OP_FLAGS(name, flags, op1, op2, op3) \ argument
287 IR_OP_FLAGS(ir_op_flag_ ## flags, ir_op_kind_ ## op1, ir_op_kind_ ## op2, ir_op_kind_ ## op3),
790 ir_ref ir_emit(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) in ir_emit() argument
796 insn->op1 = op1; in ir_emit()
808 ir_ref ir_emit1(ir_ctx *ctx, uint32_t opt, ir_ref op1) in ir_emit1() argument
810 return ir_emit(ctx, opt, op1, IR_UNUSED, IR_UNUSED); in ir_emit1()
813 ir_ref ir_emit2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2) in ir_emit2() argument
815 return ir_emit(ctx, opt, op1, op2, IR_UNUSED); in ir_emit2()
818 ir_ref ir_emit3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) in ir_emit3() argument
820 return ir_emit(ctx, opt, op1, op2, op3); in ir_emit3()
823 static ir_ref _ir_fold_cse(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) in _ir_fold_cse() argument
831 if (op1 > limit) { in _ir_fold_cse()
832 limit = op1; in _ir_fold_cse()
842 if (insn->opt == opt && insn->op1 == op1 && insn->op2 == op2 && insn->op3 == op3) { in _ir_fold_cse()
911 ir_ref ir_folding(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3, ir_insn *op1_insn,… in ir_folding() argument
953 op1_insn = ctx->ir_base + op1; in ir_folding()
959 ctx->fold_insn.op1 = op1; in ir_folding()
967 ref = _ir_fold_cse(ctx, opt, op1, op2, op3); in ir_folding()
972 ref = ir_emit(ctx, opt, op1, op2, op3); in ir_folding()
990 return ir_emit(ctx, opt, op1, op2, op3); in ir_folding()
993 ctx->fold_insn.op1 = op1; in ir_folding()
1002 ctx->fold_insn.op1 = ref; in ir_folding()
1015 ir_ref ir_fold(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) in ir_fold() argument
1021 return ir_emit(ctx, opt, op1, op2, op3); in ir_fold()
1023 …return ir_folding(ctx, opt, op1, op2, op3, ctx->ir_base + op1, ctx->ir_base + op2, ctx->ir_base + … in ir_fold()
1031 ir_ref ir_fold1(ir_ctx *ctx, uint32_t opt, ir_ref op1) in ir_fold1() argument
1033 return ir_fold(ctx, opt, op1, IR_UNUSED, IR_UNUSED); in ir_fold1()
1036 ir_ref ir_fold2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2) in ir_fold2() argument
1038 return ir_fold(ctx, opt, op1, op2, IR_UNUSED); in ir_fold2()
1041 ir_ref ir_fold3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) in ir_fold3() argument
1043 return ir_fold(ctx, opt, op1, op2, op3); in ir_fold3()
1652 if (insn1->op1 == addr2) {
1655 } else if (insn2->op == IR_ADD && IR_IS_CONST_REF(insn1->op2) && insn1->op1 == insn2->op1) {
1666 if (insn2->op1 == addr1) {
1686 if (insn1->op1 == addr2) { in ir_check_partial_aliasing()
1691 } else if (insn2->op == IR_ADD && IR_IS_CONST_REF(insn1->op2) && insn1->op1 == insn2->op1) { in ir_check_partial_aliasing()
1716 if (insn2->op1 == addr1) { in ir_check_partial_aliasing()
1763 ref = insn->op1; in ir_find_aliasing_load()
1790 ref = ctx->ir_base[ref].op1; in _ir_VAR()
1843 IR_ASSERT(ctx->ir_base[insn->op1].op == IR_MERGE || ctx->ir_base[insn->op1].op == IR_LOOP_BEGIN); in _ir_PHI_SET_OP()
1873 ctx->control = ctx->ir_base[src].op1; in _ir_BEGIN()
2129 ctx->control = ir_emit3(ctx, IR_UNREACHABLE, ctx->control, IR_UNUSED, ctx->ir_base[1].op1); in _ir_UNREACHABLE()
2130 ctx->ir_base[1].op1 = ctx->control; in _ir_UNREACHABLE()
2285 ctx->control = ir_emit3(ctx, IR_RETURN, ctx->control, val, ctx->ir_base[1].op1); in _ir_RETURN()
2286 ctx->ir_base[1].op1 = ctx->control; in _ir_RETURN()
2293 ctx->control = ir_emit3(ctx, IR_IJMP, ctx->control, addr, ctx->ir_base[1].op1); in _ir_IJMP()
2294 ctx->ir_base[1].op1 = ctx->control; in _ir_IJMP()
2329 ref = insn->op1; in _ir_GUARD()
2361 ref = insn->op1; in _ir_GUARD_NOT()
2376 ctx->ir_base[snapshot].op1 = ctx->control; in _ir_SNAPSHOT()
2473 ctx->ir_base[prev].op1 = insn->op1; in _ir_STORE()
2475 ctx->control = insn->op1; in _ir_STORE()
2478 insn->op1 = IR_NOP; in _ir_STORE()
2506 ref = insn->op1; in _ir_STORE()