[flang] [llvm] [flang][openmp] Adds Parser and Semantic Support for Interop Construct, and Init and Use Clauses. (PR #120584)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 13 08:09:37 PDT 2025
================
@@ -5578,6 +5578,98 @@ void OmpStructureChecker::Leave(const parser::DoConstruct &x) {
Base::Leave(x);
}
+void OmpStructureChecker::Enter(const parser::OpenMPInteropConstruct &x) {
+ bool isDependClauseOccured{false};
+ int targetCount{0}, targetSyncCount{0};
+ const auto &dir{std::get<parser::Verbatim>(x.t)};
+ std::list<std::string> ObjectNameList;
----------------
kparzysz wrote:
Don't use strings, use `const Symbol *` to identify objects. Also, use `std::set` instead of `list`, and check the result of the `insert` operation to see if the element was already in the set.
https://github.com/llvm/llvm-project/pull/120584
More information about the llvm-commits
mailing list