Skip to content

Commit 75c3105

Browse files
committed
[flang] Semantic checks for OpenMP combined constructs.
Summary: This includes a refactor of the existing combined construct checks that were present, as well as adding the remaining combined constructs that had not been implemented yet. Reviewers: jdoerfert Subscribers: yaxunl, guansong, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77812
1 parent b547e1a commit 75c3105

File tree

5 files changed

+785
-94
lines changed

5 files changed

+785
-94
lines changed

flang/include/flang/Common/enum-set.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ template <typename ENUM, std::size_t BITS> class EnumSet {
111111
return result;
112112
}
113113

114+
constexpr EnumSet operator+(enumerationType v) const {
115+
return {*this | EnumSet{v}};
116+
}
117+
constexpr EnumSet operator-(enumerationType v) const {
118+
return {*this & ~EnumSet{v}};
119+
}
120+
114121
constexpr bool operator==(const EnumSet &that) const {
115122
return bitset_ == that.bitset_;
116123
}

0 commit comments

Comments
 (0)