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

Sergio Afonso via All-commits all-commits at lists.llvm.org
Fri Feb 2 05:15:50 PST 2024


  Branch: refs/heads/users/skatrak/spr/target-attrs-openmp
  Home:   https://github.com/llvm/llvm-project
  Commit: a206adf8e79ae1a44193050bb648d02679b76dce
      https://github.com/llvm/llvm-project/commit/a206adf8e79ae1a44193050bb648d02679b76dce
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-02-02 (Fri, 02 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