Lines Matching refs:condition
2163 ir_ref _ir_IF(ir_ctx *ctx, ir_ref condition) argument
2169 if_ref = ir_emit2(ctx, IR_IF, ctx->control, condition);
2174 condition = _ir_fold_condition(ctx, condition);
2175 if (IR_IS_CONST_REF(condition)) {
2176 condition = ir_ref_is_true(ctx, condition) ? IR_TRUE : IR_FALSE;
2182 while (ref > condition) {
2185 if (insn->op2 == condition) {
2186 condition = IR_FALSE;
2190 if (insn->op2 == condition) {
2191 condition = IR_TRUE;
2195 if (insn->op2 == condition) {
2197 condition = IR_TRUE;
2200 condition = IR_FALSE;
2211 if_ref = ir_emit2(ctx, IR_IF, ctx->control, condition);
2719 void _ir_GUARD(ir_ctx *ctx, ir_ref condition, ir_ref addr) argument
2722 if (IR_IS_CONST_REF(condition)) {
2723 if (ir_ref_is_true(ctx, condition)) {
2726 condition = IR_FALSE;
2732 while (ref > condition) {
2735 if (insn->op2 == condition) {
2739 if (insn->op2 == condition) {
2740 condition = IR_FALSE;
2744 if (insn->op2 == condition) {
2748 condition = IR_FALSE;
2762 ctx->control = ir_emit3(ctx, IR_GUARD, ctx->control, condition, addr);
2765 void _ir_GUARD_NOT(ir_ctx *ctx, ir_ref condition, ir_ref addr) argument
2768 if (IR_IS_CONST_REF(condition)) {
2769 if (!ir_ref_is_true(ctx, condition)) {
2772 condition = IR_TRUE;
2778 while (ref > condition) {
2781 if (insn->op2 == condition) {
2785 if (insn->op2 == condition) {
2786 condition = IR_TRUE;
2790 if (insn->op2 == condition) {
2792 condition = IR_TRUE;
2808 ctx->control = ir_emit3(ctx, IR_GUARD_NOT, ctx->control, condition, addr);