[llvm] [Offload] Update allocations to include device (PR #154733)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 04:05:33 PDT 2025
================
@@ -124,8 +125,8 @@ struct OffloadContext {
bool TracingEnabled = false;
bool ValidationEnabled = true;
- DenseMap<void *, AllocInfo> AllocInfoMap{};
- std::mutex AllocInfoMapMutex{};
+ SmallVector<AllocInfo> AllocInfoList{};
----------------
RossBrunton wrote:
I considered having this be a `Map<void *, SmallVector<AllocInfo>>`, however I think it's better if functions like `olMemGetInfo` accept any address inside the allocation instead of just the start. This makes that logic much less clunky.
https://github.com/llvm/llvm-project/pull/154733
More information about the llvm-commits
mailing list