[llvm-commits] CVS: llvm/include/llvm/Bytecode/Analyzer.h

LLVM llvm at cs.uiuc.edu
Fri Jun 11 10:16:15 PDT 2004


Changes in directory llvm/include/llvm/Bytecode:

Analyzer.h updated: 1.6 -> 1.7

---
Log message:

Implement tracking of bytecode instruction size and the number of long 
instructions generated. 


---
Diffs of the changes:  (+5 -1)

Index: llvm/include/llvm/Bytecode/Analyzer.h
diff -u llvm/include/llvm/Bytecode/Analyzer.h:1.6 llvm/include/llvm/Bytecode/Analyzer.h:1.7
--- llvm/include/llvm/Bytecode/Analyzer.h:1.6	Thu Jun 10 17:28:11 2004
+++ llvm/include/llvm/Bytecode/Analyzer.h	Fri Jun 11 10:10:38 2004
@@ -55,6 +55,8 @@
     ///< 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 @@
   /// 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)





More information about the llvm-commits mailing list