[flang-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Fix Fortran automap handling (PR #162501)

via flang-commits flang-commits at lists.llvm.org
Wed Jul 8 09:18:22 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);
----------------
agozillon wrote:

Changes are all good with me then! But it might be worth checking this PR: https://github.com/llvm/llvm-project/pull/208188 and following up with Sergio, he's also doing some linkage related stuff in this function right now, so his or your changes might help each other or more likely than not they're different edge cases that will need to live in harmony (just a rebase on which ever lands first :-) )! 

https://github.com/llvm/llvm-project/pull/162501


More information about the flang-commits mailing list