[flang][flang-omp-report] Add flang-omp-report summarising script
authorJosh Mottley <Josh.Mottley@arm.com>
Thu, 21 Oct 2021 14:39:05 +0000 (14:39 +0000)
committerJosh Mottley <Josh.Mottley@arm.com>
Thu, 4 Nov 2021 17:43:17 +0000 (17:43 +0000)
commita0f29fec657e8511651e7c6179795ec057cdce35
tree20c6d9936612879d1c03dd371bbf09c598a2d64a
parentf1b79915e30dc3d4abcbbb188d4b45f4cf3250ca
[flang][flang-omp-report] Add flang-omp-report summarising script

The flang plugin ``flang-omp-report`` takes one fortran file in and returns a
YAML report file of the input file. This becomes an issue when you want to
analyse an entire project into one final report.
The purpose of this Python script is to generate a final YAML
report from all of the files generated by ``flang-omp-report``. The report can
have (currently) 2 formats; summary and log. Summary focuses on "summarizing"
all constructs and there clauses from all YAML files with a corresponding "count"
for each. Log instead combines the generated YAML files into one report in a
"cleaner" format. (Pseudo) Examples can be found for both formats at the top of
the script.

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

Co-Authored by: Ivan Zhechev <ivan.zhechev@arm.com>
flang/examples/flang-omp-report-plugin/requirements.txt [new file with mode: 0644]
flang/examples/flang-omp-report-plugin/yaml_summarizer.py [new file with mode: 0644]