aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2024-12-17 07:39:20 -0800
committererichkeane <ekeane@nvidia.com>2024-12-18 15:06:01 -0800
commite34cc7c99375c43e1698c78ec9150fa40c88d486 (patch)
treeac89a9bd53befe50c71804c750dc340c65a06719 /clang/lib/CodeGen/CodeGenFunction.h
parente0526b0780f56eede09b05a859a93626ecdc6e4d (diff)
downloadllvm-e34cc7c99375c43e1698c78ec9150fa40c88d486.zip
llvm-e34cc7c99375c43e1698c78ec9150fa40c88d486.tar.gz
llvm-e34cc7c99375c43e1698c78ec9150fa40c88d486.tar.bz2
[OpenACC] Implement 'wait' construct
The arguments to this are the same as for the 'wait' clause, so this reuses all of that infrastructure. So all this has to do is support a pair of clauses that are already implemented (if and async), plus create an AST node. This patch does so, and adds proper testing.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 092d553..847999c 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -4118,6 +4118,11 @@ public:
EmitStmt(S.getStructuredBlock());
}
+ void EmitOpenACCWaitConstruct(const OpenACCWaitConstruct &S) {
+ // TODO OpenACC: Implement this. It is currently implemented as a 'no-op',
+ // but in the future we will implement some sort of IR.
+ }
+
//===--------------------------------------------------------------------===//
// LValue Expression Emission
//===--------------------------------------------------------------------===//