|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
|
|
|
|
|
|
|
|
|
|
A top level thing which carries liveness information.
|
|
|
An instruction with liveness information.
| Constructors | | Instances | |
|
|
|
Liveness information.
The regs which die are ones which are no longer live in the *next* instruction
in this sequence.
(NB. if the instruction is a jump, these registers might still be live
at the jump target(s) - you have to check the liveness at the destination
block to find out).
| Constructors | Liveness | registers that died because they were clobbered by something.
| liveBorn :: RegSet | registers born in this instruction (written to for first time).
| liveDieRead :: RegSet | registers that died because they were read for the last time.
| liveDieWrite :: RegSet | |
|
|
|
|
|
Stash regs live on entry to each basic block in the info part of the cmm code.
| Constructors | | Instances | |
|
|
|
A basic block with liveness information.
|
|
|
map a function across all the basic blocks in this code
|
|
|
map a function across all the basic blocks in this code (monadic version)
|
|
|
|
|
map a function across all the basic blocks in this code (monadic version)
|
|
|
Strip away liveness information, yielding NatCmmTop
|
|
|
Strip away liveness information from a basic block,
and make real spill instructions out of SPILL, RELOAD pseudos along the way.
|
|
|
Slurp out the list of register conflicts and reg-reg moves from this top level thing.
Slurping of conflicts and moves is wrapped up together so we don't have
to make two passes over the same code when we want to build the graph.
|
|
|
For spill/reloads
SPILL v1, slot1
...
RELOAD slot1, v2
If we can arrange that v1 and v2 are allocated to the same hreg it's more likely
the spill/reload instrs can be cleaned and replaced by a nop reg-reg move.
|
|
|
Erase Delta instructions.
|
|
|
Patch the registers in this code according to this register mapping.
also erase reg -> reg moves when the reg is the same.
also erase reg -> reg moves when the destination dies in this instr.
|
|
|
Patch registers in this LiveInstr, including the liveness information.
|
|
|
|
Produced by Haddock version 2.6.1 |