llvm-project
0de2ccab - [flang][OpenMP]Improve support for DECLARE REDUCTION (#127088)

Commit
1 year ago
[flang][OpenMP]Improve support for DECLARE REDUCTION (#127088) Part of the DECLARE REDUCTION was already supported by the parser, but the semantics to add the reduction identifier wasn't implemented. The semantics would not accept the name given by the reduction, so a few lines added to support that. Some tests were in place but not quite working, so fixed those up too. Adding new tests for unparsing and parse-tree, as well as checking the symbolic name being generated. Lowering of DECLARE REDUCTION is not supported in this patch, and a test that it hits the relevant TODO is in this patch (most of this was already existing, but not actually testing the TODO message).
Parents
Loading