[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / libc / src / stdlib / gpu / malloc.cpp
blob54f2d8843996ee99c653b0db9e365d998d8f220d
1 //===-- GPU Implementation of malloc --------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "src/stdlib/malloc.h"
11 #include "src/__support/GPU/allocator.h"
12 #include "src/__support/common.h"
13 #include "src/__support/macros/config.h"
15 namespace LIBC_NAMESPACE_DECL {
17 LLVM_LIBC_FUNCTION(void *, malloc, (size_t size)) {
18 return gpu::allocate(size);
21 } // namespace LIBC_NAMESPACE_DECL