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

Sergio Afonso via All-commits all-commits at lists.llvm.org
Thu Apr 24 08:38:18 PDT 2025


  Branch: refs/heads/users/skatrak/map-rework-04-target-codegen
  Home:   https://github.com/llvm/llvm-project
  Commit: 174401a11e313c6b1ebe80552c59ea59a0c6a4de
      https://github.com/llvm/llvm-project/commit/174401a11e313c6b1ebe80552c59ea59a0c6a4de
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-04-24 (Thu, 24 Apr 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-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.



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