[flang-commits] [flang] [Flang][MLIR][OpenMP] Create a deferred declare target marking process for Bridge.cpp (PR #78502)

via flang-commits flang-commits at lists.llvm.org
Thu Feb 22 07:41:44 PST 2024


================
@@ -49,6 +52,11 @@ struct Evaluation;
 struct Variable;
 } // namespace pft
 
+using OMPDeferredDeclTarInfo =
+    std::tuple<uint32_t /*mlir::omp::DeclareTargetCaptureClause*/,
+               uint32_t, /*mlir::omp::DeclareTargetDeviceType*/
+               Fortran::semantics::Symbol>;
----------------
agozillon wrote:

Can try to do, it was intended to mimic the existing DeclareTargetCapturePair we have already, I can maybe use the dialect enums, it depends how bothered we are about including the dialect header or forward declaring them (i recall forward declaring being a little bit awkward, but it's been a while)

https://github.com/llvm/llvm-project/pull/78502


More information about the flang-commits mailing list