Add first-class LLVM/clang support so --project llvm reviews patches
against llvm/llvm-project with prompts written for a compiler rather
than for the kernel or GCC:
- Register ProjectId::Llvm on github.com/llvm/llvm-project.git (main
branch), bundle its prompts under llvm/, and load llvm/severity.md in
prompt_bundle.
- Build the seven-stage discovery fan-out (goal, implementation,
execution-flow, resources, types-math, state-invalidation and
diagnostics-abi) with prior-version feedback, sharded verification,
post-verification and a Markdown pull-request report. The stage
instructions name the LLVM failure classes the general prompts miss:
Sema/CodeGen/CIR symmetry, APInt widths, poison and fast-math flags,
analysis invalidation, target-feature gating and TableGen patterns.
- Add projects/llvm/prompts: review-core, severity,
false-positive-guide, inline-template and maintainer notes for the
clang frontend, LLVM IR/middle-end and the backend.
- Wire LLVM tool attribution, directory subsystems, upstream fix
checks and release-tag labels across db, reviewer, bug_worker,
review_map and linux_bug.
Signed-off-by: Sendao Yan <yansendao@126.com>
Summary
Adds first-class LLVM/clang support so
--project llvmreviewsllvm/llvm-projectwith prompts and a workflow written for a compiler,instead of borrowing the GCC profile.
Closes #946.
What changed
ProjectId::Llvm: selectorllvm, mainline branchmain, upstreamgithub.com/llvm/llvm-project.git, URL matching onllvm/llvm-project.projects/llvm/prompts/:review-core,severity,false-positive-guide,inline-template(Markdown pull-request report),plus maintainer notes for the clang frontend, LLVM IR/middle-end and the
backend.
src/workflows/llvm_patch_review.rs: seven-stage pipeline (goal,implementation, execution-flow, resources, types-math,
state-invalidation, diagnostics-abi) covering Sema/CodeGen/CIR symmetry,
APInt widths, poison and fast-math flags, analysis invalidation,
target-feature gating and TableGen patterns, with prior-version feedback,
sharded verification, post-verification and a GitHub-style report.
bug worker, review map, baseline resolution (no linux-next remotes) and
release-tag labels, plus README/docs updates.
Testing
cargo check --all-targets --all-featurescargo test --all-features --lib: 1856 passedcargo fmt --check: cleanNotes
mailing_lists.tomltracksnothing, so this profile is local review only for now.
notes/) are not produced for LLVM yet.