[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-16 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev closed https://github.com/llvm/llvm-project/pull/92055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-16 Thread via cfe-commits
SunilKuravinakop wrote: Alexey, My colleagues (in my company), having contribution rights, are not around. Can you please merge this change to master? https://github.com/llvm/llvm-project/pull/92055 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-16 Thread Deepak Eachempati via cfe-commits
https://github.com/dreachem approved this pull request. https://github.com/llvm/llvm-project/pull/92055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-16 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG https://github.com/llvm/llvm-project/pull/92055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-15 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/92055 >From 6946c9f1285d5a27eafcdbf13f79c0641736198d Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 9 May 2024 12:09:15 -0500 Subject: [PATCH 1/5] Avoiding DeclRefExpr with "non_odr_use_unevaluate

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-15 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/92055 >From 6946c9f1285d5a27eafcdbf13f79c0641736198d Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 9 May 2024 12:09:15 -0500 Subject: [PATCH 1/4] Avoiding DeclRefExpr with "non_odr_use_unevaluate

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-14 Thread Deepak Eachempati via cfe-commits
@@ -208,4 +209,39 @@ int main(int argc, char **argv) { extern template int S::TS; extern template long S::TS; +// DUMP-LABEL: FunctionDecl {{.*}} implicit_firstprivate +void +implicit_firstprivate() { + +#pragma omp parallel num_threads(1) + { +int i = 0; +// DUMP: O

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-14 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/92055 >From 6946c9f1285d5a27eafcdbf13f79c0641736198d Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 9 May 2024 12:09:15 -0500 Subject: [PATCH 1/3] Avoiding DeclRefExpr with "non_odr_use_unevaluate

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-14 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/92055 >From 6946c9f1285d5a27eafcdbf13f79c0641736198d Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 9 May 2024 12:09:15 -0500 Subject: [PATCH 1/3] Avoiding DeclRefExpr with "non_odr_use_unevaluated" to de

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (SunilKuravinakop) Changes For every variable used under `#pragma omp task` directive (`DeclRefExpr`) an ImplicitPrivateVariable is created in the AST, if `private` or `shared` clauses are not present. If the variable has the propert

[clang] Avoid unevaluated implicit private (PR #92055)

2024-05-13 Thread via cfe-commits
https://github.com/SunilKuravinakop created https://github.com/llvm/llvm-project/pull/92055 For every variable used under `#pragma omp task` directive (`DeclRefExpr`) an ImplicitPrivateVariable is created in the AST, if `private` or `shared` clauses are not present. If the variable has the pro