diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2015-08-24 05:31:10 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-08-24 05:31:10 +0000 |
| commit | ae8c17ef58905611f0a000effafa9e06d76293f1 (patch) | |
| tree | fb747fe2f6b857f8295c4f8b8ffeed2fd61503e0 /clang | |
| parent | 5196a17d3c3e8d9ac3f96800eb803edd0348e995 (diff) | |
| download | bcm5719-llvm-ae8c17ef58905611f0a000effafa9e06d76293f1.tar.gz bcm5719-llvm-ae8c17ef58905611f0a000effafa9e06d76293f1.zip | |
[OPENMP] Info about OpenMP Support in Users Manual, NFC.
Differential Revision: http://reviews.llvm.org/D12152
llvm-svn: 245823
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/docs/UsersManual.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 2229e19fc91..66597b8a13e 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -1852,6 +1852,32 @@ Objective-C Language Features Objective-C++ Language Features =============================== +.. _openmp: + +OpenMP Features +=============== + +Clang supports all OpenMP 3.1 directives and clauses. In addition, some +features of OpenMP 4.0 are supported. For example, ``#pragma omp simd``, +``#pragma omp for simd``, ``#pragma omp parallel for simd`` directives, extended +set of atomic constructs, ``proc_bind`` clause for all parallel-based +directives, ``depend`` clause for ``#pragma omp task`` directive (except for +array sections), ``#pragma omp cancel`` and ``#pragma omp cancellation point`` +directives, and ``#pragma omp taskgroup`` directive. + +OpenMP support is disabled by default. Use :option:`-fopenmp=libomp` to enable +it. Support for OpenMP can be disabled with :option:`-fno-openmp`. + +Controlling implementation limits +--------------------------------- + +.. option:: -fopenmp-use-tls + + Controls code generation for OpenMP threadprivate variables. In presence of + this option all threadprivate variables are generated the same way as thread + local variables, using TLS support. If :option:`-fno-openmp-use-tls` + is provided or target does not support TLS, code generation for threadprivate + variables relies on OpenMP runtime library. .. _target_features: |

