[all-commits] [llvm/llvm-project] d733f2: [OpenMPIRBuilder] Support opaque pointers in reduc...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Dec 14 05:08:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d733f2c68c97f7cae9697cffd62aff0ebe79ce16
      https://github.com/llvm/llvm-project/commit/d733f2c68c97f7cae9697cffd62aff0ebe79ce16
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-14 (Tue, 14 Dec 2021)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  [OpenMPIRBuilder] Support opaque pointers in reduction handling

Make the reduction handling in OpenMPIRBuilder compatible with
opaque pointers by explicitly storing the element type in ReductionInfo,
and also passing it to the atomic reduction callback, as at least
the ones in the test need the type there.

This doesn't make things fully compatible yet, there are other
uses of element types in this class. I also left one
getPointerElementType() call in mlir, because I'm not familiar
with that area.

Differential Revison: https://reviews.llvm.org/D115638




More information about the All-commits mailing list