Fix LLVM backend build failures and resolve repository warnings - #24
Conversation
- Downgrade `llvm-sys` dependency from an invalid version (`221`) to `180` to allow the crate to compile against standard LLVM 18 distributions. - Implement missing ID lookup functions (`get_global`, `get_local`, etc.) in `CodegenContext` to resolve type mismatch errors in `codegen.rs`. - Handle missing `Op` variants (`Try`, `EndTry`, `MakeDslBlock`) and missing `IRType` (`DslBlock`) in LLVM IR generation. - Implement stub for `TerminatorKind::Throw`. - Remove broken/invalid LLVM PassManagerBuilder API usage. - Run `cargo fmt` to fix formatting in `runtime/interpreter` and `runtime/vm`. - Resolve all `clippy` warnings across the workspace. Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
The
techscript_llvm_backendwas failing to compile due to an incorrectllvm-sysversion inCargo.toml(221, which does not exist) and various Rust compiler errors stemming from missing mappings for new AST/IR features and incorrect variable types.This PR:
llvm-systo180and configuring the environment for LLVM 18.compiler/llvm_backend.cargo clippy --workspace --all-targets --all-features -- -D warningsandcargo test --workspacepass completely without any errors or warnings.PR created automatically by Jules for task 12396275939166788577 started by @Tcode-Motion