diff options
| author | Robin Voetter <robin@voetter.nl> | 2023-03-29 01:12:05 +0200 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2023-04-09 01:51:53 +0200 |
| commit | 80b84355692606ac840584baa62aaafdd8ecd425 (patch) | |
| tree | cdd9ef56bddb4c7d40e841d9b7accfa67e9f4bc9 /lib/std/multi_array_list.zig | |
| parent | 764f19034d9aa74ce2220937d090c60f8f8bf919 (diff) | |
| download | zig-80b84355692606ac840584baa62aaafdd8ecd425.tar.gz zig-80b84355692606ac840584baa62aaafdd8ecd425.zip | |
spirv: overhaul constant lowering
Lowering constants is currently not really compatible with unions. In
this commit, constant lowering is drastically overhauled: instead of
playing nice and generating SPIR-V constant representations for everything
directly, we're just going to treat globals as an untyped bag of bytes (
or rather, SPIR-V 32-bit words), which we cast to the desired type at
usage. This is similar to how Rust generates constants in its LLVm backend.
Diffstat (limited to 'lib/std/multi_array_list.zig')
0 files changed, 0 insertions, 0 deletions
