[clang] [mlir] [OpenACC][CIR] Implement 'private' clause lowering. (PR #151360)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 31 06:31:33 PDT 2025
================
@@ -0,0 +1,522 @@
+// RUN: %clang_cc1 -fopenacc -triple x86_64-linux-gnu -Wno-openacc-self-if-potential-conflict -emit-cir -fclangir -triple x86_64-linux-pc %s -o - | FileCheck %s
+
+struct NoCopyConstruct {};
+
+struct CopyConstruct {
+ CopyConstruct() = default;
+ CopyConstruct(const CopyConstruct&);
+};
+
+struct NonDefaultCtor {
+ NonDefaultCtor();
----------------
erichkeane wrote:
Hi! Thanks! I definitely mis-understood a previous discussion. I'll work on getting the FE to do a default-init for the `init` section.
For `firstprivate`, it isn't clear why the `copy` is separate unless there is optimization opportunities, but having the FE put the copy operation in that region is easy enough.
https://github.com/llvm/llvm-project/pull/151360
More information about the cfe-commits
mailing list