aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-01-18 21:41:33 +0100
committerJakub Konka <kubkon@jakubkonka.com>2022-01-19 20:21:00 +0100
commitdf6c0067b26ca1b6798612631b26b167e9fe287a (patch)
treed91929d74928788a0db8f0626b9772ea3a5edccb /src/codegen/llvm.zig
parent7c6981e0c0f2412c49457a900e5a6a4db96be2e8 (diff)
downloadzig-df6c0067b26ca1b6798612631b26b167e9fe287a.tar.gz
zig-df6c0067b26ca1b6798612631b26b167e9fe287a.zip
stage2: fix passing arguments on the stack
* push the arguments in reverse order * add logic for pushing args of any abi size to stack - very similar to `genSetStack` however, uses `.rsp` as the base register * increment and decrement `.rsp` if we called a function with args on the stack in `airCall` * add logic for recovering args from the caller's stack in the callee
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions