[flang-commits] [flang] [Flang][MLIR][OpenMP] Create a deferred declare target marking process for Bridge.cpp (PR #78502)
Kareem Ergawy via flang-commits
flang-commits at lists.llvm.org
Fri Jan 19 02:16:48 PST 2024
================
@@ -84,6 +87,19 @@ bool isOpenMPTargetConstruct(const parser::OpenMPConstruct &);
bool isOpenMPDeviceDeclareTarget(Fortran::lower::AbstractConverter &,
Fortran::lower::pft::Evaluation &,
const parser::OpenMPDeclarativeConstruct &);
+void gatherDeferredDeclareTargets(
+ Fortran::lower::AbstractConverter &, Fortran::lower::pft::Evaluation &,
+ const parser::OpenMPDeclarativeConstruct &,
+ llvm::SmallVectorImpl<std::tuple<
+ uint32_t /*mlir::omp::DeclareTargetCaptureClause*/, uint32_t,
+ /*mlir::omp::DeclareTargetDeviceType*/ Fortran::semantics::Symbol>> &);
+bool markDelayedDeclareTargetFunctions(
----------------
ergawy wrote:
Maybe we should either have type-alias for the `tuple` at least to give some context on what it represents? This way, we can also reuse the alias in both methods.
Or instead of a `tuple` a small struct?
https://github.com/llvm/llvm-project/pull/78502
More information about the flang-commits
mailing list