[flang-commits] [flang] [llvm] [Flang][OpenMP] Add global address space to globals for target device (PR #119585)
via flang-commits
flang-commits at lists.llvm.org
Tue Jan 14 10:21:02 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);
----------------
agozillon wrote:
Added a call to getOrSetDataLayout! So should retrieve one if it's been constructed already or create one (more likely retrieve one as the function is called on generation of the code gen passes).
https://github.com/llvm/llvm-project/pull/119585
More information about the flang-commits
mailing list