[all-commits] [llvm/llvm-project] 422f43: [MLIR][OpenMP] DeclareTargetInterface and DeclareT...
Sergio Afonso via All-commits
all-commits at lists.llvm.org
Mon Sep 14 02:19:19 PDT 2026
Branch: refs/heads/users/skatrak/omp-func-filter-06-decltarget-cleanup
Home: https://github.com/llvm/llvm-project
Commit: 422f432e41b237c832cf118e6469a251ee87e771
https://github.com/llvm/llvm-project/commit/422f432e41b237c832cf118e6469a251ee87e771
Author: Sergio Afonso <Sergio.AfonsoFumero at amd.com>
Date: 2026-09-14 (Mon, 14 Sep 2026)
Changed paths:
M flang/docs/OpenMP-declare-target.md
M flang/lib/Lower/OpenMP/OpenMP.cpp
M flang/lib/Optimizer/OpenMP/AutomapToTargetData.cpp
M flang/lib/Optimizer/OpenMP/UnimplementedDeviceCheck.cpp
M flang/test/Integration/OpenMP/declare-target-funcs.f90
M flang/test/Integration/OpenMP/declare-target-named-main-interface.f90
M flang/test/Lower/OpenMP/declare-target-multiple-entry.f90
M mlir/include/mlir/Dialect/OpenMP/OpenMPAttrDefs.td
M mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td
M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
M mlir/lib/Dialect/OpenMP/Transforms/FunctionFiltering.cpp
M mlir/lib/Dialect/OpenMP/Transforms/HostOpFiltering.cpp
M mlir/lib/Dialect/OpenMP/Transforms/MarkDeclareTarget.cpp
M mlir/lib/Dialect/OpenMP/Utils/Utils.cpp
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
M mlir/test/Dialect/OpenMP/invalid-interface.mlir
Log Message:
-----------
[MLIR][OpenMP] DeclareTargetInterface and DeclareTargetAttr cleanup
The changes introduced by this patch are intended to avoid triggering
multiple by name lookups to the "omp.declare_target" attribute every
time any data from the `DeclareTargetInterface` is queried, remove the
need for keeping multiple default values for the same data, clean up
the assembly format and generally improve the usage of the interface.
List of changes:
- `DeclareTargetInterface` only provides `setDeclareTarget` and
`getDeclareTarget` methods to handle the "omp.declare_target"
attribute, maintaining a single canonical way of accessing it.
- `DeclareTargetAttr` provides direct access to the capture clause and
device type enums, rather than wrapping them into an `Attribute`.
These are now mandatory as well. Both changes together make accessing
them more straightforward and simplify the attribute representation.
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