[flang-commits] [flang] [llvm] Adding parsing and semantic support for scan directive. (PR #102792)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Wed Aug 21 08:45:46 PDT 2024
================
@@ -1591,6 +1593,20 @@ bool OmpAttributeVisitor::Pre(
default:
break;
}
+ if (standaloneDir.v == llvm::omp::Directive::OMPD_scan) {
+ if ((std::get<parser::OmpClauseList>(x.t).v.size() != 1)) {
+ context_.Say(standaloneDir.source,
+ "Exactly one of `exclusive` or `inclusive` clause is expected"_err_en_US);
+ }
+ if (!parentContext ||
+ (llvm::omp::getDirectiveAssociation(parentContext->directive) !=
----------------
skatrak wrote:
Taskloop has loop association but it's not mentioned in the error message. I think either the message would have to be updated or the check would have to exclude it.
https://github.com/llvm/llvm-project/pull/102792
More information about the flang-commits
mailing list