What problem does it solve?
Navigating the LuisaCompute Rust workspace is difficult because it spans seven interdependent crates, a custom C-compatible FFI layer, compiler transform pipelines, and a CPU JIT backend. This Skill gives an AI assistant the structural knowledge needed to answer questions and make changes in src/rust/ correctly.
Core Features & Use Cases
- Crate Map & Dependency Graph: Explains the roles of
luisa_compute_ir, luisa_compute_api_types, luisa_compute_backend_impl, and related crates, including how they link to C++ via staticlibs and cdylibs.
- IR & Transform Reference: Documents the IR data structures (
Node, Instruction, Module), the ~180 builtin Func ops, and transform passes such as SSA, autodiff, DCE, and reg2mem.
- FFI & Build Integration: Covers
cbindgen header generation, CArc/CBox C-compatible pointers, CMake/XMake cargo integration, and Embree setup for the CPU backend.
- Use Case: Ask the assistant to add a new IR transform pass or expose a new FFI function, and it will follow the documented step-by-step workflows including pipeline registration and header regeneration.
Quick Start
Ask the assistant to explain how the LuisaCompute Rust IR transform pipeline works or to add a new transform pass to luisa_compute_ir.