<div class="gmail_quote">On Thu, Feb 7, 2013 at 1:41 PM, Redmond, Paul <span dir="ltr"><<a href="mailto:paul.redmond@intel.com" target="_blank">paul.redmond@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could I use AttributedStmt for this? I don't see it being used for anything else..<br></blockquote><div><br></div><div>Yes, AttributedStmt would be appropriate here. It's also used to represent C++11 attributes applied to a statement.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
paul<br>
<div><div class="h5"><br>
On 2013-02-07, at 12:45 PM, Redmond, Paul wrote:<br>
<br>
> Hi,<br>
><br>
> I'm working on #pragma ivdep [1] in clang and I'm looking for advice on the best way to annotate ForStmt/WhileStmt/DoStmt with the ivdep hint. I've attached my work in progress which handles parsing.<br>

><br>
> I think there are two options:<br>
> 1) add a flag to ForStmt/WhileStmt/DoStmt and toggle it in the parser<br>
> 2) create a new statement (one that wraps a ForStmt/WhileStmt/DoStmt) that includes the flags<br>
><br>
> Option 1) is simple but I do not think it's very clean or extensible. I think 2) is the most flexible because it could be extended to support #pragma simd for example.<br>
><br>
> I think this is a common problem for openmp, amp, cilk, etc. and it'd be nice to have a solution that can work for anyone.<br>
><br>
> I'm not a clang expert by any means so I'd appreciate any input.<br>
><br>
> thanks,<br>
> Paul<br>
><br>
> [1] <a href="http://software.intel.com/sites/products/documentation/studio/composer/en-us/2011Update/compiler_c/cref_cls/common/cppref_pragma_ivdep.htm" target="_blank">http://software.intel.com/sites/products/documentation/studio/composer/en-us/2011Update/compiler_c/cref_cls/common/cppref_pragma_ivdep.htm</a><br>

><br>
><br>
</div></div>> <parser_ivdep.diff>_______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br>