[llvm-commits] [PATCH] Enhance TableGen with ranges and fixits

Jakob Stoklund Olesen jolesen at apple.com
Mon Jan 7 13:04:07 PST 2013


On Jan 7, 2013, at 11:31 AM, Jordan Rose <jordan_rose at apple.com> wrote:

> Second pass at this. TableGen and SMDiagnostic are being modified to 
> 
> (a) Track anonymous definitions.
> (b) Save source ranges for superclass references (for the fixits).
> (c) Actually emit fixits (only support here; fixits happening in clang-tblgen)
> 
> This should be better than the previous scheme ranges should appear once per superclass per Record, which will not bloat TableGen's memory usage nearly as much as saving ranges on every DefInit. (I would have liked to do it only first the first time a superclass is mentioned, but TableGen represents multiple levels of inheritance by just copying the grandparent into the child as another superclass.) The fixits are a little worse but that's fine.
> 
> Again, I'll post the Clang side on cfe-commits soon.

The TableGen part looks fine to me. I am not familiar with SMDiagnostic.

/jakob




More information about the llvm-commits mailing list