aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bytecode/Analyzer.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-06-11 15:10:38 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-06-11 15:10:38 +0000
commit1cf5024de165001aad045934425f37d418f2c657 (patch)
tree932dfe7cc6e4820b5c820bca7176418ad7eb27db /include/llvm/Bytecode/Analyzer.h
parentf6d023312fbc6b4e5242b760f2b5769d3290c2d4 (diff)
Implement tracking of bytecode instruction size and the number of long
instructions generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode/Analyzer.h')
-rw-r--r--include/llvm/Bytecode/Analyzer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Bytecode/Analyzer.h b/include/llvm/Bytecode/Analyzer.h
index 24b219e029..18c566516b 100644
--- a/include/llvm/Bytecode/Analyzer.h
+++ b/include/llvm/Bytecode/Analyzer.h
@@ -55,6 +55,8 @@ struct BytecodeAnalysis {
///< the file is more sparse.
double globalsDensity; ///< density of global defs (bytes/definition)
double functionDensity; ///< Average density of functions (bytes/function)
+ unsigned instructionSize; ///< Size of instructions in bytes
+ unsigned longInstructions;///< Number of instructions > 4 bytes
unsigned vbrCount32; ///< Number of 32-bit vbr values
unsigned vbrCount64; ///< Number of 64-bit vbr values
unsigned vbrCompBytes; ///< Number of vbr bytes (compressed)
@@ -67,13 +69,15 @@ struct BytecodeAnalysis {
/// an analysis of a single function.
struct BytecodeFunctionInfo {
std::string description; ///< Function type description
- std::string name; ///< Name of function if it has one
+ std::string name; ///< Name of function if it has one
unsigned byteSize; ///< The size of the function in bytecode bytes
unsigned numInstructions; ///< The number of instructions in the function
unsigned numBasicBlocks; ///< The number of basic blocks in the function
unsigned numPhis; ///< Number of Phi Nodes in Instructions
unsigned numOperands; ///< The number of operands in the function
double density; ///< Density of function
+ unsigned instructionSize; ///< Size of instructions in bytes
+ unsigned longInstructions;///< Number of instructions > 4 bytes
unsigned vbrCount32; ///< Number of 32-bit vbr values
unsigned vbrCount64; ///< Number of 64-bit vbr values
unsigned vbrCompBytes; ///< Number of vbr bytes (compressed)