Cmm: track the type of global registers
This is an attempt to keep track of the types we store in Cmm global registers. This is meant to address #22297 (closed). Putting it up for preliminary discussion only, for the moment.
TODO:
-
Refactor the VanillaRegconstructor ofGlobalRegby removing theVGcPtrfield. This information should instead be recovered from theCmmTypeof theGlobalRegUse. -
Make AvailRegsinto a datatype.
Edited by sheaf