[all-commits] [llvm/llvm-project] b72f1e: [openmp][mlir] Lower parallel if to new fork_call_...

David Truby via All-commits all-commits at lists.llvm.org
Fri Dec 9 06:25:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b72f1ec9fbb14cd7d2f5112d2c52ef5cdd1aa94a
      https://github.com/llvm/llvm-project/commit/b72f1ec9fbb14cd7d2f5112d2c52ef5cdd1aa94a
  Author: David Truby <david.truby at arm.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_csupport.cpp
    M openmp/runtime/test/lit.cfg
    M openmp/runtime/test/parallel/omp_parallel_if.c

  Log Message:
  -----------
  [openmp][mlir] Lower parallel if to new fork_call_if function.

This patch adds a new runtime function `fork_call_if` and uses that
to lower parallel if statements when going through OpenMPIRBuilder.

This fixes an issue where the OpenMPIRBuilder passes all arguments to
fork_call as a struct but this struct is not filled corretly in the
non-if branch by handling the fork inside the runtime.

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




More information about the All-commits mailing list