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

@@ -287,7 +287,7 @@ enum ivy_status ivy_assembler_end_scope(struct ivy_assembler *as)
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)
{
struct assembler_scope *scope = as->as_scope;
@@ -300,7 +300,7 @@ enum ivy_status ivy_assembler_put_pval(
return IVY_ERR_NOT_SUPPORTED;
}
return type_info->s_put_pval(as, scope, type, val, key);
return type_info->s_put_pval(as, scope, type, slot, val, key);
}
enum ivy_status ivy_assembler_put_xval(