[cfe-dev] Question about optimization of new and delete

David Tweed David.Tweed at arm.com
Mon Sep 30 06:02:02 PDT 2013


| Anyway, is it C++ specific or is there some generic architecture to model dynamic allocation (I believed not)?

Most of this is based in lib/Analysis/MemoryBuiltins.cpp, which basically splits things into "prototypical types of behaviour" for functions that LLVM knows how to do useful transformations with, and some plumbing to connect the function names (or mangled function names in C++) to the appropriate behaviour.

Cheers,
Dave

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130930/ff528256/attachment.html>


More information about the cfe-dev mailing list