Files
zig/BRANCH_TODO
Andrew Kelley 609b84611d 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.
2021-08-03 17:29:59 -07:00

8 lines
310 B
Plaintext

* update arg instructions:
- generic instantiation inserts Sema map items for the comptime args only, re-runs the
Decl ZIR to get the new Fn.
* generic function call where it makes a new function
* memoize the instantiation in a table
* anytype with next parameter expression using it
* comptime anytype