@@ -0,0 +1,62 @@
+! Tests that "loop-local values" are properly handled by localizing them to the
+! body of the loop nest. See `collectLoopLocalValues` and
`localizeLoopLocalValue`
+! for a definition of "loop-local values" and how they are handled.
skatrak wrot
@@ -102,6 +105,47 @@ mlir::Operation *findLoopIterationVarMemDecl(fir::DoLoopOp
doLoop) {
return result.getDefiningOp();
}
+/// Collects the op(s) responsible for updating a loop's iteration variable
with
+/// the current iteration number. For example, for the input IR:
+/
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127819
>From 33d5af4e9d8aaf9464aa74f5031d60001d77c610 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 13:07:51 +
Subject: [PATCH] [MLIR][OpenMP] Host lowering of distribute-parallel-do/for
This
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127820
>From 082d8e12a622e2315dd4503ce460f9a0e6f29007 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 14:19:30 +
Subject: [PATCH] [OpenMPIRBuilder] Split calculation of canonical loop trip
coun
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127817
>From 55089ba79ac352b05553d3d930ffca3f94562dc1 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 11:22:43 +
Subject: [PATCH] [MLIR][OpenMP] Host lowering of standalone distribute
This patc
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127818
>From ba9ea8c2cbe7848ca36c92e4c3ee464bcf0e6c39 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 12:04:53 +
Subject: [PATCH] [OpenMPIRBuilder] Add support for distribute-parallel-for/do
co
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127820
>From 033091e14c76c3e9c7adb0deae2451a298a7fe9e Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 14:19:30 +
Subject: [PATCH] [OpenMPIRBuilder] Split calculation of canonical loop trip
coun
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127821
>From 32e696f446082a50b60032f1f5b656e494db5570 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 14:41:12 +
Subject: [PATCH 1/2] [MLIR][OpenMP] Support target SPMD
This patch implements ML
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127822
>From c3db0a39f6515911deece48d61e7ee5bfb7219b1 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 15:15:01 +
Subject: [PATCH] [Flang][OpenMP] Allow host evaluation of loop bounds for
distri
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127817
>From 128819a704e4c3497c55fe21d0b588f24240af34 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 11:22:43 +
Subject: [PATCH] [MLIR][OpenMP] Host lowering of standalone distribute
This patc
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127818
>From dbe0d70c0d1c83027ffc9b6eda637257a362adc5 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 12:04:53 +
Subject: [PATCH] [OpenMPIRBuilder] Add support for distribute-parallel-for/do
co
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127822
>From 25e308a580946e40e4d74aae7f04d570723bb267 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 15:15:01 +
Subject: [PATCH] [Flang][OpenMP] Allow host evaluation of loop bounds for
distri
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127816
>From 40d140e6bc0be9556bc09524b38e642cb9885a9d Mon Sep 17 00:00:00 2001
From: Dominik Adamski
Date: Mon, 17 Feb 2025 14:25:40 +
Subject: [PATCH] [OpenMPIRBuilder] Add support for distribute constructs
This
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127820
>From f14d964b8b744ebbf2f981ff07e0051c338db335 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 14:19:30 +
Subject: [PATCH] [OpenMPIRBuilder] Split calculation of canonical loop trip
coun
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127821
>From 27139f8f6260de93a0e6d6163b9562c7daa451b8 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 14:41:12 +
Subject: [PATCH 1/2] [MLIR][OpenMP] Support target SPMD
This patch implements ML
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127819
>From aad04faf1796c328ac2a4280939a7fb9d7503ab1 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 13:07:51 +
Subject: [PATCH 1/2] [MLIR][OpenMP] Host lowering of
distribute-parallel-do/for
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127821
>From e965e0e637551c9b5b5f7fb526a809d1186ef261 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 14:41:12 +
Subject: [PATCH 1/2] [MLIR][OpenMP] Support target SPMD
This patch implements ML
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127822
>From de75db239e6725be6509c06057a338842339bc0a Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 15:15:01 +
Subject: [PATCH] [Flang][OpenMP] Allow host evaluation of loop bounds for
distri
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127819
>From aad04faf1796c328ac2a4280939a7fb9d7503ab1 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 13:07:51 +
Subject: [PATCH] [MLIR][OpenMP] Host lowering of distribute-parallel-do/for
This
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127816
>From 26638a2456dbc7b423d1f5bbb92650398f76098a Mon Sep 17 00:00:00 2001
From: Dominik Adamski
Date: Mon, 17 Feb 2025 14:25:40 +
Subject: [PATCH] [OpenMPIRBuilder] Add support for distribute constructs
This
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127817
>From 654c63e0489922e0abac069a95f2433d20f65e53 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 11:22:43 +
Subject: [PATCH] [MLIR][OpenMP] Host lowering of standalone distribute
This patc
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127818
>From d164acf8d6a573cfc3e5a8d46f8d242fc3cd190f Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 12:04:53 +
Subject: [PATCH] [OpenMPIRBuilder] Add support for distribute-parallel-for/do
co
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127819
>From e61c7975523361b02d1be6f270edfc4cdc6b4f66 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 13:07:51 +
Subject: [PATCH] [MLIR][OpenMP] Host lowering of distribute-parallel-do/for
This
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127820
>From aa6182cc887136d44c8fd180a702f62b381f9b5c Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Tue, 18 Feb 2025 14:19:30 +
Subject: [PATCH] [OpenMPIRBuilder] Split calculation of canonical loop trip
coun
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127821
>From 03651527c28805cb1d786c5674d4bf5644bd1642 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 14:41:12 +
Subject: [PATCH] [MLIR][OpenMP] Support target SPMD
This patch implements MLIR t
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/127822
>From bd0589979a0db8bb6c5b7da57ac2054ce690a1f9 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Wed, 19 Feb 2025 15:15:01 +
Subject: [PATCH] [Flang][OpenMP] Allow host evaluation of loop bounds for
distri
@@ -24,7 +25,82 @@ namespace flangomp {
namespace {
namespace looputils {
-using LoopNest = llvm::SetVector;
+/// Stores info needed about the induction/iteration variable for each `do
+/// concurrent` in a loop nest. This includes only for now:
+/// * the operation allocating
https://github.com/skatrak commented:
Thank you, a couple of comments from me. But the general approach looks good.
https://github.com/llvm/llvm-project/pull/127633
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.l
@@ -24,7 +25,82 @@ namespace flangomp {
namespace {
namespace looputils {
-using LoopNest = llvm::SetVector;
+/// Stores info needed about the induction/iteration variable for each `do
+/// concurrent` in a loop nest. This includes only for now:
+/// * the operation allocating
https://github.com/skatrak edited
https://github.com/llvm/llvm-project/pull/127633
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -93,11 +169,14 @@ bool isPerfectlyNested(fir::DoLoopOp outerLoop,
fir::DoLoopOp innerLoop) {
/// recognize a certain nested loop as part of the nest it just returns the
/// parent loops it discovered before.
mlir::LogicalResult collectLoopNest(fir::DoLoopOp currentLoop,
-
@@ -24,7 +25,82 @@ namespace flangomp {
namespace {
namespace looputils {
-using LoopNest = llvm::SetVector;
+/// Stores info needed about the induction/iteration variable for each `do
+/// concurrent` in a loop nest. This includes only for now:
+/// * the operation allocating
https://github.com/skatrak edited
https://github.com/llvm/llvm-project/pull/125307
___
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/skatrak approved this pull request.
It appears a couple of the changes got somehow lost, but no need for another
review from me. LGTM, thanks!
https://github.com/llvm/llvm-project/pull/125307
___
llvm-branch-commits mailing list
llv
https://github.com/skatrak approved this pull request.
Thank you Kareem, LGTM!
https://github.com/llvm/llvm-project/pull/127634
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm
@@ -3075,9 +3115,6 @@ convertOmpCancel(omp::CancelOp op, llvm::IRBuilderBase
&builder,
llvm::OpenMPIRBuilder::LocationDescription ompLoc(builder);
llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder();
- if (failed(checkImplementationStatus(*op.getOper
https://github.com/skatrak edited
https://github.com/llvm/llvm-project/pull/137841
___
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/skatrak updated
https://github.com/llvm/llvm-project/pull/137199
>From c6954b3120a87eef7d9cf86f18d4ef342b2e7b25 Mon Sep 17 00:00:00 2001
From: Sergio Afonso
Date: Fri, 11 Apr 2025 13:40:14 +0100
Subject: [PATCH] [MLIR][OpenMP] Assert on map translation functions, NFC
This pa
https://github.com/skatrak updated
https://github.com/llvm/llvm-project/pull/137201
Rate limit ยท GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,sans-s
https://github.com/skatrak edited
https://github.com/llvm/llvm-project/pull/144898
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -200,9 +201,41 @@ class HostEvalInfo {
/// the handling of the outer region by keeping a stack of information
/// structures, but it will probably still require some further work to support
/// reverse offloading.
-static llvm::SmallVector hostEvalInfo;
-static llvm::SmallVe
https://github.com/skatrak approved this pull request.
Thank you Tom for working on this, I think it's a very nice improvement! LGTM.
https://github.com/llvm/llvm-project/pull/144898
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.o
@@ -2224,10 +2260,13 @@ genSectionsOp(lower::AbstractConverter &converter,
lower::SymMap &symTable,
lower::pft::Evaluation &eval, mlir::Location loc,
const ConstructQueue &queue,
ConstructQueue::const_iterator item) {
- assert(!sectio
@@ -1818,16 +1852,17 @@ static void genTargetClauses(
llvm::SmallVectorImpl &hasDeviceAddrSyms,
llvm::SmallVectorImpl &isDevicePtrSyms,
llvm::SmallVectorImpl &mapSyms) {
+ HostEvalInfo *hostEvalInfo = getHostEvalInfoStackTop(converter);
ClauseProcessor cp(conver
@@ -2224,10 +2260,13 @@ genSectionsOp(lower::AbstractConverter &converter,
lower::SymMap &symTable,
lower::pft::Evaluation &eval, mlir::Location loc,
const ConstructQueue &queue,
ConstructQueue::const_iterator item) {
- assert(!sectio
601 - 645 of 645 matches
Mail list logo