[PATCH] D117016: [flang][examples] Add missing CMake dependencies

Andrzej Warzynski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 01:36:13 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7ccacaf4428d: [flang][examples] Add missing CMake dependencies (authored by awarzynski).

Changed prior to commit:
  https://reviews.llvm.org/D117016?vs=399279&id=402427#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117016/new/

https://reviews.llvm.org/D117016

Files:
  flang/examples/CMakeLists.txt
  flang/examples/FlangOmpReport/CMakeLists.txt
  flang/examples/FlangOmpReport/FlangOmpReport.cpp
  flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
  flang/examples/FlangOmpReport/FlangOmpReportVisitor.h
  flang/examples/FlangOmpReport/requirements.txt
  flang/examples/FlangOmpReport/yaml_summarizer.py
  flang/examples/PrintFlangFunctionNames/CMakeLists.txt
  flang/examples/flang-omp-report-plugin/CMakeLists.txt
  flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.cpp
  flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.h
  flang/examples/flang-omp-report-plugin/flang-omp-report.cpp
  flang/examples/flang-omp-report-plugin/requirements.txt
  flang/examples/flang-omp-report-plugin/yaml_summarizer.py


Index: flang/examples/flang-omp-report-plugin/CMakeLists.txt
===================================================================
--- flang/examples/flang-omp-report-plugin/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-add_llvm_library(
-  flangOmpReport
-  MODULE
-  flang-omp-report.cpp
-  flang-omp-report-visitor.cpp
-)
Index: flang/examples/PrintFlangFunctionNames/CMakeLists.txt
===================================================================
--- flang/examples/PrintFlangFunctionNames/CMakeLists.txt
+++ flang/examples/PrintFlangFunctionNames/CMakeLists.txt
@@ -1,7 +1,10 @@
 # TODO: Note that this is currently only available on Linux.
 # On Windows, we would also have to specify e.g. `PLUGIN_TOOL`.
-add_llvm_library(
-    flangPrintFunctionNames
+add_llvm_library(flangPrintFunctionNames
     MODULE
     PrintFlangFunctionNames.cpp
+
+    DEPENDS
+    acc_gen
+    omp_gen
 )
Index: flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
===================================================================
--- flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
+++ flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "flang-omp-report-visitor.h"
+#include "FlangOmpReportVisitor.h"
 #include "llvm/ADT/StringExtras.h"
 
 namespace Fortran {
Index: flang/examples/FlangOmpReport/FlangOmpReport.cpp
===================================================================
--- flang/examples/FlangOmpReport/FlangOmpReport.cpp
+++ flang/examples/FlangOmpReport/FlangOmpReport.cpp
@@ -15,7 +15,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "flang-omp-report-visitor.h"
+#include "FlangOmpReportVisitor.h"
 
 #include "flang/Frontend/CompilerInstance.h"
 #include "flang/Frontend/FrontendActions.h"
Index: flang/examples/FlangOmpReport/CMakeLists.txt
===================================================================
--- /dev/null
+++ flang/examples/FlangOmpReport/CMakeLists.txt
@@ -0,0 +1,9 @@
+add_llvm_library(flangOmpReport
+  MODULE
+  FlangOmpReport.cpp
+  FlangOmpReportVisitor.cpp
+
+  DEPENDS
+  acc_gen
+  omp_gen
+)
Index: flang/examples/CMakeLists.txt
===================================================================
--- flang/examples/CMakeLists.txt
+++ flang/examples/CMakeLists.txt
@@ -12,4 +12,4 @@
 )
 
 add_subdirectory(PrintFlangFunctionNames)
-add_subdirectory(flang-omp-report-plugin)
+add_subdirectory(FlangOmpReport)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117016.402427.patch
Type: text/x-patch
Size: 2531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220124/cfe1fbf3/attachment.bin>


More information about the llvm-commits mailing list