[all-commits] [llvm/llvm-project] 9708d0: [MLIR][OpenMP] Skip host omp ops when compiling fo...

Jan Leyonberg via All-commits all-commits at lists.llvm.org
Fri Apr 5 06:25:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9708d0900311503aa4685d6810d8caf0412e15d7
      https://github.com/llvm/llvm-project/commit/9708d0900311503aa4685d6810d8caf0412e15d7
  Author: Jan Leyonberg <jan_sjodin at yahoo.com>
  Date:   2024-04-05 (Fri, 05 Apr 2024)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/omptarget-parallel-wsloop.mlir
    A mlir/test/Target/LLVMIR/omptarget-target-inside-task.mlir
    M mlir/test/Target/LLVMIR/omptarget-teams-llvm.mlir
    M mlir/test/Target/LLVMIR/omptarget-wsloop-collapsed.mlir
    M mlir/test/Target/LLVMIR/omptarget-wsloop.mlir
    A mlir/test/Target/LLVMIR/openmp-data-target-device.mlir
    A mlir/test/Target/LLVMIR/openmp-task-target-device.mlir

  Log Message:
  -----------
  [MLIR][OpenMP] Skip host omp ops when compiling for the target device (#85239)

This patch separates the lowering dispatch for host and target devices.
For the target device, if the current operation is not a top-level
operation (e.g. omp.target) or is inside a target device code region it
will be ignored, since it belongs to the host code.


This is an alternative approach to #84611, the new test in this PR was
taken from there.



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