[clang] [OpenACC][CIR] Handle 'declare' construct local lowering (&link clause) (PR #168793)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 21 10:41:59 PST 2025


================
@@ -11,13 +11,41 @@
 //===----------------------------------------------------------------------===//
 
 #include "CIRGenFunction.h"
+#include "mlir/Dialect/OpenACC/OpenACC.h"
 #include "clang/AST/DeclOpenACC.h"
 
 using namespace clang;
 using namespace clang::CIRGen;
 
+namespace {
+struct OpenACCDeclareCleanup final : EHScopeStack::Cleanup {
----------------
andykaylor wrote:

What are the expected interactions between OpenACC and exceptions? Are exceptions even allowed in an OpenACC region?

I realize this is needed for normal cleanup, but it made me think about broader implications.

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


More information about the cfe-commits mailing list