Modifier and Type | Field and Description |
---|---|
ILOCBasicBlock |
LocalRegisterAllocator.currentBlock
Basic block that is currently being allocated
|
ILOCBasicBlock |
ILOCFunction.entryBlock
Entry block (start of CFG)
|
Modifier and Type | Field and Description |
---|---|
List<ILOCBasicBlock> |
ILOCFunction.allBlocks
It is useful to maintain a list of all blocks for liveness analysis
|
Set<ILOCBasicBlock> |
LocalRegisterAllocator.handled
Collection of basic blocks that have already been allocated
|
List<ILOCBasicBlock> |
ILOCBasicBlock.sources |
List<ILOCBasicBlock> |
ILOCBasicBlock.targets |
Modifier and Type | Method and Description |
---|---|
ILOCBasicBlock |
ILOCFunction.getEntryBlock()
Get the entry point to the function's control flow graph.
|
static ILOCBasicBlock |
ILOCBasicBlock.newBasicBlock() |
Modifier and Type | Method and Description |
---|---|
void |
LocalRegisterAllocator.allocateRegisters(ILOCBasicBlock block)
Perform local register allocation for a single basic block.
|
void |
MyLocalRegisterAllocator.allocateRegisters(ILOCBasicBlock block)
Perform local register allocation for a single basic block.
|
void |
MyLivenessAnalysis.calcLiveInAndLiveOut(ILOCBasicBlock entry)
Calculate live registers at the entry and exit of each basic block
reachable from the given entry block.
|
void |
MyLivenessAnalysis.calcUpwardExposedAndKilledRegs(ILOCBasicBlock entry)
Calculate upward-exposed and killed registers for every basic block
reachable from the given entry block.
|
void |
ILOCFunction.findBlockVars(Set<Integer> seen,
ILOCBasicBlock current,
Set<Integer> candidates,
Map<Integer,String> varMap)
This is a recursive helper function which finds the uninitialized
variables in a given basic block and all successors
Original code written by Steven Young, CS 480 honors student.
|
void |
LocalRegisterAllocator.process(ILOCBasicBlock block)
Perform register allocation for a basic block and all basic blocks
reachable from it.
|
void |
ExportControlFlowDOT.process(ILOCBasicBlock block) |
Modifier and Type | Method and Description |
---|---|
void |
ILOCFunction.temp(List<ILOCBasicBlock> allBlocks) |
Copyright © 2019. All rights reserved.