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

Method IsInsideLoop

source/opt/loop_descriptor.cpp:260–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260bool Loop::IsInsideLoop(Instruction* inst) const {
261 const BasicBlock* parent_block = context_->get_instr_block(inst);
262 if (!parent_block) return false;
263 return IsInsideLoop(parent_block);
264}
265
266bool Loop::IsBasicBlockInLoopSlow(const BasicBlock* bb) {
267 assert(bb->GetParent() && "The basic block does not belong to a function");

Callers 15

FixExitConditionMethod · 0.45
PeelAfterMethod · 0.45
LoopPeelingMethod · 0.45
CloneLoopMethod · 0.45
TraverseUseDefMethod · 0.45

Calls 1

get_instr_blockMethod · 0.80

Tested by

no test coverage detected