[all-commits] [llvm/llvm-project] bc82d1: [OpenMPIRBuilder][MLIR] Pass target-cpu and target...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Mon Feb 5 04:23:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc82d1a6b7f8a795e923b10e8ef0fdc34628a48e
      https://github.com/llvm/llvm-project/commit/bc82d1a6b7f8a795e923b10e8ef0fdc34628a48e
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-02-05 (Mon, 05 Feb 2024)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M mlir/test/Target/LLVMIR/omptarget-parallel-wsloop.mlir
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir
    M mlir/test/Target/LLVMIR/openmp-teams.mlir

  Log Message:
  -----------
  [OpenMPIRBuilder][MLIR] Pass target-cpu and target-features to outlined functions (#80283)

This patch adds support for forwarding the target-cpu and
target-features attributes to functions outlined in the OpenMPIRBuilder.
This, in turn, results in the addition of these attributes for functions
created during the translation of the `omp.parallel`, `omp.task` and
`omp.teams` operations, and for the `omp.wsloop` operation when doing
codegen for an OpenMP target device.




More information about the All-commits mailing list