================
@@ -430,6 +430,11 @@ class OpenACCSelfClause final
}
bool isConditionExprClause() const { return HasConditionExpr.has_value(); }
+ bool isVarListClause() const { return !isConditionExprClause(); }
+ bool isEmptySelfClause() const {
+ return (isConditionExprClause() && !hasConditionExpr()) ||
+ (!isConditionExprClause() && getVarList().empty());
----------------
erichkeane wrote:
These convenience functions made a lot of sense/got good use in codegen, so
they seemed sensible to add.
https://github.com/llvm/llvm-project/pull/135851
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits