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

Function GetBasicBlock

test/opt/function_utils.h:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43inline const spvtools::opt::BasicBlock* GetBasicBlock(
44 const spvtools::opt::Function* fn, uint32_t id) {
45 for (const spvtools::opt::BasicBlock& bb : *fn) {
46 if (bb.id() == id) {
47 return &bb;
48 }
49 }
50 return nullptr;
51}
52
53} // namespace spvtest
54

Callers 9

TEST_FFunction · 0.85
TESTFunction · 0.85
check_dominanceFunction · 0.85
check_no_dominanceFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85

Calls 1

idMethod · 0.45

Tested by

no test coverage detected