[llvm-commits] [poolalloc] r47023 - /poolalloc/trunk/include/poolalloc/PoolAllocate.h
John Criswell
criswell at uiuc.edu
Tue Feb 12 12:33:14 PST 2008
Author: criswell
Date: Tue Feb 12 14:33:14 2008
New Revision: 47023
URL: http://llvm.org/viewvc/llvm-project?rev=47023&view=rev
Log:
Added getPoolType() method which allows other passes to determine the type
of pool descriptors added by the Automatic Pool Allocation pass.
Modified:
poolalloc/trunk/include/poolalloc/PoolAllocate.h
Modified: poolalloc/trunk/include/poolalloc/PoolAllocate.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc/PoolAllocate.h?rev=47023&r1=47022&r2=47023&view=diff
==============================================================================
--- poolalloc/trunk/include/poolalloc/PoolAllocate.h (original)
+++ poolalloc/trunk/include/poolalloc/PoolAllocate.h Tue Feb 12 14:33:14 2008
@@ -205,6 +205,12 @@
GlobalVariable *CreateGlobalPool(unsigned RecSize, unsigned Alignment,
Instruction *IPHint = 0);
+ /// getPoolType - Return the type of a pool descriptor
+ const Type * getPoolType() {
+ Type * VoidPtrType = PointerType::getUnqual(Type::Int8Ty);
+ return ArrayType::get(VoidPtrType, 16);
+ }
+
private:
/// AddPoolPrototypes - Add prototypes for the pool functions to the
More information about the llvm-commits
mailing list