diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-06-01 11:04:38 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-06-01 11:10:27 +0200 |
commit | 1644bbec6161ec971a2ba3c213ce285b995cac22 (patch) | |
tree | 75974577237f8ae1a0989755be0a953c631f794e /cooker/emit.h | |
parent | bb47d77d316137c9deddd46135b22dc144ae1ea9 (diff) | |
download | seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.gz seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.bz2 seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.lz seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.xz seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.zst seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.zip |
cooker: OP_CALL and OP_COPY stuff
...mostly.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'cooker/emit.h')
-rw-r--r-- | cooker/emit.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cooker/emit.h b/cooker/emit.h index 5d15b1b..ee0583f 100644 --- a/cooker/emit.h +++ b/cooker/emit.h @@ -18,8 +18,18 @@ void emit_cmp_field(struct gluten_ctx *g, enum op_cmp_type cmp, enum jump_type jmp); void emit_return(struct gluten_ctx *g, struct gluten_offset v); void emit_block(struct gluten_ctx *g, int32_t error); +void emit_copy(struct gluten_ctx *g, + struct gluten_offset dst, struct gluten_offset src, size_t size); +void emit_copy_field(struct gluten_ctx *g, struct field *field, + struct gluten_offset dst, struct gluten_offset src); struct gluten_offset emit_data(struct gluten_ctx *g, enum type type, size_t str_len, union value *value); +struct gluten_offset emit_data_at(struct gluten_ctx *g, + struct gluten_offset offset, + enum type type, union value *value); +struct gluten_offset emit_data_or(struct gluten_ctx *g, + struct gluten_offset offset, + enum type type, union value *value); void link_block(struct gluten_ctx *g); void link_match(struct gluten_ctx *g); |