[llvm-commits] CVS: poolalloc/include/poolalloc/PoolAllocate.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 9 18:14:11 PST 2003
Changes in directory poolalloc/include/poolalloc:
PoolAllocate.h updated: 1.11 -> 1.12
---
Log message:
Split createpools, making a new InitializeAndDestroyPools method
---
Diffs of the changes: (+12 -3)
Index: poolalloc/include/poolalloc/PoolAllocate.h
diff -u poolalloc/include/poolalloc/PoolAllocate.h:1.11 poolalloc/include/poolalloc/PoolAllocate.h:1.12
--- poolalloc/include/poolalloc/PoolAllocate.h:1.11 Sun Nov 9 17:36:27 2003
+++ poolalloc/include/poolalloc/PoolAllocate.h Sun Nov 9 18:12:53 2003
@@ -169,9 +169,9 @@
///
void ProcessFunctionBody(Function &Old, Function &New);
- /// CreatePools - This creates the pool initialization and destruction code
- /// for the DSNodes specified by the NodesToPA list. This adds an entry to
- /// the PoolDescriptors map for each DSNode.
+ /// CreatePools - This inserts alloca instruction in the function for all
+ /// pools specified in the NodesToPA list. This adds an entry to the
+ /// PoolDescriptors map for each DSNode.
///
void CreatePools(Function &F, const std::vector<DSNode*> &NodesToPA,
std::map<DSNode*, Value*> &PoolDescriptors,
@@ -184,6 +184,15 @@
std::set<std::pair<AllocaInst*, Instruction*> > &poolUses,
std::set<std::pair<AllocaInst*, CallInst*> > &poolFrees,
Function &F);
+
+ /// InitializeAndDestroyPools - This inserts calls to poolinit and pooldestroy
+ /// into the function to initialize and destroy the pools in the NodesToPA
+ /// list.
+ void InitializeAndDestroyPools(Function &F,
+ const std::vector<DSNode*> &NodesToPA,
+ std::map<DSNode*, Value*> &PoolDescriptors,
+ std::map<const Value *,
+ const Type *> &PoolDescTypeMap);
};
#endif
More information about the llvm-commits
mailing list