[all-commits] [llvm/llvm-project] 9b5e75: [MLIR][OpenMP] Simplify OpenMP device codegen

Sergio Afonso via All-commits all-commits at lists.llvm.org
Mon Aug 25 08:17:04 PDT 2025


  Branch: refs/heads/users/skatrak/map-rework-04-target-codegen
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b5e75950a88e68aa49f5341f488eb6f57f58375
      https://github.com/llvm/llvm-project/commit/9b5e75950a88e68aa49f5341f488eb6f57f58375
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    A flang/test/Integration/OpenMP/target-nesting-in-host-ops.f90
    A flang/test/Integration/OpenMP/task-target-device.f90
    A flang/test/Integration/OpenMP/threadprivate-target-device.f90
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/omptarget-constant-indexing-device-region.mlir
    M mlir/test/Target/LLVMIR/omptarget-debug-loop-loc.mlir
    M mlir/test/Target/LLVMIR/omptarget-debug-var-1.mlir
    M mlir/test/Target/LLVMIR/omptarget-memcpy-align-metadata.mlir
    R mlir/test/Target/LLVMIR/omptarget-target-inside-task.mlir
    R mlir/test/Target/LLVMIR/omptarget-threadprivate-device-lowering.mlir
    M mlir/test/Target/LLVMIR/openmp-llvm-invalid.mlir
    R mlir/test/Target/LLVMIR/openmp-target-nesting-in-host-ops.mlir
    R mlir/test/Target/LLVMIR/openmp-task-target-device.mlir

  Log Message:
  -----------
  [MLIR][OpenMP] Simplify OpenMP device codegen

After removing host operations from the device MLIR module, it is no longer
necessary to provide special codegen logic to prevent these operations from
causing compiler crashes or miscompilations.

This patch removes these now unnecessary code paths to simplify codegen logic.
Some MLIR tests are now replaced with Flang tests, since the responsibility of
dealing with host operations has been moved earlier in the compilation flow.

MLIR tests holding target device modules are updated to no longer include now
unsupported host operations.


  Commit: a5261d9cddd93ee7056896bbc9ee262e4c0a0aea
      https://github.com/llvm/llvm-project/commit/a5261d9cddd93ee7056896bbc9ee262e4c0a0aea
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    A flang/test/Integration/OpenMP/target-use-device-nested.f90
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    R mlir/test/Target/LLVMIR/openmp-target-use-device-nested.mlir

  Log Message:
  -----------
  Make omp.target[_{enter,exit}]_data and omp.target_update host-only ops


Compare: https://github.com/llvm/llvm-project/compare/1195b0173eb1...a5261d9cddd9

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