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

Method ForEachDebugInstructionsInHeader

source/opt/function.cpp:192–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void Function::ForEachDebugInstructionsInHeader(
193 const std::function<void(Instruction*)>& f) {
194 if (debug_insts_in_header_.empty()) return;
195
196 Instruction* di = &debug_insts_in_header_.front();
197 while (di != nullptr) {
198 Instruction* next_instruction = di->NextNode();
199 di->ForEachInst(f);
200 di = next_instruction;
201 }
202}
203
204BasicBlock* Function::InsertBasicBlockAfter(
205 std::unique_ptr<BasicBlock>&& new_block, BasicBlock* position) {

Callers 1

GenInlineCodeMethod · 0.80

Calls 4

frontMethod · 0.80
NextNodeMethod · 0.80
emptyMethod · 0.45
ForEachInstMethod · 0.45

Tested by

no test coverage detected