[llvm] [Offload]: Skip copying of unused kernel-mapped data (PR #124723)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 13 15:39:38 PST 2025
================
@@ -386,6 +386,13 @@ struct LookupResult {
LookupResult() : Flags({0, 0, 0}), TPR() {}
TargetPointerResultTy TPR;
+
+ bool isEmpty() const {
+ bool IsEmpty = Flags.IsContained == 0
+ & Flags.ExtendsBefore == 0
+ & Flags.ExtendsAfter == 0;
+ return IsEmpty;
----------------
pradt2 wrote:
Done
https://github.com/llvm/llvm-project/pull/124723
More information about the llvm-commits
mailing list