AnnieSld opened PR #13770 from AnnieSld:cranelift-modernize-docs to bytecodealliance:main:
While reviewing the Cranelift documentation I found several guides that
no longer matched the current codebase.
Addresses #4135 issueNew pages added:
backend-architecture.md: Documents the CLIF-to-VCode-to-binary
pipeline and the current roles of ISLE, regalloc2, andMachInst.
add-new-backend.md: Step-by-step guide for creating a new ISA
backend: directory layout, registration, settings,MachInsttrait,
PRegSetusage, ABI, ISLE lowering rules, and tests.
add-clif-instruction.md: Guide for adding a new CLIF opcode:
instruction format API, builder methods, generated file names,
verifier checks, and interpreter support.
add-machine-instruction.md: Guide for adding a machine
instruction variant: register access inemit(), ISLE file paths,
and testing commands.
debugging-codegen.md: Guide for debugging the code generator
usingRUST_LOG,clif-util, and chaos mode.Updates to existing pages:
testing.md: Replaced the deprecatedtest legalizercommand
withtest compile, updated the RISC-V feature flag name, and
corrected theCRANELIFT_TEST_BLESSenvironment variable.
index.md: Refreshed guide descriptions and restored the missing
link toisle-integration.md.
compare-llvm.md: Updated the description of the current
compilation pipeline.
AnnieSld requested alexcrichton for a review on PR #13770.
AnnieSld requested wasmtime-compiler-reviewers for a review on PR #13770.
pchickey commented on PR #13770:
@AnnieSld as a first time contributor, please review our LLM policy and consider whether this PR is in violation of it https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md
:cross_mark: AnnieSld closed without merge PR #13770.
AnnieSld commented on PR #13770:
@AnnieSld as a first time contributor, please review our LLM policy and consider whether this PR is in violation of it https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md
I wanted to apologize for my previous PR. I submitted too many changes at once. I've since gone back, studied the codebase more carefully, and I'm reopening this as a smaller, more focused PR with only the changes I personally verified against the current source files.
AnnieSld edited a comment on PR #13770:
@AnnieSld as a first time contributor, please review our LLM policy and consider whether this PR is in violation of it https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md
I wanted to apologize for my previous PR. I submitted too many changes at once. I've since gone back, studied the codebase more carefully, and I'm reopening this as a smaller, more focused PR with only the changes I personally verified against the current source files.
Last updated: Jul 29 2026 at 05:03 UTC