diff options
author | Helena Kotas <hekotas@microsoft.com> | 2025-03-12 22:35:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-12 22:35:07 -0700 |
commit | 73e12de062c17eddfa08f61ba8f44a20fa912f1b (patch) | |
tree | 2ab13b4fe02414ec56460de7663b32b6860262fe /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | bc4b2c74fe4eae40652e0f79ee9e0397110c0423 (diff) | |
download | llvm-73e12de062c17eddfa08f61ba8f44a20fa912f1b.zip llvm-73e12de062c17eddfa08f61ba8f44a20fa912f1b.tar.gz llvm-73e12de062c17eddfa08f61ba8f44a20fa912f1b.tar.bz2 |
[HLSL] Implement explicit layout for default constant buffer ($Globals) (#128991)
Processes `HLSLResourceBindingAttr` attributes that represent
`register(c#)` annotations on default constant buffer declarations and
applies its value to the buffer layout. Any default buffer declarations
without an explicit `register(c#)` annotation are placed after the
elements with explicit layout.
This PR also adds a test case for a `cbuffer` that does not have
`packoffset` on all declarations. Same layout rules apply here as well.
Fixes #126791
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions