[llvm] [libsycl] USM Aligned allocation functions (PR #213468)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 10:52:17 PDT 2026
================
@@ -40,24 +40,28 @@ _LIBSYCL_EXPORT void *malloc_device(std::size_t numBytes,
const context &syclContext,
const property_list &propList = {});
+/// Forward declaration of aligned_alloc_device for use in malloc_device.
----------------
Robertkq wrote:
The comment was to get reviews if forward declaration is preferable, but I went ahead and just declared the `aligned_*` version of the functions before the non-aligned ones, as such, no forward declarations are needed anymore, I hope it's ok like this but I can modify it if needed
https://github.com/llvm/llvm-project/pull/213468
More information about the llvm-commits
mailing list