[llvm] [offload] Split olMemAlloc to separate functions (PR #209196)

Ɓukasz Plewa via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 07:51:34 PDT 2026


lplewa wrote:

I gave a heads-up about this change during the community meeting three weeks ago, when we discussed introducing contexts into liboffload.

You can find the slides here: (Future changes bullet)
https://github.com/lplewa/llvm-wgs/blob/7b635891822aa65a27a0b78ff890b8763737ac90/offload-wg/meeting-minutes/slides/offload-context-2026-06-24.org

This change is not required for contexts to work, but I believe it results in a cleaner API.
Since it is optional, I split it into a separate PR so we can focus the discussion on this API change only.

If you agree with this direction, once it is merged, I'll submit a follow-up patch introducing contexts to the memory allocation functions using the new API.

If you don't think this split is worthwhile, I'll keep the existing allocation API and introduce contexts to it.


https://github.com/llvm/llvm-project/pull/209196


More information about the llvm-commits mailing list