<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in reduction-allocatable.f90</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>7bb1151b - [Flang][OpenMP] Initial support for integer reduction in worksharing-loop</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/flang/test/Lower/OpenMP/Todo/reduction-allocatable.f90#7bb1151b</link>
        <description>[Flang][OpenMP] Initial support for integer reduction in worksharing-loopLower the Flang parse-tree containing OpenMP reductions to the OpenMPdialect. The OpenMP dialect models reductions with,1) A reduction declaration operation that specifies how to initialize, combine,and atomically combine private reduction variables.2) The OpenMP operation (like wsloop) that supports reductions has an array ofreduction accumulator variables (operands) and an array attribute of the samesize that points to the reduction declaration to be used for the reductionaccumulation.3) The OpenMP reduction operation that takes a value and an accumulator.This operation replaces the original reduction operation in the source.(1) is implemented by the `createReductionDecl` in OpenMP.cpp,(2) is implemented while creating the OpenMP operation,(3) is implemented by the `genOpenMPReduction` function in OpenMP.cpp, andcalled from Bridge.cpp. The implementation of (3) is not very robust.NOTE 1: The patch currently supports only reductions for integer type addition.NOTE 2: Only supports reduction in the worksharing loop.NOTE 3: Does not generate atomic combination region.NOTE 4: Other options for creating the reduction operation includea) having the reduction operation as a construct containing an assignmentand then handling it appropriately in the Bridge.b) we can modify `genAssignment` or `genFIR(AssignmentStmt)` in the Bridge tohandle OpenMP reduction but so far we have tried not to mix OpenMPand non-OpenMP code and this will break that.I will try (b) in a separate patch.NOTE 5: OpenMP dialect gained support for reduction with the patches:D105358, D107343. See https://discourse.llvm.org/t/rfc-openmp-reduction-support/3367for more details.Reviewed By: awarzynskiDifferential Revision: https://reviews.llvm.org/D130077Co-authored-by: Peixin-Qiao &lt;qiaopeixin@huawei.com&gt;

            List of files:
            /llvm-project-15.0.7/flang/test/Lower/OpenMP/Todo/reduction-allocatable.f90</description>
        <pubDate>Mon, 25 Jul 2022 18:21:17 +0000</pubDate>
        <dc:creator>Kiran Chandramohan &lt;kiran.chandramohan@arm.com&gt;</dc:creator>
    </item>
</channel>
</rss>
