[llvm] [offload] add handling of memory alignment to MemoryManagerTy (PR #218418)
Jan Trusiłło via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 03:36:58 PDT 2026
================
----------------
311Volt wrote:
Referring to the bug I pointed out in https://github.com/llvm/llvm-project/pull/218418/changes#r3861863959 , I suggest:
```cpp
size_t MaxPaddedAllocSize = Size + Alignment - 1;
if(MaxPaddedAllocSize > SizeThreshold) {
/* ... */
```
https://github.com/llvm/llvm-project/pull/218418
More information about the llvm-commits
mailing list