asm: assembler: constpool value indices are now used and enforced

constpool values must be defined in ascending sequence, each index must be greater than the last.
any gaps in the sequence will automatically be filled with null values.
This commit is contained in:
2025-05-15 12:06:39 +01:00
parent 95f58615e0
commit 2845c29c5f
4 changed files with 19 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ IVY_API enum ivy_status ivy_assembler_end_scope(struct ivy_assembler *as);
IVY_API enum ivy_status ivy_assembler_put_pval(
struct ivy_assembler *as, enum ivy_assembler_pval_type type,
const void *val, ivy_extended_data_key *key);
size_t slot, const void *val, ivy_extended_data_key *key);
IVY_API enum ivy_status ivy_assembler_put_xval(
struct ivy_assembler *as, enum ivy_assembler_xval_type type,
const ivy_assembler_attrib_table attrib);