aboutsummaryrefslogtreecommitdiff
path: root/clang/tools
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2024-05-13 08:43:15 -0700
committererichkeane <ekeane@nvidia.com>2024-05-13 10:29:43 -0700
commit8ef2011b2cd3a8fc2ef8d6ea0facb1a39a0dd621 (patch)
treeb80e6f2c25fa98e917c9f9010da81228c5a1ed39 /clang/tools
parentb8f802f783db481ecfd953c9abe74212a8348aff (diff)
downloadllvm-8ef2011b2cd3a8fc2ef8d6ea0facb1a39a0dd621.zip
llvm-8ef2011b2cd3a8fc2ef8d6ea0facb1a39a0dd621.tar.gz
llvm-8ef2011b2cd3a8fc2ef8d6ea0facb1a39a0dd621.tar.bz2
Reapply "[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. This reverts commit 06f04b2e27f2586d3db2204ed4e54f8b78fea74e. This reapplies commit c4a9a374749deb5f2a932a7d4ef9321be1b2ae5d. The build failures were caused by the patch depending on the order of evaluation of arguments to a function. This reapplication separates out the capture of one of the values.
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/libclang/CIndex.cpp2
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) {