https://github.com/ivanradanov closed
https://github.com/llvm/llvm-project/pull/113082
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From a0f2307ce374355449877178cea70049b9e861d5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 17:33:52 +0900
Subject: [PATCH] Add workshare loop wrapper lowerings
Bufferize test
B
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 291b4259578a2790094743c8301be29adade7a11 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH] [flang][omp] Emit omp.workshare in frontend
Fix lower
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 382728a26f57d403b9566fa57a13de84fe3d6979 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Thu, 22 Aug 2024 18:07:05 +0900
Subject: [PATCH] [flang] Introduce ws loop nest generation for HLFIR lo
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
error: too big or took too long to generate
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/
ivanradanov wrote:
@tblah I think they are in a good state - I just need a review on this one -
the other ones are approved.
https://github.com/llvm/llvm-project/pull/101446
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https
ivanradanov wrote:
@tblah It is ready for review, I had just forgotten to take the [WIP] in the
title away, sorry for that.
https://github.com/llvm/llvm-project/pull/104748
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https:
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/104748
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -227,11 +227,11 @@ void createHLFIRToFIRPassPipeline(mlir::PassManager &pm,
bool enableOpenMP,
hlfir::createOptimizedBufferization);
}
pm.addPass(hlfir::createLowerHLFIROrderedAssignments());
+ if (enableOpenMP)
+pm.addPass(
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/113082
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
ivanradanov wrote:
I think there are two main approaches:
### Have alternative intrinsic implementations in their own runtime library
e.g. the version of assignment for the workshare construct will be something
like this
```
workshare_Assign(a, b) {
#pragma omp for
for i from 0 to size
ivanradanov wrote:
I have rebased this on the latest main and also marked the follow up
https://github.com/llvm/llvm-project/pull/104748 as ready for review. This
follow up PR contains code and tests which are needed to fully check this
implementation as well.
I think this stack is currently
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 6f114e0501f1759eab34dc8ddfc3030c03037cd4 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Thu, 22 Aug 2024 18:07:05 +0900
Subject: [PATCH 1/2] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From bf363883787e9b4989dd858f8573579688f7044b Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
Fix l
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 5aca24559fc6f64a06f66a6d7e35f1edc82995a5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 17:33:52 +0900
Subject: [PATCH 1/8] Add workshare loop wrapper lowerings
Bufferize tes
https://github.com/ivanradanov ready_for_review
https://github.com/llvm/llvm-project/pull/104748
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 31ddd5c8bf59c4f6b386415c89bd87f80bb83409 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
Fix l
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From cc9096e80fc62ba9c5a7d511ee7b8fd18750cb44 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 01/14] [flang] Lower omp.workshare to other omp construc
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 159a2f46bf3a01322cb24539ede289ea089e62c6 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Thu, 22 Aug 2024 18:07:05 +0900
Subject: [PATCH 1/2] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 01/13] [flang] Lower omp.workshare to other omp construc
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 4257950e7df8d7eaf92a1a7b02f89422007ffe6a Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sat, 19 Oct 2024 23:32:27 +0900
Subject: [PATCH 1/7] Do not emit empty omp.single's
---
flang/lib/Opt
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 01/12] [flang] Lower omp.workshare to other omp construc
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From b11ddd76c7fa12b071e0e6b0afd4c3ebbc9ee363 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sat, 5 Oct 2024 12:57:48 +0900
Subject: [PATCH 1/6] Fix tests
---
flang/lib/Optimizer/OpenMP/LowerWor
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 01/11] [flang] Lower omp.workshare to other omp construc
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 8d0651ff644fa6821e0d0fbc4c47fee36802a15c Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Fri, 4 Oct 2024 22:48:42 +0900
Subject: [PATCH 1/6] Fix message
---
flang/lib/Optimizer/OpenMP/LowerW
ivanradanov wrote:
@Thirumalai-Shaktivel Thank you very much. Fixed.
`forall` is actually a case which we do not handle yet. You can give it a shot
if you would like.
https://github.com/llvm/llvm-project/pull/104748
___
llvm-branch-commits mailing l
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 01/10] [flang] Lower omp.workshare to other omp construc
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From c5b5369be3d0db31d9ded0eeeb8e28e03d25bd9e Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Fri, 4 Oct 2024 22:45:09 +0900
Subject: [PATCH 1/6] Fix bug and add better clarification comments
---
ivanradanov wrote:
> My concern with the TODO message is that some code that previously compiled
> using the lowering of WORKSHARE as SINGLE will now hit this TODO. This is
> okay with me so long as it is fixed soon (before LLVM 20). Otherwise, could
> these cases continued to be lowered as SI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 1/9] [flang] Lower omp.workshare to other omp constructs
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 4c207b5c8e44d83eea08d283b8e3811585137744 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Fri, 4 Oct 2024 15:28:07 +0900
Subject: [PATCH 1/6] Different warning
---
flang/lib/Optimizer/OpenMP/
ivanradanov wrote:
@Thirumalai-Shaktivel Fixed, it was a very stupid mistake with the argument
order of the copyprivate copy function. Thank you.
https://github.com/llvm/llvm-project/pull/104748
___
llvm-branch-commits mailing list
llvm-branch-commits
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 1/8] [flang] Lower omp.workshare to other omp constructs
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 07a9eb3581f480c47ce4de3de00c7cef15df3cdc Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Fri, 4 Oct 2024 14:21:14 +0900
Subject: [PATCH 1/7] Fix dst src in copy function
---
flang/lib/Optimi
ivanradanov wrote:
Thank you very much - it seems to only happen with `-O0`, I am trying to find
the root cause now...
https://github.com/llvm/llvm-project/pull/104748
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lis
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 1/5] [flang] Lower omp.workshare to other omp constructs
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From df6bd4282f21590b9d086608cd2cc136b18d54df Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Mon, 23 Sep 2024 16:25:55 +0900
Subject: [PATCH 1/3] Fix todo tests
---
flang/test/Transforms/OpenMP/
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 1/4] [flang] Lower omp.workshare to other omp constructs
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From b710a580ab1732b3b41f0e3fb0684b45108d2c09 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Mon, 23 Sep 2024 16:04:07 +0900
Subject: [PATCH 1/3] clang-format
---
flang/include/flang/Tools/CLOpt
ivanradanov wrote:
I have added a comment explaining the limitation of not allowing CFG in
workshare for now and an appropriate TODO message for that.
Regarding documenting the current supported statements in workshare - this
specific commit will still result in the trivial omp.single lowering
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From e56dbd6a0625890fd9a3d6a62675e864ca94a8f5 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 22:06:55 +0900
Subject: [PATCH 1/3] [flang] Lower omp.workshare to other omp constructs
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 975a0d74c5ae81c69844b8bd089832ed53278477 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Mon, 23 Sep 2024 15:07:48 +0900
Subject: [PATCH 1/4] Emit a proper error message for CFG in workshare
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From e0ef194ecf8bf0e9c450ee11c244eb4450548aef Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 17:33:52 +0900
Subject: [PATCH 1/2] Add workshare loop wrapper lowerings
Bufferize tes
ivanradanov wrote:
Ah yes, I meant `scf.execute_region`. But when I tried creating that and it was
not registered so I thought it was a deliberate decision to not pull in the scf
dialect so I opted not to go for that lowering. I was wondering if there is
some op that is like `scf.execute_regio
ivanradanov wrote:
@kiranchandramohan @tblah @skatrak I have a question to people more familiar
with Fortran and the entire Flang pipeline - is it possible that we would have
CFG (multiple blocks) in the IR generated in the workshare statement at this
point in the pipeline (immediately after l
ivanradanov wrote:
> Can you share a case where this would happen? I agree that we wouldn't want
> to produce some IR that doesn't keep consistent semantics for a given
> operation across the pipeline. In that case, adding another operation might
> indeed be the right solution.
I was under t
ivanradanov wrote:
> ... However, they would work if they ran after the pass lowering
> `omp.workshare` to a set of `omp.single` for the code in between
> `omp.wsloop`s. That way we would not have to introduce a new loop wrapper and
> also we could create passes assuming the parent of region
ivanradanov wrote:
No you are right, sorry for the back and forth, as you said, since a wsloop can
only be nested in a omp.parallel it is immediately obvious that it binds to the
omp.parallel threads so that makes sense.
My only concern was that at some point some transformation (perhaps in th
ivanradanov wrote:
> Maybe support for this operation could be just based on changes to how the
> MLIR representation is built in the first place, what do you think?
This is partly what this implementation aims to do. In fact, after the pass
that lowers the omp.workshare operation we are left
@@ -0,0 +1,446 @@
+//===- LowerWorkshare.cpp - special cases for bufferization ---===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/101446
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -0,0 +1,446 @@
+//===- LowerWorkshare.cpp - special cases for bufferization ---===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0
ivanradanov wrote:
@skatrak
I considered that as well, however, I did not like it because the semantics of
the block that the operation is contained in is different. wsloop expects its
parent block to be a parallel block which all threads will execute and all of
those threads will share the w
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From d5fbe9c7482b87be295be03aafd5917dd7c17859 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Thu, 22 Aug 2024 18:07:05 +0900
Subject: [PATCH] [flang] Introduce ws loop nest generation for HLFIR lo
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 0984407c261496c9dc53fdd2d4d5c2431dd90359 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
Fix l
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From 45a5069b5b783e0e1cd5fa0ba8f8098a980eb94e Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Thu, 22 Aug 2024 18:05:31 +0900
Subject: [PATCH 1/5] wrong replace
---
mlir/test/Dialect/OpenMP/ops.m
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 45a5069b5b783e0e1cd5fa0ba8f8098a980eb94e Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Thu, 22 Aug 2024 18:05:31 +0900
Subject: [PATCH 1/6] wrong replace
---
mlir/test/Dialect/OpenMP/ops.m
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From d4310a06639c6cd1565aac2d2bbfebffcf9e175d Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
Fix l
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From c3ec4f1bd4a51139a10b1450e3e194a9270b7362 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH] [flang] Introduce ws loop nest generation for HLFIR lo
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
>From d343f3a86f56864757ccdf889fd6897d9d9507e9 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:09:09 +0900
Subject: [PATCH 1/5] [MLIR][omp] Add omp.workshare op
Add custom omp l
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From d343f3a86f56864757ccdf889fd6897d9d9507e9 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:09:09 +0900
Subject: [PATCH 1/6] [MLIR][omp] Add omp.workshare op
Add custom omp l
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 81606df746e9862c330681ed8ae9113a43e577a2 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/4] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From e5789180a3dd1fd8c46a5d7dfc446921110642ca Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
---
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101446
error: too big or took too long to generate
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 451a9d2f26cfd8cb770d1ae35d834c63fce56b79 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/4] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 3d1258582adc0ec506a23dc3efdba371c29612ca Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
---
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From 4b1c15bf4dcd753e35ec5c1118b107ea058c58df Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Sun, 4 Aug 2024 17:33:52 +0900
Subject: [PATCH 1/5] Add workshare loop wrapper lowerings
---
.../lib/
https://github.com/ivanradanov reopened
https://github.com/llvm/llvm-project/pull/101443
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov closed
https://github.com/llvm/llvm-project/pull/101443
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From a45ef32ecf6483bdb65954c4283ea493494cea77 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Tue, 20 Aug 2024 16:57:25 +0900
Subject: [PATCH 1/6] Update test
---
.../Transforms/OpenMP/lower-work
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/104748
>From bf0e09f9cfc3159517b1ebec9d39e1143fa935b9 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Tue, 20 Aug 2024 09:28:15 +0900
Subject: [PATCH 1/7] Iterate backwards to find all trivially dead ops
@@ -344,6 +345,7 @@ inline void createHLFIRToFIRPassPipeline(
pm.addPass(hlfir::createLowerHLFIRIntrinsics());
pm.addPass(hlfir::createBufferizeHLFIR());
pm.addPass(hlfir::createConvertHLFIRtoFIR());
+ pm.addPass(flangomp::createLowerWorkshare());
ivanra
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101443
>From 604b0293e0574e9d697d4071c2b853a5a27af1e1 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:09:09 +0900
Subject: [PATCH 1/7] [MLIR][omp] Add omp.workshare op
---
.../Dialect
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 63d49e4dcd128b470ee77006c594673203dd2df2 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
---
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 5e470922405b735d63b4aded76450cc52e94e003 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/4] [flang] Introduce ws loop nest generation for HLFI
@@ -2,3 +2,4 @@ add_subdirectory(CodeGen)
add_subdirectory(Dialect)
add_subdirectory(HLFIR)
add_subdirectory(Transforms)
+add_subdirectory(OpenMP)
ivanradanov wrote:
PR for this up here https://github.com/llvm/llvm-project/pull/104732
https://github.com/llvm/
https://github.com/ivanradanov ready_for_review
https://github.com/llvm/llvm-project/pull/101446
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/101445
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov ready_for_review
https://github.com/llvm/llvm-project/pull/101445
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov ready_for_review
https://github.com/llvm/llvm-project/pull/101444
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov ready_for_review
https://github.com/llvm/llvm-project/pull/101443
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/101446
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/104748
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov created
https://github.com/llvm/llvm-project/pull/104748
WIP I will be adding unit tests and I am considering if we should have
integrations tests for the entire omp.workshare pipeline.
>From 793ae50dd00c4347bea78ca6ecd33783c69de354 Mon Sep 17 00:00:00 2001
From:
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 38c581c8defc81105160a69bb46a9e489b56f10e Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/4] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/101445
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101443
>From e453738aaa1bd74e2462025075ea4ac12868caac Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:09:09 +0900
Subject: [PATCH 1/7] [MLIR][omp] Add omp.workshare op
---
.../Dialect
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 38c581c8defc81105160a69bb46a9e489b56f10e Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/3] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 69e85558ec78c7a74be9168b4227bb262f67225e Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
---
https://github.com/ivanradanov edited
https://github.com/llvm/llvm-project/pull/101443
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 0eae392538510f736b630d93b14d46644d042e4f Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
---
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 2b23c8b52d3b5b680bbcf090fd8c08de6d86fe62 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/3] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From cca8588b2b2d1c4275b9eaf22c7bd017942f06d9 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/3] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From aea7da1492e9ad122b3b17f07b8f91b7c6eac777 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
---
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101445
>From 0287ff3626883d09e364210e83a652a6328835dd Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:12:34 +0900
Subject: [PATCH 1/3] [flang] Introduce ws loop nest generation for HLFI
https://github.com/ivanradanov updated
https://github.com/llvm/llvm-project/pull/101444
>From 1ecd832151fab1cd9b977f0e4b960294cfdc2d12 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov
Date: Wed, 31 Jul 2024 14:11:47 +0900
Subject: [PATCH 1/2] [flang][omp] Emit omp.workshare in frontend
---
ivanradanov wrote:
@kiranchandramohan @tblah
I think this warrants another look if you have some time.
I have reiterated a bit and opted to have a omp loop nest wrapper op which
signals to the workshare lowering which specific loops need to be parallelized
(i.e. converted to wsloop { loop_ne
@@ -0,0 +1,259 @@
+//===- LowerWorkshare.cpp - special cases for bufferization ---===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0
@@ -0,0 +1,259 @@
+//===- LowerWorkshare.cpp - special cases for bufferization ---===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0
@@ -792,7 +793,8 @@ struct ElementalOpConversion
// Generate a loop nest looping around the fir.elemental shape and clone
// fir.elemental region inside the inner loop.
hlfir::LoopNest loopNest =
-hlfir::genLoopNest(loc, builder, extents, !elemental.isOrdere
1 - 100 of 133 matches
Mail list logo