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

Victor Hernandez vhernandez at apple.com
Tue Aug 11 19:31:50 PDT 2009


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().

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mallocUtils.diff
Type: application/octet-stream
Size: 19528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090811/427c0599/attachment.obj>
-------------- next part --------------


Victor

---
Victor Hernandez          vhernandez at apple.com


More information about the llvm-commits mailing list