[llvm] [offload] add handling of memory alignment to MemoryManagerTy (PR #218418)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 03:39:16 PDT 2026
================
@@ -248,72 +260,102 @@ class MemoryManagerTy {
if (Size == 0)
return nullptr;
- ODBG(OLDT_Alloc) << "MemoryManagerTy::allocate: size " << Size
+ size_t AllocationSize = Alignment > 0 ? (Size + Alignment - 1) : Size;
----------------
EuphoricThinking wrote:
For me it seems to be a change that might be added as a follow-up, since it does not change overall functionality.
https://github.com/llvm/llvm-project/pull/218418
More information about the llvm-commits
mailing list