[all-commits] [llvm/llvm-project] 4a0366: [MLIR][OpenMP] Support calls added between MarkDec...
Sergio Afonso via All-commits
all-commits at lists.llvm.org
Wed Aug 5 03:24:57 PDT 2026
Branch: refs/heads/users/skatrak/omp-func-filter-04-multi-fix
Home: https://github.com/llvm/llvm-project
Commit: 4a0366d6fa01960e746b0205ab9ab87853bdb510
https://github.com/llvm/llvm-project/commit/4a0366d6fa01960e746b0205ab9ab87853bdb510
Author: Sergio Afonso <Sergio.AfonsoFumero at amd.com>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenOpenMPRuntime.cpp
M flang/lib/Lower/OpenMP/OpenMP.cpp
M flang/test/Integration/OpenMP/function-filtering-2.f90
M flang/test/Lower/OpenMP/common-block-map.f90
M flang/test/Lower/OpenMP/declare-target-data.f90
M flang/test/Lower/OpenMP/declare-target-deferred-marking-reductions.f90
M flang/test/Lower/OpenMP/declare-target-deferred-marking.f90
M flang/test/Lower/OpenMP/declare-target-func-and-subr.f90
M flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
M flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap.f90
M flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90
M flang/test/Lower/OpenMP/declare-target-unnamed-main.f90
M flang/test/Lower/OpenMP/omp-declare-target-program-var.f90
M mlir/include/mlir/Dialect/OpenMP/OpenMPAttrDefs.td
M mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td
M mlir/lib/Dialect/OpenMP/Transforms/FunctionFiltering.cpp
M mlir/lib/Dialect/OpenMP/Transforms/MarkDeclareTarget.cpp
M mlir/test/Dialect/OpenMP/mark-declare-target.mlir
Log Message:
-----------
[MLIR][OpenMP] Support calls added between MarkDeclareTarget runs
Currently, if there are multiple executions of the `MarkDeclareTarget`
pass in a compiler pipeline and somewhere between both runs function
calls get added to a non-declare_target function that was marked as such
implicitly, potential changes to the `device_type` won't get propagated.
This is because we can't distinguish between a user-specified
`declare_target` function attribute and one added by that pass. This
patch addresses this by adding a new parameter to `DeclareTargetAttr`
that is used by that pass to know whether new `declare_target`
information could be propagated to it.
The `automap` and `implicit` parameters are given default values to
simplify the representation of these attributes.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list