]> granicus.if.org Git - clang/commit
[OPENMP 4.0] Fixed codegen for 'cancellation point' construct.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 3 Jul 2015 09:56:58 +0000 (09:56 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 3 Jul 2015 09:56:58 +0000 (09:56 +0000)
commit5b3372ae3fddd49bcc20220a0771b12723a9817a
tree3e7f2dda141a3646939dce83f3d1a19e30f9b4e1
parent71b2ce0add30ebdff499be5f0f6a3da99dc02a4d
[OPENMP 4.0] Fixed codegen for 'cancellation point' construct.

Generate the next code for 'cancellation point':
if (__kmpc_cancellationpoint()) {
  __kmpc_cancel_barrier();
  <exit construct>;
}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241336 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
test/OpenMP/barrier_codegen.cpp
test/OpenMP/cancellation_point_codegen.cpp
test/OpenMP/for_codegen.cpp
test/OpenMP/for_firstprivate_codegen.cpp
test/OpenMP/for_simd_codegen.cpp
test/OpenMP/ordered_codegen.cpp
test/OpenMP/parallel_for_codegen.cpp
test/OpenMP/parallel_for_simd_codegen.cpp
test/OpenMP/parallel_sections_codegen.cpp
test/OpenMP/sections_codegen.cpp
test/OpenMP/sections_firstprivate_codegen.cpp
test/OpenMP/single_codegen.cpp
test/OpenMP/single_firstprivate_codegen.cpp