Lines Matching defs:Bytes
81 /// Allocate \p Bytes on the stack for the encountering thread. Each thread
83 void *push(uint64_t Bytes);
87 void pop(void *Ptr, uint64_t Bytes);
120 void *SharedMemorySmartStackTy::push(uint64_t Bytes) {
124 uint64_t AlignedBytes = utils::alignPtr(Bytes, allocator::ALIGNMENT);
151 void SharedMemorySmartStackTy::pop(void *Ptr, uint64_t Bytes) {
152 uint64_t AlignedBytes = utils::alignPtr(Bytes, allocator::ALIGNMENT);
165 void *memory::allocShared(uint64_t Bytes, const char *Reason) {
166 return SharedMemorySmartStack.push(Bytes);
169 void memory::freeShared(void *Ptr, uint64_t Bytes, const char *Reason) {
170 SharedMemorySmartStack.pop(Ptr, Bytes);
173 void *memory::allocGlobal(uint64_t Bytes, const char *Reason) {
174 void *Ptr = malloc(Bytes);
276 uint32_t Bytes =
279 memory::allocGlobal(Bytes, "Thread state array allocation");
280 __builtin_memset(ThreadStatesPtr, 0, Bytes);
434 [[clang::noinline]] void *__kmpc_alloc_shared(uint64_t Bytes) {
435 return memory::allocShared(Bytes, "Frontend alloc shared");
438 [[clang::noinline]] void __kmpc_free_shared(void *Ptr, uint64_t Bytes) {
439 memory::freeShared(Ptr, Bytes, "Frontend free shared");