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

Sergio Afonso via All-commits all-commits at lists.llvm.org
Tue Jan 16 06:24:34 PST 2024


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




More information about the All-commits mailing list