[LLVMdev] Pool Allocation and DSA (and: Re: DSA Question)
Patrick Alexander Simmons
simmon12 at cs.uiuc.edu
Fri Jun 19 09:23:12 PDT 2009
Torvald Riegel wrote:
> On Thursday 11 June 2009 18:14:08 John Criswell wrote:
>
>> If your use of pool allocation requires that you can always get the pool
>> handle for a pointer, you need to make sure that pool allocation is
>> configured so that it doesn't generate the above scenario. I think
>> there is an option to make all pools be global pools.
>>
>
> Some time ago, I used AnalysisUsage's addRequired<PoolAllocatePassAllPools>()
> to get this behavior. It didn't make all pools global.
>
> Torvald
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
Okay, thanks, Torvald. I assume this resulted in more pool descriptor
arguments being passed; did you find this to hurt performance at all?
Once I have the local pool descriptor, it's occurred to me that what I
basically need is the interprocedural use-def chain from a pool
descriptor's Argument to the corresponding Values in the caller
functions. Unfortunately, I looked in the class hierarchy and found
that Argument is not a subclass of User. Still, perhaps someone has
created an interprocedural def-use/use-def analysis pass for LLVM for
some other purpose?
Thanks,
--Patrick
More information about the llvm-dev
mailing list