[all-commits] [llvm/llvm-project] 688b61: [OpenMP][OMPIRBuilder] Use device shared memory fo...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Thu Aug 14 04:40:36 PDT 2025


  Branch: refs/heads/users/skatrak/flang-generic-04-parallel-args
  Home:   https://github.com/llvm/llvm-project
  Commit: 688b61435b38e8632ab81e9aa94fadb5aa5ad7f1
      https://github.com/llvm/llvm-project/commit/688b61435b38e8632ab81e9aa94fadb5aa5ad7f1
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-08-13 (Wed, 13 Aug 2025)

  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
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    M mlir/test/Target/LLVMIR/omptarget-parallel-llvm.mlir

  Log Message:
  -----------
  [OpenMP][OMPIRBuilder] Use device shared memory for arg structures

Argument structures are created when sections of the LLVM IR corresponding to
an OpenMP construct are outlined into their own function. For this, stack
allocations are used.

This patch modifies this behavior when compiling for a target device and
outlining `parallel`-related IR, so that it uses device shared memory instead
of private stack space. This is needed in order for threads to have access to
these arguments.


  Commit: 4da11cfd7dd40b2b8bef36669605024b5a532ed1
      https://github.com/llvm/llvm-project/commit/4da11cfd7dd40b2b8bef36669605024b5a532ed1
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-08-13 (Wed, 13 Aug 2025)

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

  Log Message:
  -----------
  Address intermittent ICE triggered from the `OpenMPIRBuilder::finalize` method due to an invalid builder insertion point


  Commit: 06a2570f2b2438b611361d229de95d22a8997d44
      https://github.com/llvm/llvm-project/commit/06a2570f2b2438b611361d229de95d22a8997d44
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

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

  Log Message:
  -----------
  Address nits


Compare: https://github.com/llvm/llvm-project/compare/0237b82d69e9...06a2570f2b24

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