[llvm-commits] [PATCH] Add malloc call utility functions

Victor Hernandez vhernandez at apple.com
Fri Sep 4 17:58:11 PDT 2009


Here is an update to this patch to incorporate suggested changes.

I also went ahead and started modifying the optimization passes and  
transforms to use the MallocHelper functions, so that I know I have  
the right helper functions.  The changes to the passes are not in this  
patch, but will be coming next.

Also I have included the LLParser, BitCodeReader, and VMCore changes  
that use the new malloc codegen instead of MallocInst.  Those changes  
are disabled by default until the changes to the passes are in.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MallocHelper.diff
Type: application/octet-stream
Size: 29011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090904/8ff7a335/attachment.obj>
-------------- next part --------------


Victor

> I am working on fixing the MallocInst/i64 alloca bug:
> http://llvm.org/bugs/show_bug.cgi?id=715
>
> Here is the first of a series of patches that will result in tearing  
> out MallocInst.  Before I can tear it out, I need to update all of  
> the optimization passes and transforms that operate on MallocInst to  
> operate on malloc CallInst instead.
>
> This patch consists of a set of utility functions that create IR for  
> malloc calls and identify that IR.  It also rewrites  
> LowerAllocations to use the new utility function,  
> CallInst::CreateMalloc().
>
> <mallocUtils.diff>
>
> Victor
>
> ---
> Victor Hernandez          vhernandez at apple.com
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list