Lines Matching refs:op2

49 #define IR_OP_NAME(name, flags, op1, op2, op3)  #name,  argument
291 #define _IR_OP_FLAGS(name, flags, op1, op2, op3) \ argument
292 IR_OP_FLAGS(ir_op_flag_ ## flags, ir_op_kind_ ## op1, ir_op_kind_ ## op2, ir_op_kind_ ## op3),
805 ir_ref ir_emit(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) argument
812 insn->op2 = op2;
828 ir_ref ir_emit2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2) argument
830 return ir_emit(ctx, opt, op1, op2, IR_UNUSED);
833 ir_ref ir_emit3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) argument
835 return ir_emit(ctx, opt, op1, op2, op3);
838 static ir_ref _ir_fold_cse(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) argument
849 if (op2 > limit) {
850 limit = op2;
857 if (insn->opt == opt && insn->op1 == op1 && insn->op2 == op2 && insn->op3 == op3) {
926 ir_ref ir_folding(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3, ir_insn *op1_insn,… argument
973 op2_insn = ctx->ir_base + op2;
979 ctx->fold_insn.op2 = op2;
986 ref = _ir_fold_cse(ctx, opt, op1, op2, op3);
991 ref = ir_emit(ctx, opt, op1, op2, op3);
1009 return ir_emit(ctx, opt, op1, op2, op3);
1013 ctx->fold_insn.op2 = op2;
1034 ir_ref ir_fold(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) argument
1040 return ir_emit(ctx, opt, op1, op2, op3);
1042 …return ir_folding(ctx, opt, op1, op2, op3, ctx->ir_base + op1, ctx->ir_base + op2, ctx->ir_base + …
1055 ir_ref ir_fold2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2) argument
1057 return ir_fold(ctx, opt, op1, op2, IR_UNUSED);
1060 ir_ref ir_fold3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3) argument
1062 return ir_fold(ctx, opt, op1, op2, op3);
1863 if (insn1->op == IR_ADD && IR_IS_CONST_REF(insn1->op2)) {
1865 uintptr_t offset1 = ctx->ir_base[insn1->op2].val.u64;
1867 } else if (insn2->op == IR_ADD && IR_IS_CONST_REF(insn1->op2) && insn1->op1 == insn2->op1) {
1868 if (insn1->op2 == insn2->op2) {
1870 } else if (IR_IS_CONST_REF(insn1->op2) && IR_IS_CONST_REF(insn2->op2)) {
1871 uintptr_t offset1 = ctx->ir_base[insn1->op2].val.u64;
1872 uintptr_t offset2 = ctx->ir_base[insn2->op2].val.u64;
1877 } else if (insn2->op == IR_ADD && IR_IS_CONST_REF(insn2->op2)) {
1879 uintptr_t offset2 = ctx->ir_base[insn2->op2].val.u64;
1901 } else if (ctx->ir_base[insn1->op2].op == IR_SYM
1902 || ctx->ir_base[insn1->op2].op == IR_ALLOCA
1903 || ctx->ir_base[insn1->op2].op == IR_VADDR) {
1904 base1 = insn1->op2;
1908 off1 = insn1->op2;
1913 } else if (ctx->ir_base[insn2->op2].op == IR_SYM
1914 || ctx->ir_base[insn2->op2].op == IR_ALLOCA
1915 || ctx->ir_base[insn2->op2].op == IR_VADDR) {
1916 base2 = insn2->op2;
1920 off2 = insn2->op2;
1950 insn1 = &ctx->ir_base[insn1->op2];
1960 insn2 = &ctx->ir_base[insn2->op2];
1991 if (insn->op2 == addr) {
2004 if (insn->op2 == addr) {
2006 && (modified_regset & (1 << ctx->ir_base[insn->op3].op2))) {
2019 } else if (ir_check_partial_aliasing(ctx, addr, insn->op2, type, type2) != IR_NO_ALIAS) {
2153 if (insn->op == IR_NE && IR_IS_CONST_REF(insn->op2)) {
2154 ir_insn *op2_insn = &ctx->ir_base[insn->op2];
2185 if (insn->op2 == condition) {
2190 if (insn->op2 == condition) {
2195 if (insn->op2 == condition) {
2332 ref = insn->op2;
2340 ctx->ir_base[list].op2 = IR_UNUSED;
2349 ref = insn->op2;
2350 insn->op2 = IR_UNUSED;
2367 if (!end->op2) {
2735 if (insn->op2 == condition) {
2739 if (insn->op2 == condition) {
2744 if (insn->op2 == condition) {
2781 if (insn->op2 == condition) {
2785 if (insn->op2 == condition) {
2790 if (insn->op2 == condition) {
2864 if (insn->op2 == var) {
2877 if (insn->op2 == var) {
2927 if (insn->op2 == var) {
2943 if (insn->op2 == var) {
3022 if (insn->op2 == addr) {
3045 if (insn->op2 == addr) {
3054 if (ir_check_partial_aliasing(ctx, addr, insn->op2, type, type2) != IR_NO_ALIAS) {