On Mon Jan 23 19:17:06 2023 +0000, Zebediah Figura wrote:
It seems suspicious that we are storing this, since it can be purely calculated from the hlsl_deref (and also since it's kind of backend-specific).
This field is set at the moment the path is lowered into a single offset. This is necessary because without, after that, the deref wouldn't be able to retrieve the type (and thus the regset) from the offset alone. (At least not without a quite complex mechanism).
Granted, if we manage to get rid of offsets and use paths everywhere this field could go away. But better go one step at the time.