[llvm-commits] Tblgen refactoring

Malul, Elior elior.malul at intel.com
Mon Dec 31 01:25:56 PST 2012


Hi all, attached is a small patch that I think makes tblgen somewhat more maintainable.

The way code is at the moment, if one want's to add a new tblgen type (that is to subclass 'RecTy'),
Not only he/she compelled to add implementation to all variants of 'baseClassOf',
one also needs to add a new 'baseClassOf' method for the newly added types to *all* the types in the hierarchy.
The attached patch tries to deal with that phenomena.

I will appreciate if those who care about tblgen will review it.
Thx, Elior
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121231/f1d17b14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: baseClassOf.patch
Type: application/octet-stream
Size: 10067 bytes
Desc: baseClassOf.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121231/f1d17b14/attachment.obj>


More information about the llvm-commits mailing list