[all-commits] [llvm/llvm-project] 33d5af: [MLIR][OpenMP] Host lowering of distribute-paralle...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Fri Feb 21 02:08:08 PST 2025


  Branch: refs/heads/users/skatrak/target-spmd-05-mlir-composite
  Home:   https://github.com/llvm/llvm-project
  Commit: 33d5af4e9d8aaf9464aa74f5031d60001d77c610
      https://github.com/llvm/llvm-project/commit/33d5af4e9d8aaf9464aa74f5031d60001d77c610
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-02-21 (Fri, 21 Feb 2025)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir
    M mlir/test/Target/LLVMIR/openmp-todo.mlir

  Log Message:
  -----------
  [MLIR][OpenMP] Host lowering of distribute-parallel-do/for

This patch adds support for translating composite `omp.parallel` +
`omp.distribute` + `omp.wsloop` loops to LLVM IR on the host. This is done by
passing an updated `WorksharingLoopType` to the call to `applyWorkshareLoop`
associated to the lowering of the `omp.wsloop` operation, so that
`__kmpc_dist_for_static_init` is called at runtime in place of
`__kmpc_for_static_init`.

Existing translation rules take care of creating a parallel region to hold the
workshared and workdistributed loop.



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