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

Method ForEachInst

source/opt/function.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Function::ForEachInst(const std::function<void(Instruction*)>& f,
61 bool run_on_debug_line_insts,
62 bool run_on_non_semantic_insts) {
63 WhileEachInst(
64 [&f](Instruction* inst) {
65 f(inst);
66 return true;
67 },
68 run_on_debug_line_insts, run_on_non_semantic_insts);
69}
70
71void Function::ForEachInst(const std::function<void(const Instruction*)>& f,
72 bool run_on_debug_line_insts,

Callers 2

ForEachParamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected