Changes in directory llvm-poolalloc/runtime/FL2Allocator:
PoolAllocator.cpp updated: 1.53 -> 1.54 PoolAllocator.h updated: 1.27 -> 1.28 --- Log message: Add runtime support for an alternate pointer compression runtime --- Diffs of the changes: (+38 -1) PoolAllocator.cpp | 28 +++++++++++++++++++++++++++- PoolAllocator.h | 11 +++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) Index: llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.cpp diff -u llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.cpp:1.53 llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.cpp:1.54 --- llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.cpp:1.53 Wed Jun 14 16:17:32 2006 +++ llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.cpp Thu Jun 29 16:47:25 2006 @@ -889,7 +889,6 @@ // next time. static PoolSlab<CompressedPoolTraits> *Pools[4] = { 0, 0, 0, 0 }; - void *poolinit_pc(PoolTy<CompressedPoolTraits> *Pool, unsigned DeclaredSize, unsigned ObjAlignment) { poolinit_internal(Pool, DeclaredSize, ObjAlignment); @@ -980,6 +979,33 @@ return (char*)Result-(char*)Pool->Slabs; } +// Alternate Pointer Compression +void *poolinit_pca(PoolTy<CompressedPoolTraits> *Pool, unsigned NodeSize, + unsigned ObjAlignment) +{ + return poolinit_pc(Pool, NodeSize, ObjAlignment); +} + +void pooldestroy_pca(PoolTy<CompressedPoolTraits> *Pool) +{ + pooldestroy_pc(Pool); +} + +void* poolalloc_pca(PoolTy<CompressedPoolTraits> *Pool, unsigned NumBytes) +{ + return poolalloc_internal(Pool, NumBytes); +} + +void poolfree_pca(PoolTy<CompressedPoolTraits> *Pool, void* Node) +{ + poolfree_internal(Pool, Node); +} + +void* poolrealloc_pca(PoolTy<CompressedPoolTraits> *Pool, void* Node, + unsigned NumBytes) +{ + return poolrealloc_internal(Pool, Node, NumBytes); +} //===----------------------------------------------------------------------===// // Access Tracing Runtime Library Support Index: llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h diff -u llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h:1.27 llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h:1.28 --- llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h:1.27 Wed Jun 14 16:17:32 2006 +++ llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h Thu Jun 29 16:47:25 2006 @@ -215,6 +215,17 @@ unsigned long long poolrealloc_pc(PoolTy<CompressedPoolTraits> *Pool, unsigned long long Node, unsigned NumBytes); + // Alternate Pointer Compression runtime library. Most of these are just + // wrappers around the normal pool routines. + void *poolinit_pca(PoolTy<CompressedPoolTraits> *Pool, unsigned NodeSize, + unsigned ObjAlignment); + void pooldestroy_pca(PoolTy<CompressedPoolTraits> *Pool); + void* poolalloc_pca(PoolTy<CompressedPoolTraits> *Pool, + unsigned NumBytes); + void poolfree_pca(PoolTy<CompressedPoolTraits> *Pool, void* Node); + void* poolrealloc_pca(PoolTy<CompressedPoolTraits> *Pool, + void* Node, unsigned NumBytes); + // Access tracing runtime library support. void poolaccesstraceinit(void); void poolaccesstrace(void *Ptr, void *PD); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits