[llvm] [Offload] Erase entries from JIT cache when program is destroyed (PR #148847)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 23 03:32:23 PDT 2025
================
@@ -285,8 +285,8 @@ JITEngine::compile(const __tgt_device_image &Image,
// Check if we JITed this image for the given compute unit kind before.
ComputeUnitInfo &CUI = ComputeUnitMap[ComputeUnitKind];
- if (__tgt_device_image *JITedImage = CUI.TgtImageMap.lookup(&Image))
----------------
RossBrunton wrote:
Re-reading this thread and I think I worded things a bit confusingly; by "Image address" I mean `&Image` rather than `Image->ImageStart`.
I'm not sure there's a key that we can use to uniquely identify Images across create/destroy boundaries, nor can I see a use case for that.
https://github.com/llvm/llvm-project/pull/148847
More information about the llvm-commits
mailing list