[PATCH] D91159: [flang][openmp] Add General Semantic Checks for Allocate Directive
Valentin Clement via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 06:50:24 PST 2021
clementval added inline comments.
================
Comment at: flang/lib/Semantics/resolve-directives.cpp:369
+ bool IsInsideTargetDirective();
void ResolveOmpObjectList(const parser::OmpObjectList &, Symbol::Flag);
----------------
Would be even nicer to have a generic function like `bool IsNestedInDirective(const llvm::omg::Directive dir)` so it can be reused later for other check. Might even be in the common class For OpenACC and OpenMP.
No need to do it in this revision but just keep the idea in mind.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91159/new/
https://reviews.llvm.org/D91159
More information about the llvm-commits
mailing list