Lines Matching full:blocks
70 "Cannot grow the number of blocks"); in setBlockMapAddr()
104 MutableArrayRef<uint32_t> Blocks) { in allocateBlocks() argument
112 "There are no free Blocks in the file"); in allocateBlocks()
119 // blocks for each FPM group crossed and mark both blocks from the group as in allocateBlocks()
120 // used. FPM blocks are marked as allocated regardless of whether or not in allocateBlocks()
121 // they ultimately describe the status of blocks in the file. This means in allocateBlocks()
122 // that not only are extraneous blocks at the end of the main FPM marked as in allocateBlocks()
123 // allocated, but also blocks from the alternate FPM are always marked as in allocateBlocks()
136 assert(Block != -1 && "We ran out of Blocks!"); in allocateBlocks()
139 Blocks[I++] = NextBlock; in allocateBlocks()
157 ArrayRef<uint32_t> Blocks) { in addStream() argument
158 // Add a new stream mapped to the specified blocks. Verify that the specified in addStream()
159 // blocks are both necessary and sufficient for holding the requested number in addStream()
160 // of bytes, and verify that all requested blocks are free. in addStream()
162 if (ReqBlocks != Blocks.size()) in addStream()
165 "Incorrect number of blocks for requested stream size"); in addStream()
166 for (auto Block : Blocks) { in addStream()
175 // Mark all the blocks occupied by the new stream as not free. in addStream()
176 for (auto Block : Blocks) { in addStream()
179 StreamData.push_back(std::make_pair(Size, Blocks)); in addStream()
203 // If we're growing, we have to allocate new Blocks. in setStreamSize()
211 // For shrinking, free all the Blocks in the Block map, update the stream in setStreamSize()
245 "Unexpected number of blocks"); in computeDirectoryByteSize()
283 // Don't set the number of blocks in the file until after allocating Blocks in generateLayout()
412 for (const auto &Blocks : Layout.StreamMap) { in commit() local
413 if (auto EC = DW.writeArray(Blocks)) in commit()