bytecodealliance / bytecodealliance/regalloc2

Alternative regalloc backends

未关闭
#81 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
265
派生
53
PR 合并指标
30 天内没有已合并 PR

描述

The regalloc2 crate provides a good API (`VReg`, `PReg`, `Operand`, `Function`, etc) for interacting with a register allocator. It would be nice if other register allocator backends could be made available with the same API to simplify integration on the embedder side.

What I specifically have in mind is a "fast" backend that simply allocates registers in a single pass with the goal of minimizing compilation time. This will have a huge impact on compilation time since my compiler spends 80% of its time in register allocation. In practice I expect to use this for a tiering JIT where hot code can later be re-compiled using the slow regalloc backend that produces better code.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Read the regalloc2 crate API around VReg, PReg, Operand, and Function, then trace how the existing register-allocation backend is exposed. Define the scope and acceptance criteria for a fast single-pass backend, including its integration with embedders and its compilation-time versus code-quality tradeoff. Done means the backend design and integration path are agreed.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
compilers
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。