56 _cout =
"VRF is empty\n";
59 _cout =
"VRF reserves " + std::to_string(reservedEntries) +
" VGPRs\n";
83 uint32_t *reservedPoolSize)
90 *reservedPoolSize = actualSize;
99 bool wrapAround = (region.first > region.second);
101 return region.second - region.first + 1;
103 return region.second +
poolSize() - region.first + 1;
uint32_t allocateRegion(const uint32_t size, uint32_t *reservedPoolSize)
uint32_t minAllocatedElements(uint32_t size)
void freeRegion(uint32_t firstIdx, uint32_t lastIdx)
std::string printRegion()
bool canAllocate(uint32_t numRegions, uint32_t size)
uint32_t regionSize(std::pair< uint32_t, uint32_t > ®ion)
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.