[flang-commits] [flang] [Flang][MLIR][OpenMP] Create a deferred declare target marking process for Bridge.cpp (PR #78502)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Mon Feb 26 03:42:58 PST 2024
================
@@ -1168,6 +1168,31 @@ static mlir::omp::DeclareTargetDeviceType getDeclareTargetInfo(
return deviceType;
}
+static void collectDeferredDeclareTargets(
+ Fortran::lower::AbstractConverter &converter,
+ Fortran::semantics::SemanticsContext &semaCtx,
+ Fortran::lower::pft::Evaluation &eval,
+ const Fortran::parser::OpenMPDeclareTargetConstruct &declareTargetConstruct,
+ llvm::SmallVectorImpl<Fortran::lower::OMPDeferredDeclareTargetInfo>
+ &deferredDeclareTarget) {
+ llvm::SmallVector<DeclareTargetCapturePair, 0> symbolAndClause;
----------------
skatrak wrote:
I think there are 2 more instances of this (in previously-existing code) that we can update now that you've avoided the copy. I found one in `genOMP(..., OpenMPDeclareTargetConstruct)` and another in `getDeclareTargetFunctionDevice`.
https://github.com/llvm/llvm-project/pull/78502
More information about the flang-commits
mailing list