[PATCH] D104928: [OMPIRBuilder] add minimalist reduction support

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 25 09:56:06 PDT 2021


ftynse created this revision.
ftynse added reviewers: jdoerfert, Meinersbur.
Herald added subscribers: rriddle, jfb, hiraditya.
ftynse requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1, stephenneuendorffer.
Herald added a project: LLVM.

This introduces a builder function for emitting IR performing reductions in
OpenMP. Reduction variable privatization and initialization to the
reduction-neutral value is expected to be handled separately. The caller
provides the reduction functions. Further commits can provide implementation of
reduction functions for the reduction operators defined in the OpenMP
specification.

This implementation was tested on an MLIR fork targeting OpenMP from C and
produced correct executable code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104928

Files:
  llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
  llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104928.354534.patch
Type: text/x-patch
Size: 29664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210625/3257ba8a/attachment.bin>


More information about the llvm-commits mailing list