public class MyLivenessAnalysis extends Object implements ILOCProcessor
Constructor and Description |
---|
MyLivenessAnalysis() |
Modifier and Type | Method and Description |
---|---|
void |
calcLiveInAndLiveOut(ILOCBasicBlock entry)
Calculate live registers at the entry and exit of each basic block
reachable from the given entry block.
|
void |
calcUpwardExposedAndKilledRegs(ILOCBasicBlock entry)
Calculate upward-exposed and killed registers for every basic block
reachable from the given entry block.
|
void |
process(ILOCProgram program)
Perform liveness analysis on each function.
|
public void process(ILOCProgram program)
process
in interface ILOCProcessor
program
- ILOCProgram
to processpublic void calcUpwardExposedAndKilledRegs(ILOCBasicBlock entry)
ILOCBasicBlock
.entry
- Entry basic blockpublic void calcLiveInAndLiveOut(ILOCBasicBlock entry)
ILOCBasicBlock
.entry
- Entry basic blockCopyright © 2019. All rights reserved.