diff options
| author | Anders Leino <aleino@nvidia.com> | 2024-12-12 20:09:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-12 10:09:18 -0800 |
| commit | 9c82ed36946941eb1df3186f00903593aab556c3 (patch) | |
| tree | 4be0ad358c7c877282aafbcca56ce72a65a66dc9 /examples | |
| parent | 79dc7ef6992c761ad3bbb4d8a19f4d515d7b3d78 (diff) | |
WGSL: Fix issue where global calls are generated (#5768)
* Split out SPIR-V -specific legalization of global functions
This is a refactoring and should not affect generated code.
* Move global inst inlining code into separate function
This is a refactoring and should not affect generated code.
* Take SPIR-V -specific parts out of GlobalInstInliningContext
This is a refactoring and should not affect generated code.
* Move 'inlineGlobalValues' to generic inlining context
This is a refactoring and should not affect generated code.
* Move 'setInsertBeforeOutsideASM' to generic inlining context
This is a refactoring and should not affect generated code.
* Move generic inlining context into own file
This is a refactoring and should not affect generated code.
* Run global inlining for WGSL as well
* Make the 'getOutsideASM' function generic as well
* Enable language-feature/constants/static-const-in-generic-interface.slang for WebGPU
* Clarify when it's safe to remove and deallocate an IRInst
* Remove globals if they're left unused after inlining
This closes #5607.
* Handle IRGlobalValueRef in C-like emitter
* format code
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
