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

Sergio Afonso via All-commits all-commits at lists.llvm.org
Wed Jan 31 07:06:00 PST 2024


  Branch: refs/heads/users/skatrak/spr/target-attrs-openmp
  Home:   https://github.com/llvm/llvm-project
  Commit: 63ba1c0b14306d3306eb72b55fdebfeed5e03c9b
      https://github.com/llvm/llvm-project/commit/63ba1c0b14306d3306eb72b55fdebfeed5e03c9b
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-01-31 (Wed, 31 Jan 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 to each function as a function
attribute. Target outlining during the MLIR to LLVM IR translation stage is
also updated, so that these attributes are passed along to the newly created
function.


  Commit: 0d8be7c98790bbf78371caa1828fd0f807034d85
      https://github.com/llvm/llvm-project/commit/0d8be7c98790bbf78371caa1828fd0f807034d85
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M flang/test/Lower/OpenMP/FIR/target_cpu_features.f90
    M flang/test/Lower/OpenMP/target_cpu_features.f90

  Log Message:
  -----------
  Fix tests


Compare: https://github.com/llvm/llvm-project/compare/52669d2fdd1f...0d8be7c98790


More information about the All-commits mailing list