MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / IsBlockType

Method IsBlockType

source/val/function.cpp:218–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218bool Function::IsBlockType(uint32_t merge_block_id, BlockType type) const {
219 bool ret = false;
220 const BasicBlock* block;
221 std::tie(block, std::ignore) = GetBlock(merge_block_id);
222 if (block) {
223 ret = block->is_type(type);
224 }
225 return ret;
226}
227
228std::pair<const BasicBlock*, bool> Function::GetBlock(uint32_t block_id) const {
229 const auto b = blocks_.find(block_id);

Callers 2

MergeBlockAssertFunction · 0.80

Calls 2

GetBlockFunction · 0.85
is_typeMethod · 0.80

Tested by

no test coverage detected