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