diff options
-rw-r--r-- | clang/docs/LanguageExtensions.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst index 903d4500592..967f4ad9bb9 100644 --- a/clang/docs/LanguageExtensions.rst +++ b/clang/docs/LanguageExtensions.rst @@ -3027,6 +3027,14 @@ provides options for vectorization, interleaving, predication, unrolling and distribution. Loop hints can be specified before any loop and will be ignored if the optimization is not safe to apply. +There are loop hints that control transformations (e.g. vectorization, loop +unrolling) and there are loop hints that set transformation options (e.g. +``vectorize_width``, ``unroll_count``). Pragmas setting transformation options +imply the transformation is enabled, as if it was enabled via the corresponding +transformation pragma (e.g. ``vectorize(enable)``). If the transformation is +disabled (e.g. ``vectorize(disable)``), that takes precedence over +transformations option pragmas implying that transformation. + Vectorization, Interleaving, and Predication -------------------------------------------- |