[all-commits] [llvm/llvm-project] 578419: [NFC][Flang][OpenMP] Refactor OpenMP.cpp::genOpenM...

DylanFleming-arm via All-commits all-commits at lists.llvm.org
Mon Aug 8 07:27:55 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5784199dd1c12be098d3ac8ca7b91dc719539bfd
  Author: Dylan Fleming <Dylan.Fleming at arm.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M flang/include/flang/Lower/OpenMP.h
    M flang/lib/Lower/OpenMP.cpp

  Log Message:
  [NFC][Flang][OpenMP] Refactor OpenMP.cpp::genOpenMPReduction

This patch serves two main purposes:
Firstly, to split some of the logic into a seperate method
to try and improve readability

On top of this, it aims to make creating the reductions more generic.
That way, subsequent patches adding reductions shouldn't need
to add a significant amount of extra logic checks, such as checking
for specific operators.

Reviewed By: awarzynski

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

More information about the All-commits mailing list