<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>It would be very useful for auto-tuning libraries certainly. I am not sure how to support it currently. I suggest we leave it for a future commit.</div><div><br></div><div>Thanks,</div><div><br></div><div>Tyler</div><br><div><div>On Apr 28, 2014, at 4:57 PM, Hal Finkel <<a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">----- Original Message -----<br><blockquote type="cite">From: "Tyler Nowicki" <<a href="mailto:tnowicki@apple.com">tnowicki@apple.com</a>><br>To: "Alexander Musman" <<a href="mailto:alexander.musman@gmail.com">alexander.musman@gmail.com</a>><br>Cc: "Alexey Bataev" <<a href="mailto:a.bataev@hotmail.com">a.bataev@hotmail.com</a>>, "llvm cfe" <<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a>>, "Nadav Rotem" <<a href="mailto:nrotem@apple.com">nrotem@apple.com</a>><br>Sent: Monday, April 28, 2014 6:53:40 PM<br>Subject: Re: [PATCH] #pragma vectorize<br><br><br><br>Hi Alexander,<br><br>Thanks for the review. I’ve updated the patch with your most of your<br>suggestions.<br><br>Please review the updated patch.<br><br><blockquote type="cite">Do you plan to support substitution of integer template parameters<br>into pragma? Here is example:<br><blockquote type="cite">cat ploop.cpp<br></blockquote>template <int VLEN> void while_test(int *List, int Length) {<br>int i = 0;<br>#pragma loop vectorize(VLEN)<br>while(i < Length) {<br>List[i] = i*2;<br>i++;<br>}<br>}<br>int main() {<br>int L[100];<br>while_test<4> (L, 100);<br>return 0;<br>}<br></blockquote><br>I considered this, it is not currently supported. I’m not sure if it<br>makes sense. Lets leave this as a topic of future work for now.<br></blockquote><br>This kind of use case *must* be supported, it is very important for libraries that auto-tune. Is there some reason that it is complicated to support?<br><br>-Hal<br><br><blockquote type="cite"><br><blockquote type="cite"><br>ParsePragma.cpp:1619: // Read '('<br>This looks like a good place to use BalancedDelimiterTracker for<br>parsing '(' and ')’.<br></blockquote><br>I don’t think it is needed. It isn’t used by any other #pragma<br>directives and the syntax here is rather simple. What do you think<br>would be the benefit?<br><br>Tyler<br><br><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">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br><br></blockquote><br>--<span class="Apple-converted-space"> </span><br>Hal Finkel<br>Assistant Computational Scientist<br>Leadership Computing Facility<br>Argonne National Laboratory</div></blockquote></div><br></body></html>