26 assert(
Blocks.count(B->getId()) == 0);
27 Blocks[B->getId()] = std::move(B);
This file declares the Block class.
Function(uint32_t Id, const Type *FunctionType)
Create a new function with an ID and a type.
uint32_t Id
The ID of this function.
This file declares the Type class.
BlockMap Blocks
The blocks in the function.
void addBlock(std::unique_ptr< Block > B)
Add a block to this function.
This class represents a SPIR-V type.
This file declares the Function class.
const Type * FunctionType
The function type.