<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><br></div><br><div><div>On Jan 8, 2014, at 9:16 AM, Renato Golin <<a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 January 2014 16:55, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</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"><span style="color:rgb(34,34,34)">I agree that adding attributes is much easier; and I'm fine with taking this approach. I think that, in general, we should work on an infrastructure that lets the pragma parsing build off of the attribute handing. I don't see any real reason to have separate code paths for the two (in those cases where they are doing similar things).</span></div>
</blockquote><div><br></div><div>Agreed.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">In the long run we should, however, definitely support a pragma syntax. That is the proper, standard, way of providing these kinds of extensions in pre-C++11 languages.</span></div>
</blockquote><div><br></div><div>Agreed.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div class="im"><span style="color:rgb(34,34,34)">I'll add that, as I understand it, one of the original design motivations for C++11 attributes was so that extensions like OpenMP could be specified in terms of C++ attributes instead of or in addition to pragmas. I don't think the OpenMP ARB has yet acted on this, but I expect that as C++11 support is specifically addressed in upcoming versions of the OpenMP specification, we might see movement in this direction.</span></div>
</blockquote><div></div></div><br></div><div class="gmail_extra">This is interesting. We can add the attributes in "beta" stage, and change to closer to whatever OMP comes up, just to make things easier to users. Since this attribute is going to be only used by a handful of people for now, mostly us and tests, I think it should be ok.</div></div></blockquote><div><br></div><div>Hi, </div><div><br></div><div>I understand that adding vectorization attributes will be easier than pragmas. But, what will the syntax look like? Can someone provide a small example? </div><div><br></div><div>Thanks,</div><div>Nadav</div><div><br></div></div><br></body></html>