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 VanillaReg
constructor ofGlobalReg
by removing theVGcPtr
field. This information should instead be recovered from theCmmType
of theGlobalRegUse
. -
Make AvailRegs
into a datatype.
Edited by sheaf