[all-commits] [llvm/llvm-project] cd0c55: [Flang][MLIR][OpenMP] Use function-attached target...

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


  Branch: refs/heads/users/skatrak/spr/target-attrs-openmp
  Home:   https://github.com/llvm/llvm-project
  Commit: cd0c55719494865469ddf5ab0fb5453f56be2622
      https://github.com/llvm/llvm-project/commit/cd0c55719494865469ddf5ab0fb5453f56be2622
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-02-01 (Thu, 01 Feb 2024)

  Changed paths:
    M flang/include/flang/Tools/CrossToolHelpers.h
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/test/Lower/OpenMP/FIR/target_cpu_features.f90
    M flang/test/Lower/OpenMP/target_cpu_features.f90
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/omptarget-parallel-llvm.mlir
    A mlir/test/Target/LLVMIR/omptarget-target-cpu-features.mlir

  Log Message:
  -----------
  [Flang][MLIR][OpenMP] Use function-attached target attributes for OpenMP lowering

This patch removes the `omp.target` module attribute, since the information it
held on the target CPU and features is available through the `fir.target_cpu`
and `fir.target_features` module attributes. Target outlining during the MLIR
to LLVM IR translation stage is updated, so that these attributes, at that
point available as `llvm.func` attributes, are passed along to the newly
created function.




More information about the All-commits mailing list