Lines Matching refs:condition
2058 ir_ref _ir_IF(ir_ctx *ctx, ir_ref condition) argument
2062 condition = _ir_fold_condition(ctx, condition);
2064 if (IR_IS_CONST_REF(condition)) {
2065 condition = ir_ref_is_true(ctx, condition) ? IR_TRUE : IR_FALSE;
2071 while (ref > condition) {
2074 if (insn->op2 == condition) {
2075 condition = IR_FALSE;
2079 if (insn->op2 == condition) {
2080 condition = IR_TRUE;
2084 if (insn->op2 == condition) {
2086 condition = IR_TRUE;
2089 condition = IR_FALSE;
2100 if_ref = ir_emit2(ctx, IR_IF, ctx->control, condition);
2608 void _ir_GUARD(ir_ctx *ctx, ir_ref condition, ir_ref addr) argument
2611 if (IR_IS_CONST_REF(condition)) {
2612 if (ir_ref_is_true(ctx, condition)) {
2615 condition = IR_FALSE;
2621 while (ref > condition) {
2624 if (insn->op2 == condition) {
2628 if (insn->op2 == condition) {
2629 condition = IR_FALSE;
2633 if (insn->op2 == condition) {
2637 condition = IR_FALSE;
2651 ctx->control = ir_emit3(ctx, IR_GUARD, ctx->control, condition, addr);
2654 void _ir_GUARD_NOT(ir_ctx *ctx, ir_ref condition, ir_ref addr) argument
2657 if (IR_IS_CONST_REF(condition)) {
2658 if (!ir_ref_is_true(ctx, condition)) {
2661 condition = IR_TRUE;
2667 while (ref > condition) {
2670 if (insn->op2 == condition) {
2674 if (insn->op2 == condition) {
2675 condition = IR_TRUE;
2679 if (insn->op2 == condition) {
2681 condition = IR_TRUE;
2697 ctx->control = ir_emit3(ctx, IR_GUARD_NOT, ctx->control, condition, addr);