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

Function FindFunction

source/fuzz/fuzzer_util.cpp:635–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635opt::Function* FindFunction(opt::IRContext* ir_context, uint32_t function_id) {
636 for (auto& function : *ir_context->module()) {
637 if (function.result_id() == function_id) {
638 return &function;
639 }
640 }
641 return nullptr;
642}
643
644bool FunctionContainsOpKillOrUnreachable(const opt::Function& function) {
645 for (auto& block : function) {

Callers 15

IsApplicableMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
IsApplicableMethod · 0.85
ApplyMethod · 0.85
IsApplicableMethod · 0.85
ApplyMethod · 0.85
IsSuitableForInliningMethod · 0.85
AddLocalVariableFunction · 0.85
GetParametersFunction · 0.85

Calls 2

moduleMethod · 0.45
result_idMethod · 0.45

Tested by

no test coverage detected