Skip to main content
在 Manus 中运行任何 Skill
一键导入

add-unit-test

星标3
分支1
更新时间2026年5月9日 07:00

Add LLVM-IR unit tests for a transform pass in this team compiler under `test/unit/<PassName>/`. Triggers on `/add-unit-test` or any request to "add unit tests / 유닛 테스트 추가 / 테스트 작성" for a pass in this repo. Enforces the team's mandatory rule: **at least 3 tests, and at least one must be a real-IR snippet from `swpp202601-benchmarks/<bench>/src/<bench>.ll` where the pass actually fires**, with a comment showing the approximate TM cost delta (before/after) so both correctness and effectiveness are visible at the unit-test layer. Also drafts the matching cost analysis line for the PR description.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
2 个文件
SKILL.md
readonly