diff options
author | erichkeane <ekeane@nvidia.com> | 2024-12-19 06:11:36 -0800 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2024-12-19 12:21:50 -0800 |
commit | 4bbdb018a6cb564783cfb9c65ca82b81c6006bb6 (patch) | |
tree | 8840c290fc90202041b8da04eb9dd9f665ecf064 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 10d054e95413f0e98e4aeed9dbd4605f6f03b3fa (diff) | |
download | llvm-4bbdb018a6cb564783cfb9c65ca82b81c6006bb6.zip llvm-4bbdb018a6cb564783cfb9c65ca82b81c6006bb6.tar.gz llvm-4bbdb018a6cb564783cfb9c65ca82b81c6006bb6.tar.bz2 |
[OpenACC] Implement 'init' and 'shutdown' constructs
These two constructs are very simple and similar, and only support 3
different clauses, two of which are already implemented. This patch
adds AST nodes for both constructs, and leaves the device_num clause
unimplemented, but enables the other two.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 4d41391..1a5c42f 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -4123,6 +4123,16 @@ public: // but in the future we will implement some sort of IR. } + void EmitOpenACCInitConstruct(const OpenACCInitConstruct &S) { + // TODO OpenACC: Implement this. It is currently implemented as a 'no-op', + // but in the future we will implement some sort of IR. + } + + void EmitOpenACCShutdownConstruct(const OpenACCShutdownConstruct &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 //===--------------------------------------------------------------------===// |