Skip to content

Allow passing LLVM downstream args to LLVMBuilder#9491

Merged
expipiplus1 merged 8 commits intoshader-slang:masterfrom
juliusikkala:llvm-downstream-args
Jan 10, 2026
Merged

Allow passing LLVM downstream args to LLVMBuilder#9491
expipiplus1 merged 8 commits intoshader-slang:masterfrom
juliusikkala:llvm-downstream-args

Conversation

@juliusikkala
Copy link
Contributor

@juliusikkala juliusikkala commented Dec 30, 2025

This allows the user to directly set LLVM backend options, e.g. -Xllvm... -unroll-count=0 -vectorize-loops=false -X.. These parameters are the ones you can set with -mllvm in Clang, i.e. the LLVM backend parameters instead of Clang frontend parameters.

(I'm trying to get Slang's LLVM emitter to produce object code that I can run on the Raspberry Pi Pico 2's Cortex M33 and need access to these options for that purpose, but I think these will also be useful for debugging the LLVM optimization passes later on.)

@juliusikkala juliusikkala requested a review from a team as a code owner December 30, 2025 16:45
@juliusikkala juliusikkala added the pr: non-breaking PRs without breaking changes label Dec 30, 2025
@expipiplus1 expipiplus1 enabled auto-merge January 7, 2026 15:19
Copy link
Collaborator

@expipiplus1 expipiplus1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@expipiplus1 expipiplus1 added this pull request to the merge queue Jan 10, 2026
Merged via the queue into shader-slang:master with commit e4215bc Jan 10, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: non-breaking PRs without breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants