[OPENMP 4.0] Codegen for 'cancellation point' directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 2 Jul 2015 04:17:07 +0000 (04:17 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 2 Jul 2015 04:17:07 +0000 (04:17 +0000)
commit0f34da12e42311e943186622412f64d0a93ccf2a
treea509bd71939516957ff7efb6ff57c4486862cb64
parent458d74421b002dd670e1ac5f961b703cfb3749b4
[OPENMP 4.0] Codegen for 'cancellation point' directive.

The next code is generated for this construct:
```
if (__kmpc_cancellationpoint(ident_t *loc, kmp_int32 global_tid, kmp_int32 cncl_kind) != 0)
  <exit from outer innermost construct>;
```

llvm-svn: 241239
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/OpenMP/cancellation_point_codegen.cpp [new file with mode: 0644]