[clang] [OpenACC] Implement beginning parts of the 'parallel' Sema impl (PR #81659)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 07:07:43 PST 2024


================
@@ -13662,3 +13663,8 @@ StringRef ASTContext::getCUIDHash() const {
   CUIDHash = llvm::utohexstr(llvm::MD5Hash(LangOpts.CUID), /*LowerCase=*/true);
   return CUIDHash;
 }
+
+void ASTContext::setOpenACCStructuredBlock(OpenACCComputeConstruct *C,
+                                           Stmt *S) {
+  C->setStructuredBlock(S);
+}
----------------
erichkeane wrote:

So my concern with that, is it requires delaying the construction of the Compute Construct until after we've parsed the Structured Block, which I thought it would be useful to be able to refer to when enforcing other rules.  I'll work through to do it this patch, but we might have ourselves needing to bring this back in the future.

https://github.com/llvm/llvm-project/pull/81659


More information about the cfe-commits mailing list