[all-commits] [llvm/llvm-project] 000d6d: [Flang][OpenMP] Translation support for taskloop c...

Tom Eccles via All-commits all-commits at lists.llvm.org
Mon Jan 5 03:33:57 PST 2026


  Branch: refs/heads/users/tblah/taskloop-no-clauses
  Home:   https://github.com/llvm/llvm-project
  Commit: 000d6da0c7a7fbe739e476efd516315d1109e446
      https://github.com/llvm/llvm-project/commit/000d6da0c7a7fbe739e476efd516315d1109e446
  Author: Kaviya Rajendiran <kaviyara2000 at gmail.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    A mlir/test/Target/LLVMIR/openmp-taskloop.mlir
    M mlir/test/Target/LLVMIR/openmp-todo.mlir

  Log Message:
  -----------
  [Flang][OpenMP] Translation support for taskloop construct


  Commit: 28d2db3705980bd908d7a3a12bd6c0e0ba7e4f2f
      https://github.com/llvm/llvm-project/commit/28d2db3705980bd908d7a3a12bd6c0e0ba7e4f2f
  Author: Kaviya Rajendiran <kaviyara2000 at gmail.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-taskloop.mlir

  Log Message:
  -----------
  [Flang][OpenMP] Addressed review comments


  Commit: 2ba219968a43a0898bbce1b5f258e4ed9ec3af6e
      https://github.com/llvm/llvm-project/commit/2ba219968a43a0898bbce1b5f258e4ed9ec3af6e
  Author: Kaviya Rajendiran <kaviyara2000 at gmail.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-todo.mlir

  Log Message:
  -----------
   [Flang][OpenMP]Added TODO testcases for taskloop clauses


  Commit: baff552e6de35e5b84a4efe586e119b4cab37eea
      https://github.com/llvm/llvm-project/commit/baff552e6de35e5b84a4efe586e119b4cab37eea
  Author: Jack Styles <jack.styles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  [Flang][OpenMP] Rework bounds in Taskloop lowering


  Commit: af965a4f03dd0e04fc25ab522ee8e13053af9181
      https://github.com/llvm/llvm-project/commit/af965a4f03dd0e04fc25ab522ee8e13053af9181
  Author: Jack Styles <jack.styles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/include/llvm/Transforms/Utils/CodeExtractor.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  Updates to bounds rework

- Force the first 3 entries to the StructArg to be the bounds info
- Ensure it will work when executing the tasks in parallel


  Commit: 770c50dc960b57d79367c9a315de2e2463605d74
      https://github.com/llvm/llvm-project/commit/770c50dc960b57d79367c9a315de2e2463605d74
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  kaviya's review comments

Comments at https://github.com/Stylie777/llvm-project/pull/3


  Commit: bbc399074575e80403d47b225ce2ecdef0c96fe3
      https://github.com/llvm/llvm-project/commit/bbc399074575e80403d47b225ce2ecdef0c96fe3
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  [NFC] Refine private var init/copy interfaces


  Commit: c4b361a76a5145e45ae4b42da6c1746110ef6292
      https://github.com/llvm/llvm-project/commit/c4b361a76a5145e45ae4b42da6c1746110ef6292
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  Task duplication function generation


  Commit: 33a8f1580fad266941e8bc0b22789ec97e2e983e
      https://github.com/llvm/llvm-project/commit/33a8f1580fad266941e8bc0b22789ec97e2e983e
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  Fix freeing private vars and context struct

I decided not to fix the TODO about zero iteration taskloops because
this is part of a larger problem affecting similar constructs e.g.
ordinary tasks with an if clause that evaluates to false.


  Commit: 2aa198aefdedbaf560285e3920d9d5b6503e97bc
      https://github.com/llvm/llvm-project/commit/2aa198aefdedbaf560285e3920d9d5b6503e97bc
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  Fix indexing not to re-order private vars

This is important so that the private var cleanup applies the right
cleanup region to the right variable.


  Commit: 86383a36b1ad58ec0eba283369b193d6cb8be591
      https://github.com/llvm/llvm-project/commit/86383a36b1ad58ec0eba283369b193d6cb8be591
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  Fix loop trip count


  Commit: 6df8704f3474985c89f8ea5fdba63d11ed80d9a3
      https://github.com/llvm/llvm-project/commit/6df8704f3474985c89f8ea5fdba63d11ed80d9a3
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td

  Log Message:
  -----------
  [mlir][OpenMP] Implement OutlinableOpenMPOpInterface for Taskloop

The body of taskloop is outlined and so OutlinableOpenMPOpInterface is
needed to ensure that language frontends know not to hoist allocas
outside of the body of taskloop.

The complication here is that taskloop is also a loop wrapper. Currently
some code assumes that taskloop contains only the wrapped loop, and so
there is no place to put the allocas other than in the loop body. This
is obviously not good. Unfortunately LLVM does not seem to be able to
hoist these allocas back out of the loop. The taskloop loop body will
need to contain stack saves and restores, which unfortunately hinder
some optimizations.

I think it is better to land some taskloop in LLVM 22 than not at all.
It will take more work to find an appropriate MLIR representation for
allocas inside of outlinable loop wrappers.


  Commit: 257aaeaafe2059766fae62459336f3f2dc592421
      https://github.com/llvm/llvm-project/commit/257aaeaafe2059766fae62459336f3f2dc592421
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M mlir/test/Target/LLVMIR/openmp-taskloop.mlir

  Log Message:
  -----------
  Update test


  Commit: 6841450d63b40c57c2e84796bd9f42a2cee495fd
      https://github.com/llvm/llvm-project/commit/6841450d63b40c57c2e84796bd9f42a2cee495fd
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  [NFC] Share body generation callback between task and taskloop


Compare: https://github.com/llvm/llvm-project/compare/218bcbf86f25...6841450d63b4

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list