Commit 664ee327 authored by Mark Heffernan's avatar Mark Heffernan
Browse files

Add release notes about the unroll pragmas.

llvm-svn: 230294
parent 764039cf
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -84,7 +84,17 @@ To reliably test if C++ exceptions are enabled, use ``__EXCEPTIONS && __has_feat
New Pragmas in Clang
-----------------------

Clang now supports the ...
Clang now supports the `#pragma unroll` and `#pragma nounroll` directives to
specify loop unrolling optimization hints.  Placed just prior to the desired
loop, `#pragma unroll` directs the loop unroller to attempt to fully unroll the
loop.  The pragma may also be specified with a positive integer parameter
indicating the desired unroll count: `#pragma unroll _value_`.  The unroll count
parameter can be optionally enclosed in parentheses. The directive `#pragma
nounroll` indicates that the loop should not be unrolled.  These unrolling hints
may also be expressed using the `#pragma clang loop` directive.  See the Clang
`language extensions
<http://clang.llvm.org/docs/LanguageExtensions.html#extensions-for-loop-hint-optimizations>`_
for details.

Windows Support
---------------