[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Sema checks, lowering with new format of MAP modifiers (PR #149137)

2025-07-16 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/149137 >From acc1a7d3da0d2bd5a60096a9f5dc27338342b952 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 16 Jul 2025 08:04:17 -0500 Subject: [PATCH 1/3] [flang][OpenMP] Sema checks, lowering with new format

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Generalize isOpenMPPrivatizingConstruct (PR #148654)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz edited https://github.com/llvm/llvm-project/pull/148654 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Generalize isOpenMPPrivatizingConstruct (PR #148654)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -3,8 +3,9 @@ ! Check that variables are not privatized twice when TASKGROUP is used. !CHECK-LABEL: func.func @_QPsub() { -!CHECK: omp.parallel { -!CHECK: %[[PAR_I:.*]]:2 = hlfir.declare %{{.*}} {uniq_name = "_QFsubEi"} +!CHECK: omp.parallel privat

[llvm-branch-commits] [llvm] [utils][TableGen] Make some non-bitmask enums iterable (PR #148647)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/148647 >From 82829a6f51fd96f720a64255442d96133a09b3dc Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 11 Jul 2025 13:28:02 -0500 Subject: [PATCH 1/2] [utils][TableGen] Make some non-bitmask enums iterabl

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Generalize isOpenMPPrivatizingConstruct (PR #148654)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Stack: - https://github.com/llvm/llvm-project/pull/148644 - https://github.com/llvm/llvm-project/pull/148647 - https://github.com/llvm/llvm-project/pull/148653 - https://github.com/llvm/llvm-project/pull/148654 (this PR) https://github.com/llvm/llvm-project/pull/148654 __

[llvm-branch-commits] [flang] [flang][OpenMP] Move extractOmpDirective to Utils.cpp, NFC (PR #148653)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Stack: - https://github.com/llvm/llvm-project/pull/148644 - https://github.com/llvm/llvm-project/pull/148647 - https://github.com/llvm/llvm-project/pull/148653 (this PR) - https://github.com/llvm/llvm-project/pull/148654 https://github.com/llvm/llvm-project/pull/148653 __

[llvm-branch-commits] [llvm] [utils][TableGen] Make some non-bitmask enums iterable (PR #148647)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Stack: - https://github.com/llvm/llvm-project/pull/148644 - https://github.com/llvm/llvm-project/pull/148647 (this PR) - https://github.com/llvm/llvm-project/pull/148653 - https://github.com/llvm/llvm-project/pull/148654 https://github.com/llvm/llvm-project/pull/148647 __

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Generalize isOpenMPPrivatizingConstruct (PR #148654)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: I have verified that 1052_0201 and 1052_0205 both pass with this change. https://github.com/llvm/llvm-project/pull/148654 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Generalize isOpenMPPrivatizingConstruct (PR #148654)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/148654 Instead of treating all block and all loop constructs as privatizing, actually check if the construct allows a privatizing clause. >From 4f58a01c96812fdb8086a9c9ad35f260451af8dc Mon Sep 17 00:00:00 2001 From:

[llvm-branch-commits] [flang] [flang][OpenMP] Move extractOmpDirective to Utils.cpp, NFC (PR #148653)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/148653 None >From d3ed6f948468c4d27c5ac436612e650f9460 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 14 Jul 2025 10:18:07 -0500 Subject: [PATCH] [flang][OpenMP] Move extractOmpDirective to Utils.c

[llvm-branch-commits] [llvm] [utils][TableGen] Make some non-bitmask enums iterable (PR #148647)

2025-07-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/148647 Additionally, add sentinel values ::First_ and ::Last_ to each one of those enums. This will allow using `enum_seq_inclusive` to generate the list of enum-typed values of any generated scoped (non-bitmask) en

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DISPATCH (PR #148008)

2025-07-11 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/148008 >From 1bcd318939236190a30cfb3259bcb9ca972f1fd3 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 10 Jul 2025 10:18:32 -0500 Subject: [PATCH] [flang][OpenMP] Use OmpDirectiveSpecification in DISPATCH

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DISPATCH (PR #148008)

2025-07-10 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Stack: - https://github.com/llvm/llvm-project/pull/148005 - https://github.com/llvm/llvm-project/pull/148008 (this PR) https://github.com/llvm/llvm-project/pull/148008 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DISPATCH (PR #148008)

2025-07-10 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/148008 Dispatch is the last construct (after ATOMIC and ALLOCATORS) where the associated block requires a specific form. Using OmpDirectiveSpecification for the begin and the optional end directives will make the str

[llvm-branch-commits] [flang] [flang][OpenMP] Issue a warning when parsing future directive spelling (PR #147765)

2025-07-09 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Stack: - https://github.com/llvm/llvm-project/pull/147722 - https://github.com/llvm/llvm-project/pull/147723 - https://github.com/llvm/llvm-project/pull/147765 (this PR) https://github.com/llvm/llvm-project/pull/147765 ___ llvm-branch-c

[llvm-branch-commits] [flang] [flang][OpenMP] Issue a warning when parsing future directive spelling (PR #147765)

2025-07-09 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/147765 OpenMP 6.0 introduced alternative spelling for some directives, with the previous spellings still allowed. Warn the user when a new spelling is encountered with OpenMP version set to an older value. >From 7b

[llvm-branch-commits] [flang] [flang][OpenMP] Recognize remaining OpenMP 6.0 spellings in parser (PR #147723)

2025-07-09 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/147723 >From 0e2c062d467d7d23ed88cdf14c2c3de740549ca6 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 7 Jul 2025 13:54:32 -0500 Subject: [PATCH 1/2] [flang][OpenMP] Recognize remaining OpenMP 6.0 spellin

[llvm-branch-commits] [flang] [flang][OpenMP] Recognize remaining OpenMP 6.0 spellings in parser (PR #147723)

2025-07-09 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/147723 >From 0e2c062d467d7d23ed88cdf14c2c3de740549ca6 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 7 Jul 2025 13:54:32 -0500 Subject: [PATCH] [flang][OpenMP] Recognize remaining OpenMP 6.0 spellings i

[llvm-branch-commits] [flang] [flang][OpenMP] Recognize remaining OpenMP 6.0 spellings in parser (PR #147723)

2025-07-09 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Stack: - https://github.com/llvm/llvm-project/pull/147722 - https://github.com/llvm/llvm-project/pull/147723 (this PR) https://github.com/llvm/llvm-project/pull/147723 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.

[llvm-branch-commits] [flang] [flang][OpenMP] Recognize remaining OpenMP 6.0 spellings in parser (PR #147723)

2025-07-09 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/147723 Parse OpenMP 6.0 spellings for directives that don't use OmpDirectiveNameParser. >From 0e2c062d467d7d23ed88cdf14c2c3de740549ca6 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 7 Jul 2025 13:54:32

[llvm-branch-commits] [clang] [clang][OpenMP] Issue a warning when parsing future directive spelling (PR #146933)

2025-07-03 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/146933 OpenMP 6.0 introduced alternative spelling for some directives, with the previous spellings still allowed. Warn the user when a new spelling is encountered with OpenMP version set to an older value. >From 5a

[llvm-branch-commits] [clang] [clang][OpenMP] Use DirectiveNameParser to parse directive names (PR #146779)

2025-07-03 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/146779 >From ab3f0cc9d240f12e07be452effa75b5c7d010d9b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 2 Jul 2025 11:25:00 -0500 Subject: [PATCH 1/2] [clang][OpenMP] Use DirectiveNameParser to parse dire

[llvm-branch-commits] [clang] [clang][OpenMP] Use DirectiveNameParser to parse directive names (PR #146779)

2025-07-03 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/146779 >From ab3f0cc9d240f12e07be452effa75b5c7d010d9b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 2 Jul 2025 11:25:00 -0500 Subject: [PATCH] [clang][OpenMP] Use DirectiveNameParser to parse directive

[llvm-branch-commits] [clang] [clang][OpenMP] Use DirectiveNameParser to parse directive names (PR #146779)

2025-07-02 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/146779 This simplifies the parsing code in clang quite a bit. >From ab3f0cc9d240f12e07be452effa75b5c7d010d9b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 2 Jul 2025 11:25:00 -0500 Subject: [PATCH] [c

[llvm-branch-commits] [flang] [NFC][flang] Move `ReductionProcessor` to `Lower/Support`. (PR #146025)

2025-06-27 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz approved this pull request. https://github.com/llvm/llvm-project/pull/146025 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [mlir] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-06-05 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz reopened https://github.com/llvm/llvm-project/pull/141772 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [mlir] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-06-05 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz closed https://github.com/llvm/llvm-project/pull/141772 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-29 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: The build failures are bogus: "header file changed between PCH build and use". They seem to be related to a recent change in llvm/Support/Compiler.h, but I don't know what the exact mechanism of failure is. https://github.com/llvm/llvm-project/pull/141766 __

[llvm-branch-commits] [llvm] [utils][TableGen] Unify converting names to upper-camel case (PR #141762)

2025-05-29 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -172,26 +197,13 @@ class Directive : public BaseRecord { // Clang uses a different format for names of its directives enum. std::string getClangAccSpelling() const { -std::string Name = Def->getValueAsString("name").str(); +StringRef Name = Def->getValueAsString

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-29 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH 1/7] [utils][TableGen] Handle versions on clause/directive

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-29 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -77,6 +77,19 @@ static std::string getIdentifierName(const Record *Rec, StringRef Prefix) { return Prefix.str() + BaseRecord(Rec).getFormattedName(); } +using RecordWithSpelling = std::pair; + +static std::vector +getSpellings(ArrayRef Records) { kparzys

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-29 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH 1/6] [utils][TableGen] Handle versions on clause/directive

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-29 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH 1/5] [utils][TableGen] Handle versions on clause/directive

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-29 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -77,6 +77,19 @@ static std::string getIdentifierName(const Record *Rec, StringRef Prefix) { return Prefix.str() + BaseRecord(Rec).getFormattedName(); } +using RecordWithSpelling = std::pair; + +static std::vector +getSpellings(ArrayRef Records) { kparzys

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH 1/4] [utils][TableGen] Handle versions on clause/directive

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH 1/3] [utils][TableGen] Handle versions on clause/directive

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH 1/2] [utils][TableGen] Handle versions on clause/directive

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH] [utils][TableGen] Handle versions on clause/directive sp

[llvm-branch-commits] [llvm] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: PR stack: 1. https://github.com/llvm/llvm-project/pull/141761 2. https://github.com/llvm/llvm-project/pull/141762 3. https://github.com/llvm/llvm-project/pull/141763 4. https://github.com/llvm/llvm-project/pull/141765 5. https://github.com/llvm/llvm-project/pull/141766 6. https://

[llvm-branch-commits] [llvm] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/141772 For background information see https://discourse.llvm.org/t/rfc-alternative-spellings-of-openmp-directives/85507 >From 8385ab954aa44a6b438450be2869f6d4614e2e2f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/141766 >From 2ef30aacee4d80c0e4a925aa5ba9416423d10b1b Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 27 May 2025 07:55:04 -0500 Subject: [PATCH] [utils][TableGen] Handle versions on clause/directive sp

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: PR stack: 1. https://github.com/llvm/llvm-project/pull/141761 2. https://github.com/llvm/llvm-project/pull/141762 3. https://github.com/llvm/llvm-project/pull/141763 4. https://github.com/llvm/llvm-project/pull/141765 5. https://github.com/llvm/llvm-project/pull/141766 (this PR)

[llvm-branch-commits] [llvm] [mlir] [utils][TableGen] Implement clause aliases as alternative spellings (PR #141765)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: PR stack: 1. https://github.com/llvm/llvm-project/pull/141761 2. https://github.com/llvm/llvm-project/pull/141762 3. https://github.com/llvm/llvm-project/pull/141763 4. https://github.com/llvm/llvm-project/pull/141765 (this PR) 5. https://github.com/llvm/llvm-project/pull/141766

[llvm-branch-commits] [llvm] [utils][TableGen] Treat clause aliases equally with names (PR #141763)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: PR stack: 1. https://github.com/llvm/llvm-project/pull/141761 2. https://github.com/llvm/llvm-project/pull/141762 3. https://github.com/llvm/llvm-project/pull/141763 (this PR) 4. https://github.com/llvm/llvm-project/pull/141765 5. https://github.com/llvm/llvm-project/pull/141766

[llvm-branch-commits] [llvm] [utils][TableGen] Unify converting names to upper-camel case (PR #141762)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: PR stack: 1. https://github.com/llvm/llvm-project/pull/141761 2. https://github.com/llvm/llvm-project/pull/141762 (this PR) 3. https://github.com/llvm/llvm-project/pull/141763 4. https://github.com/llvm/llvm-project/pull/141765 5. https://github.com/llvm/llvm-project/pull/141766

[llvm-branch-commits] [llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #141766)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/141766 In "getDirectiveName(Kind, Version)", return the spelling that corresponds to Version, and in "getDirectiveKindAndVersions(Name)" return the pair {Kind, VersionRange}, where VersionRange contains the minimum a

[llvm-branch-commits] [llvm] [utils][TableGen] Treat clause aliases equally with names (PR #141763)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/141763 The code in DirectiveEmitter that generates clause parsers sorted clause names to ensure that longer names were tried before shorter ones, in cases where a shorter name may be a prefix of a longer one. This ma

[llvm-branch-commits] [llvm] [utils][TableGen] Unify converting names to upper-camel case (PR #141762)

2025-05-28 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/141762 There were 3 different functions in DirectiveEmitter.cpp doing essentially the same thing: taking a name separated with _ or whitepace, and converting it to the upper-camel case. Extract that into a single fun

[llvm-branch-commits] [llvm] [utils][TableGen] Unify name qualifications in DirectiveEmitter (PR #140606)

2025-05-19 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Previous PR: https://github.com/llvm/llvm-project/pull/140605 https://github.com/llvm/llvm-project/pull/140606 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-

[llvm-branch-commits] [llvm] [utils][TableGen] Unify name qualifications in DirectiveEmitter (PR #140606)

2025-05-19 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/140606 Remove extraneous qualifications from names when - the name is explicitly enclosed by corresponding namespaces, and - the name is in a body of a function defined in corresponding namespaces. Otherwise add missi

[llvm-branch-commits] [clang] [clang][OpenMP] Improve handling of non-C/C++ directives (PR #139961)

2025-05-14 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Previous PR: https://github.com/llvm/llvm-project/pull/139960 https://github.com/llvm/llvm-project/pull/139961 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-

[llvm-branch-commits] [llvm] [llvm][OpenMP] Add "SourceLanguages" property to Directive (PR #139960)

2025-05-14 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Previous PR: https://github.com/llvm/llvm-project/pull/139958 Next PR: https://github.com/llvm/llvm-project/pull/139961 https://github.com/llvm/llvm-project/pull/139960 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm

[llvm-branch-commits] [clang] [clang][OpenMP] Improve handling of non-C/C++ directives (PR #139961)

2025-05-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/139961 The PR139793 added handling of the Fortran-only "workshare" directive, however there are more such directives, e.g. "allocators". Use the genDirectiveLanguages function to detect non-C/C++ directives instead o

[llvm-branch-commits] [llvm] [llvm][OpenMP] Add "SourceLanguages" property to Directive (PR #139960)

2025-05-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/139960 The official languages that OpenMP recognizes are C/C++ and Fortran. Some OpenMP directives are language-specific, some are C/C++-only, some are Fortran-only. Add a property to the TableGen definition of Dire

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139115 >From fa6e19481f448db273f84d270891e737ff021749 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 7 May 2025 15:32:08 -0500 Subject: [PATCH 1/5] [clang][OpenMP] Pass OpenMP version to getOpenMPDirec

[llvm-branch-commits] [flang] [flang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139131)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/139131 The OpenMP version is stored in LangOptions in SemanticsContext. Use the fallback version where SemanticsContext is unavailable (mostly in case of debug dumps). RFC: https://discourse.llvm.org/t/rfc-alternat

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -94,6 +94,10 @@ struct PrintingPolicy { /// The number of spaces to use to indent each line. unsigned Indentation : 8; + /// Version of the effective OpenMP spec (used to select directive name + /// spelling). + unsigned OpenMP : 8; + kparzysz wrote:

[llvm-branch-commits] [flang] [flang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139131)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139131 >From 9566bf6fd60d2b4f1dac86f6646002b2541e6736 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 7 May 2025 15:32:28 -0500 Subject: [PATCH 1/2] [flang][OpenMP] Pass OpenMP version to getOpenMPDirec

[llvm-branch-commits] [flang] [flang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139131)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139131 >From 9566bf6fd60d2b4f1dac86f6646002b2541e6736 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 7 May 2025 15:32:28 -0500 Subject: [PATCH 1/4] [flang][OpenMP] Pass OpenMP version to getOpenMPDirec

[llvm-branch-commits] [flang] [flang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139131)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139131 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz edited https://github.com/llvm/llvm-project/pull/139115 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -73,13 +73,16 @@ namespace { PrintingPolicy Policy; std::string NL; const ASTContext *Context; +unsigned Version; kparzysz wrote: Oops, you're right. Removed. https://github.com/llvm/llvm-project/pull/139115 ___

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139115 >From fa6e19481f448db273f84d270891e737ff021749 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 7 May 2025 15:32:08 -0500 Subject: [PATCH 1/6] [clang][OpenMP] Pass OpenMP version to getOpenMPDirec

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139115 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -965,13 +965,13 @@ void StmtPrinter::VisitOMPTeamsDirective(OMPTeamsDirective *Node) { void StmtPrinter::VisitOMPCancellationPointDirective( OMPCancellationPointDirective *Node) { Indent() << "#pragma omp cancellation point " - << getOpenMPDirectiveName(Node

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139115 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)

2025-05-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/139115 >From fa6e19481f448db273f84d270891e737ff021749 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 7 May 2025 15:32:08 -0500 Subject: [PATCH 1/2] [clang][OpenMP] Pass OpenMP version to getOpenMPDirec

[llvm-branch-commits] [flang] [flang][OpenMP] Overhaul implementation of ATOMIC construct (PR #137852)

2025-04-29 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Previous PR: https://github.com/llvm/llvm-project/pull/137521 https://github.com/llvm/llvm-project/pull/137852 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-

[llvm-branch-commits] [flang] [flang][OpenACC][OpenMP] Separate implementations of ATOMIC constructs (PR #137517)

2025-04-28 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Yes, it started as a copy, then I removed templates, and replaced type parameters with concrete types, and removed the "OmpAcc" from function names. https://github.com/llvm/llvm-project/pull/137517 ___ llvm-branch-commits mailing list

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Allow UPDATE clause to not have any arguments (PR #137521)

2025-04-27 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Previous PR: https://github.com/llvm/llvm-project/pull/137517 https://github.com/llvm/llvm-project/pull/137521 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-

[llvm-branch-commits] [flang] [flang][OpenACC][OpenMP] Separate implementations of ATOMIC constructs (PR #137517)

2025-04-27 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Previous PR: https://github.com/llvm/llvm-project/pull/137460 Next PR: https://github.com/llvm/llvm-project/pull/137521 https://github.com/llvm/llvm-project/pull/137517 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Allow UPDATE clause to not have any arguments (PR #137521)

2025-04-27 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/137521 The UPDATE clause can be specified on both ATOMIC and DEPOBJ directives. Currently, the ATOMIC directive has its own handling of it, and the definition of the UPDATE clause only supports its use in the DEPOBJ

[llvm-branch-commits] [flang] [flang][OpenACC][OpenMP] Separate implementations of ATOMIC constructs (PR #137517)

2025-04-27 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/137517 The OpenMP implementation of the ATOMIC construct will change in the near future to accommodate OpenMP 6.0. This patch separates the shared implementations to avoid interfering with OpenACC. >From 69869a7673c

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpMemoryOrderType enumeration in FAIL clause (PR #136313)

2025-04-22 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -4242,9 +4242,8 @@ struct OmpDeviceTypeClause { // OMP 5.2 15.8.3 extended-atomic, fail-clause -> //FAIL(memory-order) struct OmpFailClause { - WRAPPER_CLASS_BOILERPLATE( - OmpFailClause, common::Indirection); - CharBlock source; kparzysz wrote:

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpMemoryOrderType enumeration in FAIL clause (PR #136313)

2025-04-18 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/136313 Make the FAIL clause contain OmpMemoryOrderType enumeration instead of OmpClause. This simplifies the semantic checks of the FAIL clause. >From 8e9aeab1f66342575d56a7c676995e4b16c7ebdf Mon Sep 17 00:00:00 2001

[llvm-branch-commits] [flang] [flang][OpenMP] Extend common::AtomicDefaultMemOrderType enumeration (PR #136312)

2025-04-18 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/136312 >From 8df469018b0a1c09f45636364f96226b7c82d2c3 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 18 Apr 2025 09:06:37 -0500 Subject: [PATCH] [flang][OpenMP] Extend common::AtomicDefaultMemOrderType

[llvm-branch-commits] [flang] [flang][OpenMP] Extend common::AtomicDefaultMemOrderType enumeration (PR #136312)

2025-04-18 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/136312 Add "Acquire" and "Release", and rename it to OmpMemoryOrderType, since memory order type is a concept extending beyond the ATOMIC_DEFAULT_MEM_ORDER clause. When processing a REQUIRES directive (in rewrite-dir

[llvm-branch-commits] [clang] [clang][OpenMP] Add AST node for root of compound directive (PR #118878)

2025-03-25 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/118878 >From 1447ec21597f752b29e367a46f06eecdf9c81dd7 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 30 Oct 2024 13:34:21 -0500 Subject: [PATCH 1/2] [clang][OpenMP] Add AST node for root of compound di

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in standalone directives (PR #131163)

2025-03-14 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/131163 >From 01dd3f55995e507ddee61e80e3eb29e35f722c0f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 10 Mar 2025 15:42:42 -0500 Subject: [PATCH 1/4] [flang][OpenMP] Use OmpDirectiveSpecification in sta

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in standalone directives (PR #131163)

2025-03-13 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/131163 >From 01dd3f55995e507ddee61e80e3eb29e35f722c0f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 10 Mar 2025 15:42:42 -0500 Subject: [PATCH 1/3] [flang][OpenMP] Use OmpDirectiveSpecification in sta

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in standalone directives (PR #131163)

2025-03-13 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/131163 >From 01dd3f55995e507ddee61e80e3eb29e35f722c0f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 10 Mar 2025 15:42:42 -0500 Subject: [PATCH 1/3] [flang][OpenMP] Use OmpDirectiveSpecification in sta

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in standalone directives (PR #131163)

2025-03-13 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/131163 >From 01dd3f55995e507ddee61e80e3eb29e35f722c0f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 10 Mar 2025 15:42:42 -0500 Subject: [PATCH 1/2] [flang][OpenMP] Use OmpDirectiveSpecification in sta

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in standalone directives (PR #131163)

2025-03-13 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/131163 This uses OmpDirectiveSpecification in the rest of the standalone directives. >From 01dd3f55995e507ddee61e80e3eb29e35f722c0f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 10 Mar 2025 15:42:42 -

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse cancel-directive-name as clause (PR #130146)

2025-03-07 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/130146 >From 98df18461bb06afa06b8968b157a3c5a5cf50324 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 6 Mar 2025 08:51:34 -0600 Subject: [PATCH 1/4] [flang][OpenMP] Parse cancel-directive-name as clause

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse cancel-directive-name as clause (PR #130146)

2025-03-07 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/130146 >From 98df18461bb06afa06b8968b157a3c5a5cf50324 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 6 Mar 2025 08:51:34 -0600 Subject: [PATCH 1/3] [flang][OpenMP] Parse cancel-directive-name as clause

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse cancel-directive-name as clause (PR #130146)

2025-03-07 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/130146 >From 98df18461bb06afa06b8968b157a3c5a5cf50324 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 6 Mar 2025 08:51:34 -0600 Subject: [PATCH 1/2] [flang][OpenMP] Parse cancel-directive-name as clause

[llvm-branch-commits] [flang] [flang][OpenMP] Accept old FLUSH syntax in METADIRECTIVE (PR #130122)

2025-03-06 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/130122 >From bf56b8c80a0f1a7e06dcd3e898172c27e5afabf5 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 5 Mar 2025 08:24:30 -0600 Subject: [PATCH 1/3] [flang][OpenMP] Accept old FLUSH syntax in METADIRECTI

[llvm-branch-commits] [flang] [flang][OpenMP] Accept old FLUSH syntax in METADIRECTIVE (PR #130122)

2025-03-06 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/130122 >From bf56b8c80a0f1a7e06dcd3e898172c27e5afabf5 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 5 Mar 2025 08:24:30 -0600 Subject: [PATCH 1/2] [flang][OpenMP] Accept old FLUSH syntax in METADIRECTI

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse cancel-directive-name as clause (PR #130146)

2025-03-06 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/130146 >From 98df18461bb06afa06b8968b157a3c5a5cf50324 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 6 Mar 2025 08:51:34 -0600 Subject: [PATCH 1/2] [flang][OpenMP] Parse cancel-directive-name as clause

[llvm-branch-commits] [flang] [flang][OpenMP] Semantic checks for context selectors (PR #123243)

2025-01-29 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Ping... This is a part of METADIRECTIVE support. https://github.com/llvm/llvm-project/pull/123243 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commi

[llvm-branch-commits] [flang] [flang][OpenMP] Handle directive arguments in OmpDirectiveSpecifier (PR #124278)

2025-01-24 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: Summary of code changes: - Remove the indirection from `std::optional>>` inside OmpDirectiveSpecifier. The type with indirection was not convertible to `std::optional`, which is a relatively useful abstraction. The consequence of that was that the definition of `OmpDirectiveS

[llvm-branch-commits] [flang] [flang][OpenMP] Handle directive arguments in OmpDirectiveSpecifier (PR #124278)

2025-01-24 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/124278 Implement parsing and symbol resolution for directives that take arguments. There are a few, and most of them take objects. Special handling is needed for two that take more specialized arguments: DECLARE MAPP

[llvm-branch-commits] [flang] [flang][OpenMP] Parse METADIRECTIVE in specification part (PR #123397)

2025-01-18 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/123397 >From 7fa026c6561020669f42b94fb474648f59fb1e7a Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 17 Jan 2025 15:04:52 -0600 Subject: [PATCH 1/2] [flang][OpenMP] Parse METADIRECTIVE in specification

[llvm-branch-commits] [flang] [flang][OpenMP] Parse METADIRECTIVE in specification part (PR #123397)

2025-01-17 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/123397 Add METADIRECTIVE to the OpenMP declarative constructs as well. Emit a TODO error for both declarative and executable cases. >From 7fa026c6561020669f42b94fb474648f59fb1e7a Mon Sep 17 00:00:00 2001 From: Krzysz

[llvm-branch-commits] [flang] [flang][OpenMP] Semantic checks for context selectors (PR #123243)

2025-01-16 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/123243 >From 109df33fd4528dd1049544516949b46e214b72d3 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 7 Jan 2025 13:03:18 -0600 Subject: [PATCH 1/2] [flang][OpenMP] Semantic checks for context selectors

[llvm-branch-commits] [flang] [flang][OpenMP] Semantic checks for context selectors (PR #123243)

2025-01-16 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/123243 This implements checks of the validity of context set selectors and trait selectors, plus the types of trait properties. Clause properties are also validated, but not name or extension properties. >From 109df

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse WHEN, OTHERWISE, MATCH clauses plus METADIRECTIVE (PR #121817)

2025-01-16 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -214,6 +214,11 @@ class AssociatedLoopChecker { }; bool OmpStructureChecker::CheckAllowedClause(llvmOmpClause clause) { + // Do not do clause checks while processing METADIRECTIVE. kparzysz wrote: Done. https://github.com/llvm/llvm-project/pull/121817 __

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse WHEN, OTHERWISE, MATCH clauses plus METADIRECTIVE (PR #121817)

2025-01-16 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -845,7 +851,8 @@ def OMP_Metadirective : Directive<"metadirective"> { VersionedClause, ]; let allowedOnceClauses = [ -VersionedClause, +VersionedClause, +VersionedClause, kparzysz wrote: I added a parser test for DEFAULT. https://github

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse WHEN, OTHERWISE, MATCH clauses plus METADIRECTIVE (PR #121817)

2025-01-16 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/121817 >From fe3ec47965d5f970e26f9f729a21b61acf366053 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 12 Dec 2024 15:26:26 -0600 Subject: [PATCH 1/3] [flang][OpenMP] Parse WHEN, OTHERWISE, MATCH clauses

[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Parse WHEN, OTHERWISE, MATCH clauses plus METADIRECTIVE (PR #121817)

2025-01-16 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -265,6 +265,7 @@ def OMPC_Map : Clause<"map"> { let flangClass = "OmpMapClause"; } def OMPC_Match : Clause<"match"> { + let flangClass = "OmpMatchClause"; kparzysz wrote: No, we don't have DECLARE VARIANT yet. https://github.com/llvm/llvm-project/pull/1

  1   2   3   4   >