diff options
author | Erich Keane <ekeane@nvidia.com> | 2024-10-03 08:34:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 08:34:43 -0700 |
commit | d412cea8c4f26f451aee46641e384e8df62a5904 (patch) | |
tree | c2f31cd409d1b2b8a40614f99e34df5a60cd29ac /clang/lib/AST/ExprClassification.cpp | |
parent | 66227bf7ee2cd674e0306d9a1e9f1d86bc75123f (diff) | |
download | llvm-d412cea8c4f26f451aee46641e384e8df62a5904.zip llvm-d412cea8c4f26f451aee46641e384e8df62a5904.tar.gz llvm-d412cea8c4f26f451aee46641e384e8df62a5904.tar.bz2 |
[OpenACC] Implement 'tile' attribute AST (#110999)
The 'tile' clause shares quite a bit of the rules with 'collapse', so a
followup patch will add those tests/behaviors. This patch deals with
adding the AST node.
The 'tile' clause takes a series of integer constant expressions, or *.
The asterisk is now represented by a new OpenACCAsteriskSizeExpr node,
else this clause is very similar to others.
Diffstat (limited to 'clang/lib/AST/ExprClassification.cpp')
-rw-r--r-- | clang/lib/AST/ExprClassification.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp index 9d97633..3f37d06 100644 --- a/clang/lib/AST/ExprClassification.cpp +++ b/clang/lib/AST/ExprClassification.cpp @@ -471,6 +471,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { case Expr::CoyieldExprClass: return ClassifyInternal(Ctx, cast<CoroutineSuspendExpr>(E)->getResumeExpr()); case Expr::SYCLUniqueStableNameExprClass: + case Expr::OpenACCAsteriskSizeExprClass: return Cl::CL_PRValue; break; |