aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2025-01-21 11:27:23 -0800
committererichkeane <ekeane@nvidia.com>2025-03-03 07:48:29 -0800
commit5d7d66ba0d1ad6fcf1aefffd045eea88597f4614 (patch)
tree429d72a1b6237551fa964cbf16f910fb70373625 /clang/lib/CodeGen/CodeGenModule.h
parentccf1bfc1d50a70260d200a9137ab7924dac029a8 (diff)
downloadllvm-5d7d66ba0d1ad6fcf1aefffd045eea88597f4614.zip
llvm-5d7d66ba0d1ad6fcf1aefffd045eea88597f4614.tar.gz
llvm-5d7d66ba0d1ad6fcf1aefffd045eea88597f4614.tar.bz2
[OpenACC] Implement 'declare' construct AST/Sema
The 'declare' construct is the first of two 'declaration' level constructs, so it is legal in any place a declaration is, including as a statement, which this accomplishes by wrapping it in a DeclStmt. All clauses on this have a 'same scope' requirement, which this enforces as declaration context instead, which makes it possible to implement these as a template. The 'link' and 'device_resident' clauses are also added, which have some similar/small restrictions, but are otherwise pretty rote. This patch implements all of the above.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 4a269f6..5726d79 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1569,6 +1569,9 @@ public:
void EmitOMPDeclareMapper(const OMPDeclareMapperDecl *D,
CodeGenFunction *CGF = nullptr);
+ // Emit code for the OpenACC Declare declaration.
+ void EmitOpenACCDeclare(const OpenACCDeclareDecl *D, CodeGenFunction *CGF);
+
/// Emit a code for requires directive.
/// \param D Requires declaration
void EmitOMPRequiresDecl(const OMPRequiresDecl *D);