[llvm-commits] [PATCH] Make TableGen Inits FoldingSetNodes

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Jul 11 10:11:03 PDT 2011


On Jul 8, 2011, at 9:41 AM, David Greene wrote:

> Here's a patch to manage TableGen Inits using a FoldingSet.  This allows
> us to clean up all of the allocated Inits on TableGen exit, saves memory
> and makes TableGen run a bit faster due to elimination of duplicate
> objects.

Very nice. Please use get() instead of Create().

Please move all of the mechanical const-ness to a separate patch. It is very hard to figure out what is going on with all that noise.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110711/635a923a/attachment.html>


More information about the llvm-commits mailing list