<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I think Dmitri has a good point. Diagnostics are not "dynamic", tablegen's purpose is to emit the necessary static data so that we save on the cost of calculating the same data on every run and the management of the data is simplified (just static tables).</div><div>I think it is worth modifying tablegen to do it.</div><br><div><div>On Dec 12, 2012, at 9:24 AM, Matthieu Monrocq <<a href="mailto:matthieu.monrocq@gmail.com">matthieu.monrocq@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Wed, Dec 12, 2012 at 2:07 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
  > As far as I understand, the information contained in the cache should be known to TableGen during Clang compile-time? If yes -- why not just generate this cache with TableGen?<br>
<br>
</div>  I never used tablegen - on IRC Benjamin said that knowing the size of the holes at tablegen-time is not trivial.<br>
<div class="HOEnZb"><div class="h5"><br>
<a href="http://llvm-reviews.chandlerc.com/D197" target="_blank">http://llvm-reviews.chandlerc.com/D197</a><br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br>The not trivial to know because the diagnostics are split into several files and each file is processed separately by tablegen (last I fiddled with it, at least).<br><br>-- Matthieu<br>
_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br></body></html>