llvm-c166/offload/languages/include/kernel/UndefineLanguageNames.inc
Sophia Herrmann 3e89967179
[Offload][Lang] Add StreamCreateWithFlags (#218048)
This PR adds the cuda/hip function `StreamCreateWithFlags` which takes
either `StreamDefault` or `StreamNonBlocking` to create
blocking/non-blocking stream respectively. It also removes the enum
names from values that are defined by macros in vendor libraries, in
order to not expose unnecessary types.

Assisted by GPT-5.5, checked and reviewed manually

Reopened due to a force-push mistake that made GitHub mark this PR as
merged prematurely.
2026-08-27 16:30:19 -07:00

48 lines
1.2 KiB
PHP

//===-- UndefineLanguageNames.inc - Kernel language API name undefines ----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#undef Error_t
#undef DeviceProp_t
#undef Malloc
#undef Free
#undef Memcpy
#undef DeviceSynchronize
#undef Success
#undef ErrorInvalidValue
#undef ErrorInvalidDevice
#undef ErrorUnknown
#undef ErrorInvalidResourceHandle
#undef ErrorInvalidConfiguration
#undef GetErrorName
#undef GetErrorString
#undef GetLastError
#undef PeekAtLastError
#undef MemcpyKind
#undef MemcpyHostToHost
#undef MemcpyHostToDevice
#undef MemcpyDeviceToHost
#undef MemcpyDeviceToDevice
#undef MemcpyDefault
#undef GetDevice
#undef GetDeviceCount
#undef SetDevice
#undef HostAlloc
#undef HostAllocDefault
#undef HostAllocPortable
#undef HostAllocMapped
#undef HostAllocWriteCombined
#undef MallocHost
#undef FreeHost
#undef GetDeviceProperties
#undef Stream_t
#undef StreamDefault
#undef StreamNonBlocking
#undef StreamCreate
#undef StreamCreateWithFlags
#undef StreamDestroy
#undef StreamSynchronize