Lines Matching refs:Bytes
82 void *push(uint64_t Bytes);
86 void pop(void *Ptr, uint32_t Bytes);
119 void *SharedMemorySmartStackTy::push(uint64_t Bytes) { in push() argument
121 uint64_t AlignedBytes = utils::align_up(Bytes, Alignment); in push()
148 void SharedMemorySmartStackTy::pop(void *Ptr, uint32_t Bytes) { in pop() argument
149 uint64_t AlignedBytes = utils::align_up(Bytes, Alignment); in pop()
162 void *memory::allocShared(uint64_t Bytes, const char *Reason) { in allocShared() argument
163 return SharedMemorySmartStack.push(Bytes); in allocShared()
166 void memory::freeShared(void *Ptr, uint64_t Bytes, const char *Reason) { in freeShared() argument
167 SharedMemorySmartStack.pop(Ptr, Bytes); in freeShared()
170 void *memory::allocGlobal(uint64_t Bytes, const char *Reason) { in allocGlobal() argument
171 void *Ptr = malloc(Bytes); in allocGlobal()
396 __attribute__((noinline)) void *__kmpc_alloc_shared(uint64_t Bytes) { in __kmpc_alloc_shared() argument
398 return memory::allocShared(Bytes, "Frontend alloc shared"); in __kmpc_alloc_shared()
401 __attribute__((noinline)) void __kmpc_free_shared(void *Ptr, uint64_t Bytes) { in __kmpc_free_shared() argument
403 memory::freeShared(Ptr, Bytes, "Frontend free shared"); in __kmpc_free_shared()