[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
Fri Feb 2 03:57:13 PST 2024
================
@@ -5015,6 +5025,17 @@ class FirConverter : public Fortran::lower::AbstractConverter {
/// intended for device offloading has been detected
bool ompDeviceCodeFound = false;
+ /// Keeps track of symbols defined as declare target that could not be
+ /// processed at the time of lowering the declare target construct, such
+ /// as certain cases where interfaces are declared but not defined within
+ /// a module.
+ llvm::SmallVector<
+ std::tuple<uint32_t /*mlir::omp::DeclareTargetCaptureClause*/,
+ uint32_t, /*mlir::omp::DeclareTargetDeviceType*/
+ Fortran::semantics::Symbol>,
+ 2>
+ deferredDeclareTarget;
----------------
agozillon wrote:
It can indeed, I'll also try and make the previously suggested typedef more OpenMP explicit as well.
https://github.com/llvm/llvm-project/pull/78502
More information about the flang-commits
mailing list