This name isn't my favourite, I can't immediately tell what it means. How about something like "calculate_var_register_sizes"?
I am not sure about that name. The "register_sizes" part may confuse `count` with `regsize` and the "var" part may give the impression that it is just for one var.
Isn't the register count the same thing as the register size here? Actually, I'm not sure I see the difference in general? I thought there was a convention of "element" vs "register", but apart from that...?
I changed it to "calculate_resource_registers_counts". Is it good?
That works.