summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/critical_codegen.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [OPENMP] Codegen for 'omp critical' directive.Alexey Bataev2014-09-221-0/+38
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
OpenPOWER on IntegriCloud