[all-commits] [llvm/llvm-project] 7ccaca: [flang][examples] Add missing CMake dependencies

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Mon Jan 24 01:36:18 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ccacaf4428d1712029594184baa6f617a51c340
      https://github.com/llvm/llvm-project/commit/7ccacaf4428d1712029594184baa6f617a51c340
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M flang/examples/CMakeLists.txt
    A flang/examples/FlangOmpReport/CMakeLists.txt
    A flang/examples/FlangOmpReport/FlangOmpReport.cpp
    A flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
    A flang/examples/FlangOmpReport/FlangOmpReportVisitor.h
    A flang/examples/FlangOmpReport/requirements.txt
    A flang/examples/FlangOmpReport/yaml_summarizer.py
    M flang/examples/PrintFlangFunctionNames/CMakeLists.txt
    R flang/examples/flang-omp-report-plugin/CMakeLists.txt
    R flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.cpp
    R flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.h
    R flang/examples/flang-omp-report-plugin/flang-omp-report.cpp
    R flang/examples/flang-omp-report-plugin/requirements.txt
    R flang/examples/flang-omp-report-plugin/yaml_summarizer.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list