Lines Matching defs:ctx
49 mir_compute_liveness(compiler_context *ctx)
52 if (ctx->metadata & MIDGARD_METADATA_LIVENESS)
55 mir_compute_temp_count(ctx);
56 pan_compute_liveness(&ctx->blocks, ctx->temp_count, mir_liveness_ins_update_wrap);
59 ctx->metadata |= MIDGARD_METADATA_LIVENESS;
65 mir_invalidate_liveness(compiler_context *ctx)
68 if (!(ctx->metadata & MIDGARD_METADATA_LIVENESS))
71 pan_free_liveness(&ctx->blocks);
74 ctx->metadata &= ~MIDGARD_METADATA_LIVENESS;
78 mir_is_live_after(compiler_context *ctx, midgard_block *block, midgard_instruction *start, int src)
80 mir_compute_liveness(ctx);
84 if (pan_liveness_get(block->base.live_out, src, ctx->temp_count))