diff options
author | erichkeane <ekeane@nvidia.com> | 2024-05-09 09:44:35 -0700 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2024-05-13 07:50:19 -0700 |
commit | c4a9a374749deb5f2a932a7d4ef9321be1b2ae5d (patch) | |
tree | 272f9938e806632af1a4ee947a46bd0021d628d6 /clang/tools | |
parent | d8197728145137e2aa00f3b2ed69914f48851d09 (diff) | |
download | llvm-c4a9a374749deb5f2a932a7d4ef9321be1b2ae5d.zip llvm-c4a9a374749deb5f2a932a7d4ef9321be1b2ae5d.tar.gz llvm-c4a9a374749deb5f2a932a7d4ef9321be1b2ae5d.tar.bz2 |
[OpenACC] device_type clause Sema for Compute constructs
device_type, also spelled as dtype, specifies the applicability of the
clauses following it, and takes a series of identifiers representing the
architectures it applies to. As we don't have a source for the valid
architectures yet, this patch just accepts all.
Semantically, this also limits the list of clauses that can be applied
after the device_type, so this implements that as well.
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/libclang/CIndex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index ae6659f..8b9417f 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -2857,6 +2857,8 @@ void OpenACCClauseEnqueue::VisitWaitClause(const OpenACCWaitClause &C) { for (Expr *QE : C.getQueueIdExprs()) Visitor.AddStmt(QE); } +void OpenACCClauseEnqueue::VisitDeviceTypeClause( + const OpenACCDeviceTypeClause &C) {} } // namespace void EnqueueVisitor::EnqueueChildren(const OpenACCClause *C) { |