[flang-commits] [flang] [Flang][OpenMP] Add some semantic checks for Linear clause (PR #111354)
Thirumalai Shaktivel via flang-commits
flang-commits at lists.llvm.org
Fri Dec 6 06:48:20 PST 2024
================
@@ -383,6 +383,21 @@ void OmpStructureChecker::CheckMultListItems() {
CheckMultipleOccurrence(
listVars, nontempNameList, clause->source, "NONTEMPORAL");
}
+
+ // Linear clause
+ for (auto [_, clause] : FindClauses(llvm::omp::Clause::OMPC_linear)) {
+ const auto &linearClause{std::get<parser::OmpClause::Linear>(clause->u)};
+ std::list<parser::Name> nameList;
+ common::visit(
+ common::visitors{
+ [&](const auto &u) {
+ std::copy(
+ u.names.begin(), u.names.end(), std::back_inserter(nameList));
+ },
+ },
----------------
Thirumalai-Shaktivel wrote:
Yea, sure.
https://github.com/llvm/llvm-project/pull/111354
More information about the flang-commits
mailing list