Skip to content

Properly pass offload sizes to kernel args#152283

Open
Sa4dUs wants to merge 1 commit intorust-lang:mainfrom
Sa4dUs:offload-handle-alloca
Open

Properly pass offload sizes to kernel args#152283
Sa4dUs wants to merge 1 commit intorust-lang:mainfrom
Sa4dUs:offload-handle-alloca

Conversation

@Sa4dUs
Copy link
Contributor

@Sa4dUs Sa4dUs commented Feb 7, 2026

This PRs prevents offload from creating an unnecessary alloca when all the arg sizes are static.
I'll implement the first dynamic-size data type in a follow up PR (slice support).

r? @ZuseZ4

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 7, 2026
@Sa4dUs Sa4dUs force-pushed the offload-handle-alloca branch from 7e0a135 to cdc35ab Compare February 8, 2026 11:08
@rust-bors

This comment has been minimized.

@Sa4dUs Sa4dUs force-pushed the offload-handle-alloca branch from cdc35ab to b454716 Compare February 9, 2026 00:02
@rustbot
Copy link
Collaborator

rustbot commented Feb 9, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants