-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLVMGPU] Fix lowering of functions that don't use all bindings (#19773)
Runtime changes in [some previous PR, ask Ben] mean that now, GPU kernels are passed one pointer for each binding in the pipeline layout, whether or not they are used. When the previous behavior, which was to only pass in the needed pointers one after another, was removed, the GPU code was not updated to mach. This PR updates the conversion from func.func to llvm.func to use one pointer per binding. It also moves the setting of attributes like noundef or nonnull into the function conversion, instead of making the lowerigs for hal.interface.binding.subspan and hal.interface.constant.load reduntantly add those attributes.
- Loading branch information
Showing
2 changed files
with
136 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters