public class DepGraphStats extends Object
DepGraph
Constructor and Description |
---|
DepGraphStats(DepGraph dg,
String bbName)
Create a statistical summary of a dependence graph for a given basic
block.
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
estimateExecutionTime(Instruction instr)
Returns an estimate of the number of cycles for a given instruction.
|
static void |
printBasicBlockStatistics(IR ir)
Print the dependence graph stats for all basic blocks in an IR.
|
DepGraphStats(DepGraph dg, String bbName)
dg
- the dependence graphbbName
- name of the basic blockpublic static void printBasicBlockStatistics(IR ir)
ir
- the IRint estimateExecutionTime(Instruction instr)
instr
- the instruction0
or 1