Skip to content

Fix LLVM backend build failures and resolve repository warnings - #24

Merged
Tcode-Motion merged 1 commit into
mainfrom
fix/llvm-build-and-lints-12396275939166788577
Aug 23, 2026
Merged

Fix LLVM backend build failures and resolve repository warnings#24
Tcode-Motion merged 1 commit into
mainfrom
fix/llvm-build-and-lints-12396275939166788577

Conversation

@Tcode-Motion

Copy link
Copy Markdown
Owner

The techscript_llvm_backend was failing to compile due to an incorrect llvm-sys version in Cargo.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:

  • Fixes the build failure by downgrading llvm-sys to 180 and configuring the environment for LLVM 18.
  • Resolves all compiler and type-mismatch errors in compiler/llvm_backend.
  • Formats the entire codebase.
  • Ensures cargo clippy --workspace --all-targets --all-features -- -D warnings and cargo test --workspace pass completely without any errors or warnings.

PR created automatically by Jules for task 12396275939166788577 started by @Tcode-Motion

- 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>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@Tcode-Motion
Tcode-Motion marked this pull request as ready for review August 23, 2026 07:15
@Tcode-Motion
Tcode-Motion merged commit 3f88f78 into main Aug 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant