[llvm] [Offload]: Skip copying of unused kernel-mapped data (PR #124723)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 13:44:36 PST 2025
================
@@ -1197,6 +1197,35 @@ class PrivateArgumentManagerTy {
}
};
+static std::unique_ptr<int64_t[]> maskIgnorableMappings(int64_t DeviceId, int32_t ArgNum, int64_t *ArgTypes,
+ int64_t *ArgSizes, map_var_info_t *ArgNames) {
+ std::unique_ptr<int64_t[]> ArgTypesOverride = std::make_unique<int64_t[]>(ArgNum);
----------------
pradt2 wrote:
I get a segfault when I do, I think this is because the pointer points straight to a region of read-only memory.
https://github.com/llvm/llvm-project/pull/124723
More information about the llvm-commits
mailing list