mie: implement more ir building functionality

This commit is contained in:
2025-04-13 18:34:02 +01:00
parent 7f0d8b87c5
commit deb1232bf9
21 changed files with 694 additions and 132 deletions

View File

@@ -13,7 +13,17 @@ struct mie_record *mie_record_create(const struct mie_const *val)
mie_value_init(&out->r_base, MIE_VALUE_RECORD);
out->r_value = val;
mie_value_retain(MIE_VALUE(out->r_value));
return out;
}
static struct mie_type *get_type(struct mie_value *v)
{
struct mie_record *r = MIE_RECORD(v);
return r->r_value->c_type;
}
const struct mie_value_type record_value_type = {
.t_id = MIE_VALUE_RECORD,
.t_get_type = get_type,
};