Skip to content

Fix techscript_llvm_backend build failures and exhaustive match errors - #25

Merged
Tcode-Motion merged 1 commit into
mainfrom
fix-llvm-backend-clippy-10737392408395134552
Aug 24, 2026
Merged

Fix techscript_llvm_backend build failures and exhaustive match errors#25
Tcode-Motion merged 1 commit into
mainfrom
fix-llvm-backend-clippy-10737392408395134552

Conversation

@Tcode-Motion

Copy link
Copy Markdown
Owner

Resolves multiple build breakages and warnings in the techscript_llvm_backend package resulting from the LLVM 18.0.0 migration. Replaced deprecated PassManager components and implemented the new PassBuilder structure for object compilation. Additionally fixed various non-exhaustive matches across AST literals and bytecode variants.


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

- Migrated `LLVMPassManagerBuilder` to `LLVMPassBuilderOptions` as legacy PM was removed in LLVM 18.
- Resolved exhaustive AST literal match errors in `codegen.rs`.
- Handled missing terminator (Throw) and missing instruction (Try, EndTry, MakeDslBlock) AST match errors in codegen.
- Fixed `ValueId` usage and type mismatch errors in context scopes (get_global vs get_local).
- Upgraded JIT bindings to newer Orc2 APIs (`LLVMOrcCreateNewThreadSafeContext`, `LLVMOrcCreateNewThreadSafeModule`, `LLVMOrcDisposeLLJIT`).
- Cleaned up obsolete imports and unsafe block requirements across the crate.

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 24, 2026 07:18
@Tcode-Motion
Tcode-Motion merged commit cedd78a into main Aug 24, 2026
3 of 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