Go to the source code of this file.
|
| | STATISTIC (TotalInstsPreOptimization, "Number of instructions of all types (before optimizations)") |
| | STATISTIC (TotalInsts, "Number of instructions of all types") |
| | STATISTIC (TotalBlocksPreOptimization, "Number of basic blocks (before optimizations)") |
| | STATISTIC (TotalBlocks, "Number of basic blocks") |
| | STATISTIC (TotalFuncsPreOptimization, "Number of non-external functions (before optimizations)") |
| | STATISTIC (TotalFuncs, "Number of non-external functions") |
| | STATISTIC (LargestFunctionSizePreOptimization, "Largest number of instructions in a single function (before " "optimizations)") |
| | STATISTIC (LargestFunctionSize, "Largest number of instructions in a single function") |
| | STATISTIC (LargestFunctionBBCountPreOptimization, "Largest number of basic blocks in a single function (before " "optimizations)") |
| | STATISTIC (LargestFunctionBBCount, "Largest number of basic blocks in a single function") |
◆ DEBUG_TYPE
| #define DEBUG_TYPE "instcount" |
◆ HANDLE_INST [1/2]
| #define HANDLE_INST |
( |
| N, |
|
|
| OPCODE, |
|
|
| CLASS ) |
Value: STATISTIC(Num##OPCODE##InstPreOptimization, \
"Number of " #OPCODE " insts (before optimizations)"); \
STATISTIC(Num##OPCODE##Inst, "Number of " #OPCODE " insts");
#define STATISTIC(VARNAME, DESC)
Definition at line 44 of file InstCount.cpp.
◆ HANDLE_INST [2/2]
| #define HANDLE_INST |
( |
| N, |
|
|
| OPCODE, |
|
|
| CLASS ) |
Value: void visit##OPCODE(CLASS &) { \
if (IsPreOptimization) { \
++Num##OPCODE##InstPreOptimization; \
++TotalInstsPreOptimization; \
} else { \
++Num##OPCODE##Inst; \
++TotalInsts; \
} \
}
static void visit(BasicBlock &Start, std::function< bool(BasicBlock *)> op)
Definition at line 44 of file InstCount.cpp.
◆ STATISTIC() [1/10]
| STATISTIC |
( |
LargestFunctionBBCount | , |
|
|
"Largest number of basic blocks in a single function" | ) |
◆ STATISTIC() [2/10]
◆ STATISTIC() [3/10]
◆ STATISTIC() [4/10]
◆ STATISTIC() [5/10]
| STATISTIC |
( |
TotalBlocks | , |
|
|
"Number of basic blocks" | ) |
◆ STATISTIC() [6/10]
◆ STATISTIC() [7/10]
| STATISTIC |
( |
TotalFuncs | , |
|
|
"Number of non-external functions" | ) |
◆ STATISTIC() [8/10]
◆ STATISTIC() [9/10]
| STATISTIC |
( |
TotalInsts | , |
|
|
"Number of instructions of all types" | ) |
◆ STATISTIC() [10/10]