diff options
author | Tyler Nowicki <tnowicki@apple.com> | 2014-06-18 00:51:32 +0000 |
---|---|---|
committer | Tyler Nowicki <tnowicki@apple.com> | 2014-06-18 00:51:32 +0000 |
commit | a5bb497257b1e112cc94e6608beeb619d9576259 (patch) | |
tree | 6dd9e9cf7b44cb17d51a16413909c727b6b994f6 /include | |
parent | f259aacb026c526fbf7897e08ebe39f522f09a45 (diff) | |
download | clang-a5bb497257b1e112cc94e6608beeb619d9576259.tar.gz clang-a5bb497257b1e112cc94e6608beeb619d9576259.tar.bz2 clang-a5bb497257b1e112cc94e6608beeb619d9576259.tar.xz |
Documentation for #pragma clang loop directive and options vectorize and interleave.
Reviewed by: Aaron Ballman and Dmitri Gribenko
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/Attr.td | 2 | ||||
-rw-r--r-- | include/clang/Basic/AttrDocs.td | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td index ab83db206e..df4b38d331 100644 --- a/include/clang/Basic/Attr.td +++ b/include/clang/Basic/Attr.td @@ -1812,5 +1812,5 @@ def LoopHint : Attr { } }]; - let Documentation = [Undocumented]; + let Documentation = [LoopHintDocs]; } diff --git a/include/clang/Basic/AttrDocs.td b/include/clang/Basic/AttrDocs.td index 7441fe5cfe..6c8c9a37ae 100644 --- a/include/clang/Basic/AttrDocs.td +++ b/include/clang/Basic/AttrDocs.td @@ -1012,3 +1012,14 @@ This attribute is incompatible with the ``always_inline`` attribute. }]; } +def LoopHintDocs : Documentation { + let Category = DocCatStmt; + let Content = [{ +The ``#pragma clang loop'' directive allows loop optimization hints to be +specified for the subsequent loop. The directive allows vectorization +and interleaving to be enabled or disabled, and the vector width and interleave +count to be manually specified. See `language extensions +<http://clang.llvm.org/docs/LanguageExtensions.html#extensions-for-loop-hint-optimizations>'_ +for details. + }]; +} |