Issue 58190
Summary [Flang][OpenMP] Implement robust lowering for Reduction
Labels openmp, flang:ir
Assignees
Reporter kiranchandramohan
    The current method for lowering depends on detecting operation patterns in the generate FIR. This is problematic due to a few reasons,
-> The patterns differ for variables like pointers and allocatable.
-> Deleting operations with FIROpBuilder does not seem to be appropriate.

There are probably a few alternative ways in which Reductions can be lowered. One approach is to detect that an Assignment Statement implies a reduction and then lower the Assignment Statement in a different way. This is explored in https://reviews.llvm.org/D130601 but needs more work for completion.

Another possibility is to create separate parse-tree nodes or _expression_ nodes to signify reduction.

It is also possible that the presence of higher level ops (https://reviews.llvm.org/D134285) might simplify this task.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to