[llvm-commits] Deleting the Value vtable

Gordon Henriksen gordonhenriksen at mac.com
Sun Dec 9 16:12:23 PST 2007


On 2007-12-09, at 19:02, Chris Lattner wrote:

>>> Thanks Pawel! I've applied your patch as rev 44747 here:
>>>
>>> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071203/056105.html
>>
>>
>> Since there are some other methods to devirtualize deeper in the  
>> class hierarchy, I wonder if it might make sense to write the  
>> dispatch once instead of repeating it several times. Here are some  
>> ideas off the top of my head…
>
> Why not something like InstVisitor?  Right now it only supports  
> instructions, but it could be extended.

Indeed it could. It's isomorphic to the last option minus the sugar of  
dispatch<DestroyThis>(Value);.

— Gordon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20071209/9af1a3f8/attachment.html>


More information about the llvm-commits mailing list