[flang-commits] [flang] [llvm] [mlir] [OpenMP] Honor barrier and last iteration flags in loop lowering (PR #224040)
Nicole Aschenbrenner via flang-commits
flang-commits at lists.llvm.org
Mon Oct 5 04:52:55 PDT 2026
================
@@ -260,3 +263,15 @@ subroutine omp_taskloop_lastprivate()
! CHECK: omp.terminator
!$omp end taskloop
end subroutine omp_taskloop_lastprivate
+
+! CHECK-LABEL: func @_QPomp_taskloop_first_and_lastprivate()
+subroutine omp_taskloop_first_and_lastprivate()
+ integer x
+ x = 0
+ ! CHECK: omp.taskloop.context private(@[[FIRST_LAST_PRIVATE_X]] {{.*}}) {
----------------
nicebert wrote:
Sure thing, applied the change as proposed.
https://github.com/llvm/llvm-project/pull/224040
More information about the flang-commits
mailing list