[PATCH] Add support for unroll pragma

Mark Heffernan meheff at google.com
Thu Jul 17 11:44:07 PDT 2014


On Thu, Jul 17, 2014 at 11:32 AM, Richard Smith <richard at metafoo.co.uk>
wrote:

> LoopHintAttr should track an Expr*, in order to provide source fidelity
> and to support arbitrary constant expressions and template instantiation.
> Keeping parens there should then not require any extra effort - but I think
> this is fairly low-value so I'm happy either way.
>
Ah, I see.  Tyler Nowicki is working on a patch which adds support for
expressions in loop hint pragmas.  Looks like his patch adds an Expr member
to the loop hint attr.  When that lands, paren tracking can be done as you
suggest which will be much cleaner.

Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140717/d8e1b0ef/attachment.html>


More information about the cfe-commits mailing list