Document LLVM / native ABI for codegen¶
Summary¶
Added docs/compiler/llvm-abi.md so agents and extern authors do not confuse Li types, MIR flags, LLVM IR, and C runtime/ signatures.
Agent continuation¶
- Read
docs/compiler/llvm-abi.md,docs/compiler/build-pipeline.md,runtime/li_rt.h. - Run
./li-tests/run_httpd_config.shafter anyemit.cpp/lower.cppABI change. - Then if adding real
Byteshandles, update llvm-abi.md + C runtime in one PR. - Blocked on reviewer merge of stacked PR #83 (
cursor/refinement-call-check-57b4).
Changed¶
| Path | What |
|---|---|
docs/compiler/llvm-abi.md | New: pipeline, type table, str/bytes = i8*, extern checklist, failure modes |
docs/compiler/build-pipeline.md | Link to llvm-abi |
mkdocs.yml | Nav entry LLVM ABI |
Not changed¶
- Codegen implementation (documented only; fixes already on branch in prior commits).
- Lean semantics, benchmark ingest, org merge rules.
Breaking¶
N/A — documentation only.
Security¶
N/A — no runtime behavior change.
Performance¶
N/A.
Downstream¶
N/A — docs only; merge with PR #83 stack.