mie: add parent pointers to region and block; two-way link between a register and its users

This commit is contained in:
2026-01-19 13:57:25 +00:00
parent da140ed0d1
commit 5e13824706
9 changed files with 43 additions and 14 deletions

View File

@@ -13,9 +13,9 @@ void mie_printer_print_op_arg(
const struct mie_type *arg_type = NULL;
if (MIE_TEST_FLAGS(arg->arg_flags, MIE_OP_F_ARG_RESOLVED)) {
arg_flags = arg->arg_value->reg_flags;
arg_name = arg->arg_value->reg_name.n_str;
arg_type = arg->arg_value->reg_type;
arg_flags = arg->arg_value.u_reg->reg_flags;
arg_name = arg->arg_value.u_reg->reg_name.n_str;
arg_type = arg->arg_value.u_reg->reg_type;
} else {
arg_flags = arg->arg_unresolved.reg_flags;
arg_name = arg->arg_unresolved.reg_name;
@@ -160,7 +160,7 @@ static void print_type_signature(
const struct mie_op_arg *arg = &op->op_args.items[i];
if (arg->arg_flags & MIE_OP_F_ARG_RESOLVED) {
type = arg->arg_value->reg_type;
type = arg->arg_value.u_reg->reg_type;
} else {
type = arg->arg_unresolved.reg_type;
}