diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-01-18 21:41:33 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-01-19 20:21:00 +0100 |
| commit | df6c0067b26ca1b6798612631b26b167e9fe287a (patch) | |
| tree | d91929d74928788a0db8f0626b9772ea3a5edccb /src/codegen/llvm.zig | |
| parent | 7c6981e0c0f2412c49457a900e5a6a4db96be2e8 (diff) | |
| download | zig-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
