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

Method IsSuccessor

source/opt/basic_block.cpp:163–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163bool BasicBlock::IsSuccessor(const BasicBlock* block) const {
164 uint32_t succId = block->id();
165 bool isSuccessor = false;
166 ForEachSuccessorLabel([&isSuccessor, succId](const uint32_t label) {
167 if (label == succId) isSuccessor = true;
168 });
169 return isSuccessor;
170}
171
172void BasicBlock::ForMergeAndContinueLabel(
173 const std::function<void(const uint32_t)>& f) {

Callers 7

CreateLoopLimiterInfoMethod · 0.80
ApplyMethod · 0.80
ApplyMethod · 0.80
PhiIdsOkForNewEdgeFunction · 0.80
BlockIsBackEdgeFunction · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected