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

Function AddInstructionsInBlock

source/opt/loop_fusion.cpp:72–79  ·  view source on GitHub ↗

Apped all instructions in |block| to |instructions|.

Source from the content-addressed store, hash-verified

70
71// Apped all instructions in |block| to |instructions|.
72void AddInstructionsInBlock(std::vector<Instruction*>* instructions,
73 BasicBlock* block) {
74 for (auto& inst : *block) {
75 instructions->push_back(&inst);
76 }
77
78 instructions->push_back(block->GetLabelInst());
79}
80
81} // namespace
82

Callers 1

FuseMethod · 0.85

Calls 2

GetLabelInstMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected