================ @@ -1221,12 +1221,31 @@ void CGNVCUDARuntime::createOffloadingEntries() { ? static_cast<int32_t>(llvm::offloading::OffloadGlobalNormalized) : 0); if (I.Flags.getKind() == DeviceVarFlags::Variable) { - llvm::offloading::emitOffloadingEntry( - M, I.Var, getDeviceSideName(I.D), VarSize, - (I.Flags.isManaged() ? llvm::offloading::OffloadGlobalManagedEntry - : llvm::offloading::OffloadGlobalEntry) | - Flags, - /*Data=*/0, Section); + if (I.Flags.isManaged()) { + assert(I.Var->getName().ends_with(".managed") && + "HIP managed variables not transformed"); + ---------------- arsenm wrote:
Add a todo about the format change to use one struct https://github.com/llvm/llvm-project/pull/123437 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits