diff options
author | erichkeane <ekeane@nvidia.com> | 2025-03-03 10:26:53 -0800 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2025-03-03 13:57:23 -0800 |
commit | d5cec386c14ac46ee252da29f5bd766db0adb6d0 (patch) | |
tree | f0bbeafbdc203d14cfa33bfd3c499e752b0e5ba2 /clang/lib/Sema/SemaExceptionSpec.cpp | |
parent | d6599fc3b9e1cf1659999e8a755ae1d68bc3b4b3 (diff) | |
download | llvm-d5cec386c14ac46ee252da29f5bd766db0adb6d0.zip llvm-d5cec386c14ac46ee252da29f5bd766db0adb6d0.tar.gz llvm-d5cec386c14ac46ee252da29f5bd766db0adb6d0.tar.bz2 |
[OpenACC] Implement 'cache' construct AST/Sema
This statement level construct takes no clauses and has no associated
statement, and simply labels a number of array elements as valid for
caching. The implementation here is pretty simple, but it is a touch of
a special case for parsing, so the parsing code reflects that.
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExceptionSpec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index a8eb241..f358d83 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -1407,6 +1407,7 @@ CanThrowResult Sema::canThrow(const Stmt *S) { case Stmt::OpenACCEnterDataConstructClass: case Stmt::OpenACCExitDataConstructClass: case Stmt::OpenACCWaitConstructClass: + case Stmt::OpenACCCacheConstructClass: case Stmt::OpenACCInitConstructClass: case Stmt::OpenACCShutdownConstructClass: case Stmt::OpenACCSetConstructClass: |