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

Sergio Afonso via All-commits all-commits at lists.llvm.org
Mon Jul 28 04:23:16 PDT 2025


  Branch: refs/heads/users/skatrak/flang-generic-04-parallel-args
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b344026f04bd417bb919c866b850d4474639d62
      https://github.com/llvm/llvm-project/commit/8b344026f04bd417bb919c866b850d4474639d62
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-07-28 (Mon, 28 Jul 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.



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