[clang] [OpenACC] Implement 'num_workers' clause for compute constructs (PR #89151)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 18 06:56:06 PDT 2024
================
@@ -156,6 +156,64 @@ class OpenACCSelfClause : public OpenACCClauseWithCondition {
Expr *ConditionExpr, SourceLocation EndLoc);
};
+/// Represents one of a handful of classes that have integer expressions.
+/// Semantically, many only permit a single expression, with a few that permit
+/// up to 3.
+class OpenACCClauseWithIntExprs : public OpenACCClauseWithParams {
+ llvm::SmallVector<Expr *> IntExprs;
----------------
alexey-bataev wrote:
Why do you need a vector then?
https://github.com/llvm/llvm-project/pull/89151
More information about the cfe-commits
mailing list