aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-01-04 17:00:21 +0100
committerLuuk de Gram <luuk@degram.dev>2022-01-04 17:59:05 +0100
commit89b1fdc4437531776b46ed7133c44b7250c122f8 (patch)
tree95d629f527158751b0828b274f96b5e32c924d12 /src/codegen/llvm.zig
parent5c21a45cf0a22f68ac15f7db8829186ff1808a84 (diff)
downloadzig-89b1fdc4437531776b46ed7133c44b7250c122f8.tar.gz
zig-89b1fdc4437531776b46ed7133c44b7250c122f8.zip
wasm: Implement memset, and sret arguments.
We now detect if the return type will be set by passing the first argument as a pointer to stack memory from the callee's frame. This way, we do not have to worry about stack memory being overwritten. Besides this, we implement memset by either using wasm's memory.fill instruction when available, or lower it manually. In the future we can lower this to a compiler_rt call.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions