<div dir="ltr">A pragma spelling makes a lot of sense to me.  We have lots of attributes (optimize, section, cf_audited_transfer) that are applied implicitly by pragmas, and it would be good to render them that way in diagnostics.<div>
<br></div><div>I'm not convinced we need a PragmaAttr base class for pretty printing.  Maybe we need some other mechanism for allowing attributes to provide custom pretty printers.  Aaron, what do you think?</div><div>
<br></div><div>My first idea is to add a tablegen property like "HasPrettyPrinter = 0 or 1" that supresses emission of the default printPretty method.  Then again, we kind of want the default version when the GNU and C++11 spellings of the attribute are used.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 23, 2014 at 2:17 PM, Tyler Nowicki <span dir="ltr"><<a href="mailto:tnowicki@apple.com" target="_blank">tnowicki@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
As requested here is a patch to add PragmaAttr and Pragma spelling to tablgen and make use of those in the LoopHintAttr. This patch builds off the patch patch given in the '#pragma vectorize’ thread. This is a git patch so please using 'patch -p1’ to apply it.<br>

<br>
<br><br>
<br>
Thanks,<br>
<br>
Tyler<br>
<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>
<br></blockquote></div><br></div>