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

Method GetParent

source/opt/loop_utils.cpp:106–108  ·  view source on GitHub ↗

Return the basic block that |instr| belongs to.

Source from the content-addressed store, hash-verified

104 private:
105 // Return the basic block that |instr| belongs to.
106 BasicBlock* GetParent(Instruction* instr) {
107 return base_->context_->get_instr_block(instr);
108 }
109
110 // Builds a phi instruction for the basic block |bb|. The function assumes
111 // that |defining_blocks| contains the list of basic block that define the

Callers 4

MakeLoopClosedSSAMethod · 0.45
PopulateLoopNestMethod · 0.45

Calls 1

get_instr_blockMethod · 0.80

Tested by

no test coverage detected