[clang] [OpenACC] Implement Default clause for Compute Constructs (PR #88135)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 9 11:02:25 PDT 2024
================
@@ -52,8 +57,18 @@ class SemaOpenACC : public SemaBase {
SourceLocation getEndLoc() const { return ClauseRange.getEnd(); }
+ OpenACCDefaultClauseKind getDefaultClauseKind() const {
+ assert(ClauseKind == OpenACCClauseKind::Default);
+ return std::get<DefaultDetails>(Details).DefaultClauseKind;
+ }
+
void setLParenLoc(SourceLocation EndLoc) { LParenLoc = EndLoc; }
void setEndLoc(SourceLocation EndLoc) { ClauseRange.setEnd(EndLoc); }
+
+ void setDefaultDetails(OpenACCDefaultClauseKind DefKind) {
+ assert(ClauseKind == OpenACCClauseKind::Default);
----------------
alexey-bataev wrote:
Assertion message
https://github.com/llvm/llvm-project/pull/88135
More information about the cfe-commits
mailing list