| commit | 3a3bf0bbe35fee25219e075ee9b76abb8633c24b | [log] [tgz] |
|---|---|---|
| author | Alexey Bataev <a.bataev@hotmail.com> | Mon Sep 22 10:01:53 2014 +0000 |
| committer | Alexey Bataev <a.bataev@hotmail.com> | Mon Sep 22 10:01:53 2014 +0000 |
| tree | 3010cda60f887c06f50ed0323ed9ee4d6ec59c72 | |
| parent | b105a2c3e07f49e3af7400d7e58de52acfd2c733 [diff] |
[OPENMP] Codegen for 'omp critical' directive. This patch adds codegen for constructs: #pragma omp critical [name] <body> It generates global variable ".gomp_critical_user_[name].var" of type int32[8]. Then it generates library call "kmpc_critical(loc, gtid, .gomp_critical_user_[name].var)", code for <body> statement and final call "kmpc_end_critical(loc, gtid, .gomp_critical_user_[name].var)". Differential Revision: http://reviews.llvm.org/D5202 llvm-svn: 218239