Changes in directory llvm-poolalloc/lib/PoolAllocate:
PointerCompress.cpp updated: 1.74 -> 1.75 PoolAllocate.cpp updated: 1.130 -> 1.131 PoolOptimize.cpp updated: 1.9 -> 1.10 --- Log message: Update to the new Statistic interface. --- Diffs of the changes: (+12 -14) PointerCompress.cpp | 8 +++----- PoolAllocate.cpp | 16 ++++++++-------- PoolOptimize.cpp | 2 +- 3 files changed, 12 insertions(+), 14 deletions(-) Index: llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp diff -u llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.74 llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.75 --- llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.74 Wed Dec 13 23:51:07 2006 +++ llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp Wed Jan 10 12:10:32 2007 @@ -55,11 +55,9 @@ cl::desc("Enable Andrew's fixes/hacks")); - Statistic NumCompressed("pointercompress", - "Number of pools pointer compressed"); - Statistic NumNotCompressed("pointercompress", - "Number of pools not compressible"); - Statistic NumCloned ("pointercompress", "Number of functions cloned"); + STATISTIC (NumCompressed, "Number of pools pointer compressed"); + STATISTIC (NumNotCompressed, "Number of pools not compressible"); + STATISTIC (NumCloned , "Number of functions cloned"); class CompressedPoolInfo; Index: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp diff -u llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.130 llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.131 --- llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.130 Tue Dec 19 17:10:34 2006 +++ llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp Wed Jan 10 12:10:32 2007 @@ -58,14 +58,14 @@ RegisterPass<PoolAllocatePassAllPools> Y("poolalloc-passing-all-pools", "Pool allocate disjoint data structures"); - Statistic NumArgsAdded("poolalloc", "Number of function arguments added"); - Statistic MaxArgsAdded("poolalloc", "Maximum function arguments added to one function"); - Statistic NumCloned ("poolalloc", "Number of functions cloned"); - Statistic NumPools ("poolalloc", "Number of pools allocated"); - Statistic NumTSPools ("poolalloc", "Number of typesafe pools"); - Statistic NumPoolFree ("poolalloc", "Number of poolfree's elided"); - Statistic NumNonprofit("poolalloc", "Number of DSNodes not profitable"); - Statistic NumColocated("poolalloc", "Number of DSNodes colocated"); + STATISTIC (NumArgsAdded, "Number of function arguments added"); + STATISTIC (MaxArgsAdded, "Maximum function arguments added to one function"); + STATISTIC (NumCloned , "Number of functions cloned"); + STATISTIC (NumPools , "Number of pools allocated"); + STATISTIC (NumTSPools , "Number of typesafe pools"); + STATISTIC (NumPoolFree , "Number of poolfree's elided"); + STATISTIC (NumNonprofit, "Number of DSNodes not profitable"); + STATISTIC (NumColocated, "Number of DSNodes colocated"); const Type *VoidPtrTy; Index: llvm-poolalloc/lib/PoolAllocate/PoolOptimize.cpp diff -u llvm-poolalloc/lib/PoolAllocate/PoolOptimize.cpp:1.9 llvm-poolalloc/lib/PoolAllocate/PoolOptimize.cpp:1.10 --- llvm-poolalloc/lib/PoolAllocate/PoolOptimize.cpp:1.9 Wed Dec 13 14:06:42 2006 +++ llvm-poolalloc/lib/PoolAllocate/PoolOptimize.cpp Wed Jan 10 12:10:32 2007 @@ -20,7 +20,7 @@ using namespace llvm; namespace { - Statistic NumBumpPtr("poolalloc", "Number of bump pointer pools"); + STATISTIC (NumBumpPtr, "Number of bump pointer pools"); struct PoolOptimize : public ModulePass { bool runOnModule(Module &M); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits