[flang] [llvm] [Flang][OpenMP] Add global address space to globals for target device (PR #119585)

Abid Qadeer via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 11:01:48 PST 2025


================
@@ -1255,14 +1293,19 @@ struct EmboxCommonConversion : public fir::FIROpConversion<OP> {
             ? fir::NameUniquer::getTypeDescriptorAssemblyName(recType.getName())
             : fir::NameUniquer::getTypeDescriptorName(recType.getName());
     mlir::Type llvmPtrTy = ::getLlvmPtrType(mod.getContext());
+    mlir::DataLayout dataLayout(mod);
----------------
abidh wrote:

The construction of mlir::DataLayout may be expensive so I wonder if there is way to use an already constructed one.

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


More information about the llvm-commits mailing list