refactor: Extract runtime declarations to data-driven approach #212
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#212
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
crates/compiler/src/codegen.rs(lines 872-936) contains 60+ manualwriteln!()calls for LLVM runtime declarations:Also
emit_runtime_declarations(lines 1298-1543) has ~245 lines of similar boilerplate.Impact
Proposed Solution
Option 1: Declarative table
Option 2: Build-time generation from runtime crate
Parse
crates/runtime/src/*.rsto extractextern "C"function signatures and generate declarations automatically.Option 3: Macro-based definition
Files Affected
crates/compiler/src/codegen.rs(lines 872-936, 1298-1543)crates/compiler/src/runtime_decls.rsAcceptance Criteria
Labels
refactor, technical-debt, medium-priority
https://github.com/navicore/patch-seq/pull/220