[all-commits] [llvm/llvm-project] e3ff5c: [OpenMPIRBuilder] Pass target-cpu and target-featu...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Thu Feb 1 04:15:30 PST 2024


  Branch: refs/heads/users/skatrak/spr/target-attrs-ompirbuilder
  Home:   https://github.com/llvm/llvm-project
  Commit: e3ff5c1160106892a07dad4d29868c756891be38
      https://github.com/llvm/llvm-project/commit/e3ff5c1160106892a07dad4d29868c756891be38
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-02-01 (Thu, 01 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] Pass target-cpu and target-features to outlined functions

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