[all-commits] [llvm/llvm-project] 000c6a: [OpenMP] Use the OpenMPIRBuilder for `omp cancel`

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Mon Dec 30 11:58:04 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 000c6a5038bc654946b4348e586d685077b06943
      https://github.com/llvm/llvm-project/commit/000c6a5038bc654946b4348e586d685077b06943
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2019-12-30 (Mon, 30 Dec 2019)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

  Log Message:
  -----------
  [OpenMP] Use the OpenMPIRBuilder for `omp cancel`

An `omp cancel parallel` needs to be emitted by the OpenMPIRBuilder if
the `parallel` was emitted by the OpenMPIRBuilder. This patch makes
this possible. The cancel logic is shared with the cancel barriers.
Testing is done via unit tests and the clang cancel_codegen.cpp file
once D70290 lands.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D71948




More information about the All-commits mailing list