[flang][examples] Add missing CMake dependencies
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Tue, 11 Jan 2022 13:16:03 +0000 (13:16 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Mon, 24 Jan 2022 09:34:46 +0000 (09:34 +0000)
commit7ccacaf4428d1712029594184baa6f617a51c340
tree01ae4fcd1403311a2df980a9a5b54a4976e410dd
parent67346b43e0ed28047b3a4e40ea18d2218febcbf8
[flang][examples] Add missing CMake dependencies

Currently, everything that includes "flang/Parser/parse-tree.h" in Flang
depends on the `gen_acc` and `gen_omp` CMake targets (these targets
generate include files that are used in "parse-tree.h"). The examples in
Flang do use this header file and hence also depend on
`gen_acc`/`gen_omp`. This patch updates relevant CMake scripts
accordingly.

I've also taken the liberty to rename some of the example files so that
their names follow LLVM's coding guidelines.

Differential Revision: https://reviews.llvm.org/D117016
flang/examples/CMakeLists.txt
flang/examples/FlangOmpReport/CMakeLists.txt [new file with mode: 0644]
flang/examples/FlangOmpReport/FlangOmpReport.cpp [moved from flang/examples/flang-omp-report-plugin/flang-omp-report.cpp with 98% similarity]
flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp [moved from flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.cpp with 99% similarity]
flang/examples/FlangOmpReport/FlangOmpReportVisitor.h [moved from flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.h with 100% similarity]
flang/examples/FlangOmpReport/requirements.txt [moved from flang/examples/flang-omp-report-plugin/requirements.txt with 100% similarity]
flang/examples/FlangOmpReport/yaml_summarizer.py [moved from flang/examples/flang-omp-report-plugin/yaml_summarizer.py with 100% similarity]
flang/examples/PrintFlangFunctionNames/CMakeLists.txt
flang/examples/flang-omp-report-plugin/CMakeLists.txt [deleted file]