aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorIan Johnson <ian@ianjohnson.dev>2023-10-27 22:20:07 -0400
committerIan Johnson <ian@ianjohnson.dev>2024-01-29 19:02:18 -0500
commit2b2c9c5db893c7bc0352d1738c1658a5fcd32d62 (patch)
tree0d044a1eb182c5705b4998e1a875e260571e0cd2 /src/codegen/spirv.zig
parentcc25756b3f33578774b557bdf09dcc9e918c1e5a (diff)
downloadzig-2b2c9c5db893c7bc0352d1738c1658a5fcd32d62.tar.gz
zig-2b2c9c5db893c7bc0352d1738c1658a5fcd32d62.zip
Introduce type-erased writers to C backend codegen
This reduces generic instantiations of several write functions. Before: ``` @as(type, io.writer.Writer(*array_list.ArrayListAligned(u8,null),error{OutOfMemory},(function 'appendWrite'))) @as(type, io.writer.Writer(*codegen.c.IndentWriter(io.writer.Writer(*array_list.ArrayListAligned(u8,null),error{OutOfMemory},(function 'appendWrite'))),error{OutOfMemory},(function 'write'))) ``` After: ``` @as(type, io.GenericWriter(io.Writer,error{OutOfMemory},(function 'write'))) ```
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions