[flang-commits] [flang] Adding parsing and semantic check support for omp masked (PR #91432)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Wed May 8 05:00:33 PDT 2024
================
@@ -50,6 +52,7 @@ template <typename T> class DirectiveAttributeVisitor {
Symbol::Flag defaultDSA{Symbol::Flag::AccShared}; // TODOACC
std::map<const Symbol *, Symbol::Flag> objectWithDSA;
bool withinConstruct{false};
+ std::optional<int64_t> maskedTId;
----------------
skatrak wrote:
It appears that we don't really need to store this to check anything, so the `SetMaskedTId` and `GetMaskedTId` functions are not necessary either at this stage. So, If I'm not wrong, these MASKED-related constructs could also just be treated as regular block constructs (no need for special cases in `Pre` and `Post`).
Please do let me know if you don't agree and you had some later uses planned for this.
https://github.com/llvm/llvm-project/pull/91432
More information about the flang-commits
mailing list