LLVM 20.0.0git
|
#include "llvm/Analysis/InstCount.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/Passes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IR/Instruction.def"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "instcount" |
#define | HANDLE_INST(N, OPCODE, CLASS) STATISTIC(Num##OPCODE##Inst, "Number of " #OPCODE " insts"); |
#define | HANDLE_INST(N, OPCODE, CLASS) |
Functions | |
STATISTIC (TotalInsts, "Number of instructions (of all types)") | |
STATISTIC (TotalBlocks, "Number of basic blocks") | |
STATISTIC (TotalFuncs, "Number of non-external functions") | |
#define DEBUG_TYPE "instcount" |
Definition at line 23 of file InstCount.cpp.
#define HANDLE_INST | ( | N, | |
OPCODE, | |||
CLASS | |||
) | STATISTIC(Num##OPCODE##Inst, "Number of " #OPCODE " insts"); |
Definition at line 41 of file InstCount.cpp.
Definition at line 41 of file InstCount.cpp.
STATISTIC | ( | TotalBlocks | , |
"Number of basic blocks" | |||
) |
STATISTIC | ( | TotalFuncs | , |
"Number of non-external functions" | |||
) |
STATISTIC | ( | TotalInsts | , |
"Number of instructions (of all types)" | |||
) |