diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-08-03 17:29:59 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-08-03 17:29:59 -0700 |
| commit | 609b84611dcde382af5d9fbc2345ede468d31a6f (patch) | |
| tree | 9dab23600c4fd136b10ccd65eb3d908dfe6bb206 /src/test.zig | |
| parent | 1472dc3ddb6fd7932ff530e7a2fd3f0185c7353f (diff) | |
| download | zig-609b84611dcde382af5d9fbc2345ede468d31a6f.tar.gz zig-609b84611dcde382af5d9fbc2345ede468d31a6f.zip | |
stage2: rework runtime, comptime, inline function calls
* ZIR function instructions encode the index of the block that
contains the function instruction. This allows Zig to later scan the
block and find the parameter instructions, which is needed for
semantically analyzing function bodies.
* Runtime function calls insert AIR arg instructions and then inserts
Sema inst_map entries mapping the ZIR param instructions to them.
* comptime/inline function call inserts Sema inst_map entries mapping
the ZIR param instructions to the AIR callsite arguments.
With this commit we are back to the tests passing.
Diffstat (limited to 'src/test.zig')
0 files changed, 0 insertions, 0 deletions
