[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-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] [OpenMP] Support for `nothing` in `metadirective` (PR #73690)

2023-11-28 Thread Deepak Eachempati via cfe-commits
@@ -12,7 +12,6 @@ int mixed() { x=d; } -// expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}} dreachem wrote: As I understand it, the `nothing` directive is not the equivalent of a null statement. It is an "ignore me" direc

[clang] [OpenMP] Support for `nothing` in `metadirective` (PR #73690)

2023-11-28 Thread Deepak Eachempati via cfe-commits
@@ -12,7 +12,6 @@ int mixed() { x=d; } -// expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}} dreachem wrote: @alexey-bataev That restriction shouldn't apply to the `nothing` directive. The `nothing` directive is not execu