CELLS signature
CELLS is used to provide a consistent view of registers to the MLRisc generation phase, and the various phases in the backend.
signature CELLS
val stackptrR : int
val asmTmpR : int
val newReg : unit -> int
val newFreg : unit -> int
val newCCreg : unit -> int
val maxReg : unit -> int
val maxFreg : unit -> int
val maxCCreg : unit -> int
val firstPseudoReg : int
val firstPseudoFreg : int
val firstPseudoCCreg : int
val resetRegs : unit -> int Array.array ref list
type cellset
val cellset2string : cellset -> string
val addReg : (int * cellset) -> cellset
val addFreg : (int * cellset) -> cellset
val addCCreg : (int * cellset) -> cellset
val empty : cellset
stackptrR
asmTmpR
newReg ()
newFreg ()
newCCreg ()
maxReg ()
maxFreg ()
maxFreg ()
firstPseudoReg
firstPseudoFreg
firstPseudoFreg
resetRegs ()
int Array.array ref returned, is a reference to a register map. Intially the register map is empty or of size zero, but gets initialized when the flowgraph is constructed. The register map is used to record register aliases without having to change the instructions that use those registers. The number of register maps depends on the number of distinct register types on the machine.
type cellset
cellset2string ce
addReg (r, ce)
r to the cellset ce.
addFreg (f, ce)
f to the cellset ce.
addCCreg (cc, ce)
cc to the cellset ce.
empty
Submit a comment on this page
Author: Lal George
Last Modified: October 10, 1996
Copyright © 1996 Bell Laboratories