[clang] [OpenACC][CIR] Handle 'declare' construct local lowering (&link clause) (PR #168793)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 21 10:47:30 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 {
----------------
erichkeane wrote:
I believe the standard is pretty silent on exceptions, but most devices would fail exceptions. This SHOULD interact fine with exceptions though, at least based on my understanding of cleanups. It at least does get in sync with all the other cleanups as far as I can tell.
https://github.com/llvm/llvm-project/pull/168793
More information about the cfe-commits
mailing list