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

Method FindBlock

source/opt/function.h:139–143  ·  view source on GitHub ↗

Returns an iterator to the basic block |id|.

Source from the content-addressed store, hash-verified

137
138 // Returns an iterator to the basic block |id|.
139 iterator FindBlock(uint32_t bb_id) {
140 return std::find_if(begin(), end(), [bb_id](const BasicBlock& it_bb) {
141 return bb_id == it_bb.id();
142 });
143 }
144
145 // Runs the given function |f| on instructions in this function, in order,
146 // and optionally on debug line instructions that might precede them and

Callers 13

CreateBlockBeforeMethod · 0.80
CanMergeWithSuccessorFunction · 0.80
SplitLoopMethod · 0.80
AreCompatibleMethod · 0.80
FuseMethod · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected