harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e4e051ebd818de9f2d4ea66f657366a999edeeb5
parent a8c611de87f00eafef69e4369973035a0d8f8902
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri,  2 Jul 2021 12:52:22 -0400

gen: improve docs for internal types

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Minclude/gen.h | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/gen.h b/include/gen.h @@ -13,11 +13,16 @@ enum fixed_aborts { ABORT_STATIC_EXCEEDED = 3, }; +// A gen temporary is a reference to a qbe temporary by name (the qbe temporary +// is always of a pointer type) and the Hare type which can be found at that +// address. struct gen_temp { char *name; const struct type *type; }; +// A gen binding stores the gen_temp for a scope object and is part of a linked +// list of objects being tracked by gen. struct gen_binding { const struct scope_object *object; struct gen_temp temp; @@ -45,6 +50,7 @@ struct gen_context { }; struct unit; + void gen(const struct unit *unit, struct type_store *store, struct qbe_program *out);