]> granicus.if.org Git - clang/commit
[OPENMP 4.0] Codegen for 'omp cancel' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 6 Jul 2015 05:50:32 +0000 (05:50 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 6 Jul 2015 05:50:32 +0000 (05:50 +0000)
commit0edd99f27dd7409d16e73fda42a07dbaa1d535a1
tree4b84505adec044efa075e2f7aa14a91f2d0348af
parent6c360f9e496c90874e939a46511d0756766c4819
[OPENMP 4.0] Codegen for 'omp cancel' directive.

Add the next codegen for 'omp cancel' directive:
if (__kmpc_cancel()) {
  __kmpc_cancel_barrier();
  <exit construct>;
}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241429 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/cancel_codegen.cpp [new file with mode: 0644]