[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread via cfe-commits
Sirraide wrote: > As I mentioned, I’m going to make a follow-up pr to this soon so we can > discuss what to do with `__attribute__((assume))`/`[[clang::assume]]`. Just opened a pr for this: #84934 https://github.com/llvm/llvm-project/pull/84582 ___

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread via cfe-commits
Sirraide wrote: As I mentioned, I’m going to make a follow-up pr to this soon so we can discuss what to do with `__attribute__((assume))`/`[[clang::assume]]`. https://github.com/llvm/llvm-project/pull/84582 ___ cfe-commits mailing list cfe-commits@lis

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/84582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/84582 >From d436f7fefb967f050220a8ede6d05c8e26f363b3 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Fri, 8 Mar 2024 23:54:14 +0100 Subject: [PATCH 1/4] [Clang] [Parser] Support [[omp::assume]] --- clang/include/clang

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread Aaron Ballman via cfe-commits
@@ -192,6 +192,8 @@ Removed Compiler Flags Attribute Changes in Clang -- +- Added support for the `[[omp::assume]]` attribute. AaronBallman wrote: I'd recommend adding a section to clang's release notes for OpenMP in that case. https:

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread via cfe-commits
@@ -192,6 +192,8 @@ Removed Compiler Flags Attribute Changes in Clang -- +- Added support for the `[[omp::assume]]` attribute. Sirraide wrote: > This should probably go under an OpenMP-specific section as it relates more > to OpenMP t

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread Aaron Ballman via cfe-commits
@@ -192,6 +192,8 @@ Removed Compiler Flags Attribute Changes in Clang -- +- Added support for the `[[omp::assume]]` attribute. AaronBallman wrote: This should probably go under an OpenMP-specific section as it relates more to OpenMP t

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. The precommit CI failure is not an actual issue, so LGTM with a suggestion for the release note. Thank you for this! https://github.com/llvm/llvm-project/pull/84582 ___ cfe-commits mailing li

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-12 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/84582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-11 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/84582 >From d436f7fefb967f050220a8ede6d05c8e26f363b3 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Fri, 8 Mar 2024 23:54:14 +0100 Subject: [PATCH 1/3] [Clang] [Parser] Support [[omp::assume]] --- clang/include/clang

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-11 Thread via cfe-commits
@@ -12,3 +14,18 @@ void f9(void) __attribute__((assume("omp_no_openmp", "omp_no_openmp"))); // expe int g1 __attribute__((assume(0))); // expected-error {{expected string literal as argument of 'assume' attribute}} int g2 __attribute__((assume("omp_no_openmp"))); // expected

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-11 Thread Alexey Bataev via cfe-commits
@@ -12,3 +14,18 @@ void f9(void) __attribute__((assume("omp_no_openmp", "omp_no_openmp"))); // expe int g1 __attribute__((assume(0))); // expected-error {{expected string literal as argument of 'assume' attribute}} int g2 __attribute__((assume("omp_no_openmp"))); // expected

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-10 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/84582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-09 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/84582 >From d436f7fefb967f050220a8ede6d05c8e26f363b3 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Fri, 8 Mar 2024 23:54:14 +0100 Subject: [PATCH 1/2] [Clang] [Parser] Support [[omp::assume]] --- clang/include/clang

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/84582 >From d436f7fefb967f050220a8ede6d05c8e26f363b3 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Fri, 8 Mar 2024 23:54:14 +0100 Subject: [PATCH 1/2] [Clang] [Parser] Support [[omp::assume]] --- clang/include/clang

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread via cfe-commits
Sirraide wrote: Ok yeah, good, looks like that’s the right attribute to map `[[omp::assume]]` to. https://github.com/llvm/llvm-project/pull/84582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: > One more thing: this is just a different spelling for what was previously > already exposed as `__attribute__((assume))`; I’m not sure if/how familiar > you are with that one, but I hope its semantics align with what > `[[omp::assume]]` is supposed to do. I’m asking beca

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread via cfe-commits
Sirraide wrote: > Currently only for C++11 and higher Ok, good; that’ll make this easier. > https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5-2.pdf, > pages 49-50 Thanks. At a glance, it looks like there are more things that also still need to be implemented in the fronten

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: > @alexey-bataev I have a few more questions about `[[omp::assume]]`: > > - Is this supported in C? Because the `[[]]` spelling is only officially > available in C23 and later (we *do* support it in earlier language modes, but > users will get a warning if `-pedantic` is p

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: > @alexey-bataev I have a few more questions about `[[omp::assume]]`: > > - Is this supported in C? Because the `[[]]` spelling is only officially > available in C23 and later (we *do* support it in earlier language modes, but > users will get a warning if `-pedantic` is p

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread via cfe-commits
Sirraide wrote: One more thing: this is just a different spelling for what was previously already exposed as `__attribute__((assume))`; I’m not sure if/how familiar you are with that one, but I hope its semantics align with what `[[omp::assume]]` is supposed to do. I’m asking because I’m not t

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread via cfe-commits
Sirraide wrote: @alexey-bataev I have a few more questions about `[[omp::assume]]`: - Is this supported in C? Because the `[[]]` spelling is only officially available in C23 and later (we *do* support it in earlier language modes, but users will get a warning if `-pedantic` is passed) - Is ther

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-openmp Author: None (Sirraide) Changes This pr implements the `[[omp::assume]]` spelling for the `__attribute__((assume))` attribute. It does not change anything about how that attribute is handled by the rest of Clang. This pr is only *not* meant for

[clang] [Clang] [Parser] Support [[omp::assume]] (PR #84582)

2024-03-08 Thread via cfe-commits
https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/84582 This pr implements the `[[omp::assume]]` spelling for the `__attribute__((assume))` attribute. It does not change anything about how that attribute is handled by the rest of Clang. This pr is only *not* meant