SjoerdMeijer created this revision. SjoerdMeijer added reviewers: fhahn, Meinersbur, dorit, hsaito.
Following our discussion on the cfe dev list (http://lists.llvm.org/pipermail/cfe-dev/2019-August/063054.html), I have added a paragraph that is explicit about transformation options implying the corresponding transformation. https://reviews.llvm.org/D66199 Files: docs/LanguageExtensions.rst Index: docs/LanguageExtensions.rst =================================================================== --- docs/LanguageExtensions.rst +++ docs/LanguageExtensions.rst @@ -3065,6 +3065,14 @@ 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 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 --------------------------------------------
Index: docs/LanguageExtensions.rst =================================================================== --- docs/LanguageExtensions.rst +++ docs/LanguageExtensions.rst @@ -3065,6 +3065,14 @@ 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 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 --------------------------------------------
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits