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

Method GetBlock

source/val/function.cpp:228–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228std::pair<const BasicBlock*, bool> Function::GetBlock(uint32_t block_id) const {
229 const auto b = blocks_.find(block_id);
230 if (b != end(blocks_)) {
231 const BasicBlock* block = &(b->second);
232 bool defined =
233 undefined_blocks_.find(block->id()) == std::end(undefined_blocks_);
234 return std::make_pair(block, defined);
235 } else {
236 return std::make_pair(nullptr, false);
237 }
238}
239
240std::pair<BasicBlock*, bool> Function::GetBlock(uint32_t block_id) {
241 const BasicBlock* out;

Callers 6

StructuredSwitchChecksFunction · 0.45
IsStructuredExitMethod · 0.45
TEST_FFunction · 0.45

Calls 1

idMethod · 0.45

Tested by 1

TEST_FFunction · 0.36