aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2024-12-19 06:11:36 -0800
committererichkeane <ekeane@nvidia.com>2024-12-19 12:21:50 -0800
commit4bbdb018a6cb564783cfb9c65ca82b81c6006bb6 (patch)
tree8840c290fc90202041b8da04eb9dd9f665ecf064 /clang/lib/CodeGen/CodeGenFunction.h
parent10d054e95413f0e98e4aeed9dbd4605f6f03b3fa (diff)
downloadllvm-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.h10
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
//===--------------------------------------------------------------------===//