[flang-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Fix Fortran automap handling (PR #162501)
Akash Banerjee via flang-commits
flang-commits at lists.llvm.org
Thu Jun 18 07:54:55 PDT 2026
================
@@ -7678,6 +7688,35 @@ convertDeclareTargetAttr(Operation *op, mlir::omp::DeclareTargetAttr attribute,
convertToCaptureClauseKind(attribute.getCaptureClause().getValue());
auto deviceClause =
convertToDeviceClauseKind(attribute.getDeviceType().getValue());
+ llvm::StringRef entryMangledName = mangledName;
+ llvm::Constant *entryAddr = llvm::cast<llvm::Constant>(gVal);
----------------
TIFitis wrote:
I checked this after rebasing past #200248. That PR fixes the declare-target enter/to handling, but it does not cover this local/hidden offload-entry case.
I tested dropping this alias change and the AMDGPU automap test still compiled but failed at runtime: the device global descriptor was not updated. So this PR still needs the visible offload-entry alias for local/hidden `declare target to/enter` globals.
https://github.com/llvm/llvm-project/pull/162501
More information about the flang-commits
mailing list