This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Add support for complex add reduction
ClosedPublic

Authored by clementval on Jul 11 2023, 1:03 PM.

Details

Summary

Add lowering support for reduction with the add operator
on complex type.

Diff Detail

Event Timeline

clementval created this revision.Jul 11 2023, 1:03 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
clementval requested review of this revision.Jul 11 2023, 1:03 PM

Use fir.addc

razvanlupusoru accepted this revision.Jul 12 2023, 12:11 PM

Looks good. Please consider replacing llvm::errs() line

flang/lib/Lower/OpenACC.cpp
749

Seems useful to have this information when TODO is invoked. But not being separate from TODO. Maybe better to do a stringstream to collect all values you want.

This revision is now accepted and ready to land.Jul 12 2023, 12:11 PM
clementval added inline comments.Jul 12 2023, 12:34 PM
flang/lib/Lower/OpenACC.cpp
749

Left over from debugging. I'll see if we can have it with the TODO

Rebase and change error message

This revision was landed with ongoing or failed builds.Jul 12 2023, 2:28 PM
This revision was automatically updated to reflect the committed changes.