diff options
| author | Emily Bellows <emily.a.bellows@hey.com> | 2021-11-02 21:23:41 -0400 |
|---|---|---|
| committer | Emily Bellows <emily.a.bellows@hey.com> | 2021-11-08 14:23:55 -0500 |
| commit | e3d638a49e09340bc1f779185cab3ad85d7045af (patch) | |
| tree | 359853c070abc6130f9cb79900573f6add9d74bb /src/codegen/spirv | |
| parent | a7d215759e93be971ba5e560578e7473655cdd82 (diff) | |
| download | zig-e3d638a49e09340bc1f779185cab3ad85d7045af.tar.gz zig-e3d638a49e09340bc1f779185cab3ad85d7045af.zip | |
C backend: while, struct tests, better undefined global handling
1. Function signatures that return a no member struct return void
2. Undefined var decls don't get a value generated for them
3. Don't generate bitcast code if the result isn't used, since
bitcast is a pure function. Right now struct handling code
generates some weird unused bitcast AIR, and this optimization
side steps that issue.
Diffstat (limited to 'src/codegen/spirv')
0 files changed, 0 insertions, 0 deletions
