diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-01-16 20:34:56 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-01-19 20:01:23 +0100 |
| commit | 9615d7aee7fa0478ad01e4054b620213b73278e1 (patch) | |
| tree | faeb532e10fc9d3b7d24d2066af6bb8bdc3bcd14 /src/codegen/llvm.zig | |
| parent | 38253a680d8a53723667eca2c1f9a56b183dea8c (diff) | |
| download | zig-9615d7aee7fa0478ad01e4054b620213b73278e1.tar.gz zig-9615d7aee7fa0478ad01e4054b620213b73278e1.zip | |
wasm: Refactor storing values.
Due to the new structure of lowerConstant, we can now simplify the logic in a lot of situations.
- We no longer have to check the `WValue`'s tag to determine how to load/store a value.
- We can now provide simple memcopy's for aggregate types.
- Constants are now memoized, meaning we do no longer lower constants on each callsite.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
