diff options
author | erichkeane <ekeane@nvidia.com> | 2024-12-17 07:39:20 -0800 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2024-12-18 15:06:01 -0800 |
commit | e34cc7c99375c43e1698c78ec9150fa40c88d486 (patch) | |
tree | ac89a9bd53befe50c71804c750dc340c65a06719 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | e0526b0780f56eede09b05a859a93626ecdc6e4d (diff) | |
download | llvm-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.h | 5 |
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 //===--------------------------------------------------------------------===// |