================ @@ -55,29 +68,30 @@ enum OffloadEntryKindFlag : uint32_t { /// globals that will be registered with the offloading runtime. StructType *getEntryTy(Module &M); -/// Returns the struct type we store the two pointers for CUDA / HIP managed -/// variables in. Necessary until we widen the offload entry struct. -StructType *getManagedTy(Module &M); - /// Create an offloading section struct used to register this global at /// runtime. /// /// \param M The module to be used /// \param Addr The pointer to the global being registered. +/// \param Kind The offloading language expected to consume this. ---------------- Artem-B wrote:
Do you think a single offloading section may ever be used by multiple offload mechanisms? Would it make sense to make `Kind` a bitmask? https://github.com/llvm/llvm-project/pull/124018 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits