[PATCH] Add support for #pragma nounroll

Mark Heffernan meheff at google.com
Wed Jul 23 14:23:29 PDT 2014


Hi aaron.ballman,

Following up on recently added "#pragma unroll" support, this patch adds support for "#pragma nounroll" which disables unrolling for a loop.  Both xlc and icc support "#pragma nounroll".  Compatibility with these compilers (along with CUDA) motivated the original "#pragma unroll" support.

This patch was originally part of the patch which added support for "#pragma unroll" but was pulled out to make that patch more incremental.

http://reviews.llvm.org/D4647

Files:
  docs/ReleaseNotes.rst
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  include/clang/Parse/Parser.h
  include/clang/Sema/LoopHint.h
  lib/Parse/ParsePragma.cpp
  lib/Sema/SemaStmtAttr.cpp
  test/CodeGen/pragma-unroll.cpp
  test/PCH/pragma-loop.cpp
  test/Parser/pragma-unroll.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4647.11821.patch
Type: text/x-patch
Size: 14765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140723/0dba05b9/attachment.bin>


More information about the cfe-commits mailing list